Class AppVersion
Comparable version information.
The typical convention is to use 3 digit version numbers major.minor.patch,
but 1 or two digits are also supported.
If no . is used it is interpreted as a single digit version number or as
plain alphanumeric if it couldn't be parsed as a number.
It may also have a qualifier at the end for 2 or 3 digit version numbers such as "1.2-RC1". For 1 digit with qualifier, 1-RC1, it is interpreted as plain alphanumeric.
It has support for https://github.com/dwijnand/sbt-dynver format with + or
- separator. The number of commits from the tag is handled as a numeric part.
For example 1.0.0+3-73475dce26 is less than 1.0.10+10-ed316bd024 (3 < 10).
Inherited Members
Namespace: Akka.Util
Assembly: Akka.dll
Syntax
public class AppVersion : IComparable<AppVersion>, IEquatable<AppVersion>
Fields
| Edit this page View SourceZero
Declaration
public static readonly AppVersion Zero
Field Value
| Type | Description |
|---|---|
| AppVersion |
Properties
| Edit this page View SourceVersion
Declaration
public string Version { get; }
Property Value
| Type | Description |
|---|---|
| string |
Methods
| Edit this page View SourceCompareTo(AppVersion)
Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.
Declaration
public int CompareTo(AppVersion other)
Parameters
| Type | Name | Description |
|---|---|---|
| AppVersion | other | An object to compare with this instance. |
Returns
| Type | Description | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| int | A value that indicates the relative order of the objects being compared. The return value has these meanings:
|
Create(string)
Declaration
public static AppVersion Create(string version)
Parameters
| Type | Name | Description |
|---|---|---|
| string | version |
Returns
| Type | Description |
|---|---|
| AppVersion |
Equals(AppVersion)
Indicates whether the current object is equal to another object of the same type.
Declaration
public bool Equals(AppVersion other)
Parameters
| Type | Name | Description |
|---|---|---|
| AppVersion | other | An object to compare with this object. |
Returns
| Type | Description |
|---|---|
| bool | true if the current object is equal to the |
Equals(object)
Determines whether the specified object is equal to the current object.
Declaration
public override bool Equals(object obj)
Parameters
| Type | Name | Description |
|---|---|---|
| object | obj | The object to compare with the current object. |
Returns
| Type | Description |
|---|---|
| bool | true if the specified object is equal to the current object; otherwise, false. |
Overrides
| Edit this page View SourceGetHashCode()
Serves as the default hash function.
Declaration
public override int GetHashCode()
Returns
| Type | Description |
|---|---|
| int | A hash code for the current object. |
Overrides
| Edit this page View SourceToString()
Returns a string that represents the current object.
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| string | A string that represents the current object. |
Overrides
Operators
| Edit this page View Sourceoperator ==(AppVersion, AppVersion)
Declaration
public static bool operator ==(AppVersion first, AppVersion second)
Parameters
| Type | Name | Description |
|---|---|---|
| AppVersion | first | |
| AppVersion | second |
Returns
| Type | Description |
|---|---|
| bool |
operator !=(AppVersion, AppVersion)
Declaration
public static bool operator !=(AppVersion first, AppVersion second)
Parameters
| Type | Name | Description |
|---|---|---|
| AppVersion | first | |
| AppVersion | second |
Returns
| Type | Description |
|---|---|
| bool |
Edit this page