Package org.codehaus.modello.model
Class Version
java.lang.Object
org.codehaus.modello.model.Version
- All Implemented Interfaces:
Comparable<Version>
A version string is on the form <major>.<minor>.<micro>.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintbooleanintgetMajor()intgetMicro()intgetMinor()booleangreaterOrEqualsThan(Version other) Returns true ifthisis greater or equals thanother.booleangreaterThan(Version other) Returns true ifthisis greater thatother.inthashCode()booleaninside(VersionRange range) booleanlesserOrEqualsThan(Version other) Returns true ifthisis lesser or equals thatother.booleanlesserThan(Version other) Returns true ifthisis lesser thanother.toString()
-
Field Details
-
INFINITE
-
major
private short major -
minor
private short minor -
micro
private short micro
-
-
Constructor Details
-
Version
-
-
Method Details
-
getMajor
public int getMajor() -
getMinor
public int getMinor() -
getMicro
public int getMicro() -
greaterThan
Returns true ifthisis greater thatother.- Parameters:
other- the otherVersion- Returns:
trueif this instance is greater than other instance, otherwisefalse
-
greaterOrEqualsThan
Returns true ifthisis greater or equals thanother.- Parameters:
other- the otherVersion- Returns:
trueif this instance is greater or equals than other instance, otherwisefalse
-
lesserThan
Returns true ifthisis lesser thanother.- Parameters:
other- the otherVersion- Returns:
trueif this instance is lesser than other instance, otherwisefalse
-
lesserOrEqualsThan
Returns true ifthisis lesser or equals thatother.- Parameters:
other- the otherVersion- Returns:
trueif this instance is lesser or equals than other instance, otherwisefalse
-
inside
-
equals
-
hashCode
public int hashCode() -
toString
-
toString
-
compareTo
- Specified by:
compareToin interfaceComparable<Version>
-