Constructor and Description |
---|
Version(java.lang.String version) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Version that)
Compares this object with the specified object for order.
|
boolean |
equals(java.lang.Object that) |
java.lang.String |
get() |
int |
toVersionCode() |
static int |
toVersionCode(java.lang.String thatVersion)
Converts a string representing a version in the form x.y.z into a version code in the form xxyyzz.
|
public final java.lang.String get()
public int compareTo(Version that)
compareTo
in interface java.lang.Comparable<Version>
that
- the Version to be compared.public boolean equals(java.lang.Object that)
equals
in class java.lang.Object
public int toVersionCode()
public static int toVersionCode(java.lang.String thatVersion)
thatVersion
- The version Strign to convert.