Modifier and Type | Field and Description |
---|---|
static Version |
INFINITE |
private short |
major |
private short |
micro |
private short |
minor |
Constructor and Description |
---|
Version(java.lang.String version) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Version otherVersion) |
boolean |
equals(java.lang.Object object) |
int |
getMajor() |
int |
getMicro() |
int |
getMinor() |
boolean |
greaterOrEqualsThan(Version other)
Returns true if
this is greater or equals than other . |
boolean |
greaterThan(Version other)
Returns true if
this is greater that other . |
int |
hashCode() |
boolean |
inside(VersionRange range) |
boolean |
lesserOrEqualsThan(Version other)
Returns true if
this is lesser or equals that other . |
boolean |
lesserThan(Version other)
Returns true if
this is lesser than other . |
java.lang.String |
toString() |
java.lang.String |
toString(java.lang.String prefix,
java.lang.String separator) |
public static final Version INFINITE
private short major
private short minor
private short micro
public int getMajor()
public int getMinor()
public int getMicro()
public boolean greaterThan(Version other)
this
is greater that other
.other
- the other Version
true
if this instance is greater than other instance, otherwise false
public boolean greaterOrEqualsThan(Version other)
this
is greater or equals than other
.other
- the other Version
true
if this instance is greater or equals than other instance, otherwise false
public boolean lesserThan(Version other)
this
is lesser than other
.other
- the other Version
true
if this instance is lesser than other instance, otherwise false
public boolean lesserOrEqualsThan(Version other)
this
is lesser or equals that other
.other
- the other Version
true
if this instance is lesser or equals than other instance, otherwise false
public boolean inside(VersionRange range)
public boolean equals(java.lang.Object object)
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 java.lang.String toString(java.lang.String prefix, java.lang.String separator)