public final class SdkVersion extends java.lang.Object implements java.lang.Comparable<SdkVersion>
Constructor and Description |
---|
SdkVersion(int major,
int minor,
int patch,
boolean isDev) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(SdkVersion o) |
boolean |
equals(java.lang.Object o) |
int |
getMajor() |
int |
getMinor() |
int |
getPatch() |
int |
hashCode() |
boolean |
isDev() |
boolean |
isGreaterThan(SdkVersion o) |
boolean |
isGreaterThanOrEqualTo(SdkVersion o) |
boolean |
isLessThan(SdkVersion o) |
boolean |
isLessThanOrEqualTo(SdkVersion o) |
static SdkVersion |
parseFromString(java.lang.String versionStr) |
java.lang.String |
toString() |
public SdkVersion(int major, int minor, int patch, boolean isDev) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
public int getMajor()
public int getMinor()
public int getPatch()
public boolean isDev()
public boolean isGreaterThan(SdkVersion o)
public boolean isGreaterThanOrEqualTo(SdkVersion o)
public boolean isLessThan(SdkVersion o)
public boolean isLessThanOrEqualTo(SdkVersion o)
public static SdkVersion parseFromString(java.lang.String versionStr) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
public int compareTo(SdkVersion o)
compareTo
in interface java.lang.Comparable<SdkVersion>
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