Constructor and Description |
---|
Version() |
Version(int major) |
Version(int major,
int minor) |
Version(int major,
int minor,
int revision) |
Version(int major,
int minor,
int revision,
int build) |
Version(int major,
int minor,
int revision,
int build,
boolean beta) |
Version(java.lang.String version) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Version o) |
boolean |
equals(java.lang.Object obj) |
int |
getBuild() |
int |
getMajor() |
int |
getMinor() |
int |
getRevision() |
int |
hashCode() |
boolean |
isBeta() |
boolean |
isEmpty()
special isEmpty case (0.0.0.0)
|
boolean |
isGreater(Version version) |
boolean |
isGreaterOrEqual(Version version) |
boolean |
isLower(Version version) |
boolean |
isLowerOrEqual(Version version) |
boolean |
isNewer(Version version) |
boolean |
isNewerOrEqual(Version version) |
boolean |
isOlder(Version version) |
boolean |
isOlderOrEqual(Version version) |
void |
setBeta(boolean beta) |
void |
setBuild(int build) |
void |
setMajor(int major) |
void |
setMinor(int minor) |
void |
setRevision(int revision) |
java.lang.String |
toShortString() |
java.lang.String |
toString() |
public Version()
public Version(int major)
public Version(int major, int minor)
public Version(int major, int minor, int revision)
public Version(int major, int minor, int revision, int build)
public Version(int major, int minor, int revision, int build, boolean beta)
public Version(java.lang.String version)
public int getMajor()
public void setMajor(int major)
major
- the major to setpublic int getMinor()
public void setMinor(int minor)
minor
- the minor to setpublic int getRevision()
public void setRevision(int revision)
revision
- the revision to setpublic int getBuild()
public void setBuild(int build)
build
- the build to setpublic boolean isBeta()
public void setBeta(boolean beta)
beta
- the beta to setpublic boolean isEmpty()
public java.lang.String toShortString()
public boolean equals(java.lang.Object obj)
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
public int compareTo(Version o)
compareTo
in interface java.lang.Comparable<Version>
public boolean isGreaterOrEqual(Version version)
public boolean isLowerOrEqual(Version version)
public boolean isNewerOrEqual(Version version)
public boolean isOlderOrEqual(Version version)