public class Version extends java.lang.Object implements java.lang.Comparable<Version>
| 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 that 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 that other. |
java.lang.String |
toString() |
java.lang.String |
toString(java.lang.String prefix,
java.lang.String separator) |
public static final Version INFINITE
public int getMajor()
public int getMinor()
public int getMicro()
public boolean greaterThan(Version other)
this is greater that other.other - public boolean greaterOrEqualsThan(Version other)
this is greater or equals that other.other - public boolean lesserThan(Version other)
this is lesser that other.other - public boolean lesserOrEqualsThan(Version other)
this is lesser or equals that other.other - public boolean inside(VersionRange range)
public boolean equals(java.lang.Object object)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String toString(java.lang.String prefix,
java.lang.String separator)