XUISemanticVersion
Description
A class for representing and manipulating a semantic version.
Properties
Name | Type | Read-Only |
---|---|---|
Major | Integer |
|
Minor | Integer |
|
mMajor | Integer |
|
mMinor | Integer |
|
mPatch | Integer |
|
Patch | Integer |
Methods
Name | Parameters | Returns |
---|---|---|
Constructor | major As Integer , minor As Integer , patch As Integer |
|
Constructor | version As String |
|
Operator_Compare | s As String |
Integer |
Operator_Compare | other As XUISemanticVersion |
Integer |
Operator_Convert | s As String |
|
ToJSON | String |
|
ToString | String |
Property Descriptions
Major As Integer
The major version number.
Minor As Integer
The minor version number.
mMajor As Integer
Backing field for the Major
computed property.
mMinor As Integer
Backing field for the Minor
computed property.
mPatch As Integer
Backing field for the Patch
computed property.
Patch As Integer
The patch version.
Method Descriptions
Constructor(major As Integer, minor As Integer, patch As Integer)
Default constructor
Defaults to 1.0.0
.
Constructor(version As String)
Constructs a semantic version class from a string in the form: "MAJOR.MINOR.PATCH".
Operator_Compare(s As String) As Integer
Compares this semantic version to a version number string in
the form: "MAJOR.MINOR.PATCH"
.
Returns:
0 : Self = other
-1: Self < other
1 : Self > other
Raises an InvalidArgumentException
if s
is not in the correct format.
Operator_Compare(other As XUISemanticVersion) As Integer
Compares this semantic version to other
.
Returns:
0 : Self = other
-1: Self < other
1 : Self > other
Operator_Convert(s As String)
Sets the value of this version to s
.
Raises an InvalidArgumentException
if s
is not a valid version string of
the format: "MAJOR.MINOR.PATCH"
.
ToJSON() As String
Returns a JSON representation of this semantic version.
ToString() As String
Returns this semantic version as a string in the form: "MAJOR.MINOR.PATCH"