Modifier and Type | Method and Description |
---|---|
int |
compareTo(Version other) |
boolean |
equals(java.lang.Object o) |
static Version |
fromString(java.lang.String ver) |
int |
getMajor() |
int |
getMinor() |
int |
hashCode() |
boolean |
isNewer(Version other) |
boolean |
isOlder(Version other) |
boolean |
isUnknown() |
java.lang.String |
toString() |
public static final Version UNKNOWN
public static Version fromString(java.lang.String ver)
ver
- string in format "[major].[minor]"public boolean isUnknown()
public int getMajor()
public int getMinor()
public int compareTo(Version other)
compareTo
in interface java.lang.Comparable<Version>
public boolean isNewer(Version other)
public boolean isOlder(Version other)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object