| Constructor and Description |
|---|
Version(java.lang.Integer... args) |
Version(java.lang.String str) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Version other)
Returns the comparison of the given version to this one.
|
boolean |
equals(java.lang.Object obj)
Returns whether the given object is equal to this one.
|
java.lang.Integer |
getBuild() |
java.lang.Integer |
getMajor() |
java.lang.Integer |
getMinor() |
java.lang.Integer |
getPatch() |
java.lang.Integer |
getRevision() |
boolean |
gt(Version other)
Returns whether x is greater than y.
|
boolean |
gte(Version other)
Returns whether x is greater than or equal to y.
|
int |
hashCode() |
boolean |
lt(Version other)
Returns whether x is less than y.
|
boolean |
lte(Version other)
Returns whether x is less than or equal to y.
|
static Version |
of(java.lang.String str) |
java.lang.String |
toString() |
public static final Version LATEST
public Version(java.lang.String str)
public Version(java.lang.Integer... args)
public static Version of(java.lang.String str)
public java.lang.Integer getMajor()
public java.lang.Integer getMinor()
public java.lang.Integer getBuild()
public java.lang.Integer getPatch()
public java.lang.Integer getRevision()
public java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int compareTo(Version other)
public boolean lt(Version other)
Comparingpublic boolean lte(Version other)
Comparingpublic boolean gt(Version other)
Comparing