public class PlatformVersion extends Version
| Constructor and Description | 
|---|
PlatformVersion(java.lang.String stringVersion)  | 
| Modifier and Type | Method and Description | 
|---|---|
int | 
getMajor()
Returns the major verson number, or the first digit in the version. 
 | 
int | 
getMinor()
Returns the minor version number, or the second digit. 
 | 
boolean | 
isEqualOrGreaterThan(PlatformVersion other)
Similar to the expression  
this.compareTo(other) >= 0 except that the shorter
 version is not padded with zeros before comparision, so "10.1.0" is greater than or equal to "10.1". | 
boolean | 
isEqualTo(PlatformVersion other)
Same as  
Version.equals(java.lang.Object) | 
boolean | 
isGreaterThan(PlatformVersion other)
Similar to the expression  
this.compareTo(other) > 0 except that the shorter
 version is not padded with zeros before comparision, so "10.1.0" is greater than "10.1". | 
boolean | 
isLessThan(PlatformVersion other)
Similar to the expression  
this.compareTo(other) < 0 except that the shorter
 version is not padded with zeros before comparision, so "10.1" is less than "10.1.0". | 
int | 
matchNumbers(Version other)
Compares two Versions and returns an integer indicating the number of 
 positions matched. 
 | 
compareTo, equals, hashCode, toCanonicalString, toIntArray, toStringpublic PlatformVersion(java.lang.String stringVersion)
stringVersion - the version number in its canonical form. i.e. without
 leading zeros for each digit. 
 
 Example: 10.1.3.1public int matchNumbers(Version other)
other - the Version to compare to.public int getMajor()
public int getMinor()
public boolean isEqualOrGreaterThan(PlatformVersion other)
this.compareTo(other) >= 0 except that the shorter
 version is not padded with zeros before comparision, so "10.1.0" is greater than or equal to "10.1".public boolean isGreaterThan(PlatformVersion other)
this.compareTo(other) > 0 except that the shorter
 version is not padded with zeros before comparision, so "10.1.0" is greater than "10.1".public boolean isLessThan(PlatformVersion other)
this.compareTo(other) < 0 except that the shorter
 version is not padded with zeros before comparision, so "10.1" is less than "10.1.0".public boolean isEqualTo(PlatformVersion other)
Version.equals(java.lang.Object)