public class Version extends Object
| Constructor and Description |
|---|
Version() |
Version(int major,
int minor,
int patch) |
Version(SdlMsgVersion sdlMsgVersion) |
Version(String versionString) |
| Modifier and Type | Method and Description |
|---|---|
int |
getMajor() |
int |
getMinor() |
int |
getPatch() |
int |
isBetween(Version minVersion,
Version maxVersion) |
int |
isNewerThan(Version version)
Method to test if this instance of Version is newer than the supplied one.
|
String |
toString() |
public Version()
public Version(int major,
int minor,
int patch)
public Version(SdlMsgVersion sdlMsgVersion)
public Version(String versionString)
public int getMajor()
public int getMinor()
public int getPatch()
public int isNewerThan(Version version)
version - the version to check againstpublic int isBetween(@NonNull
Version minVersion,
@NonNull
Version maxVersion)
minVersion - the lowest version to be used in the comparisonmaxVersion - the highest version to be used in the comparison