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>.
- Author:
- Trygve Laugstøl, Emmanuel Venisse
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
boolean
int
getMajor()
int
getMicro()
int
getMinor()
boolean
greaterOrEqualsThan
(Version other) Returns true ifthis
is greater or equals thanother
.boolean
greaterThan
(Version other) Returns true ifthis
is greater thatother
.int
hashCode()
boolean
inside
(VersionRange range) boolean
lesserOrEqualsThan
(Version other) Returns true ifthis
is lesser or equals thatother
.boolean
lesserThan
(Version other) Returns true ifthis
is lesser thanother
.toString()
-
Field Details
-
INFINITE
-
-
Constructor Details
-
Version
-
-
Method Details
-
getMajor
public int getMajor() -
getMinor
public int getMinor() -
getMicro
public int getMicro() -
greaterThan
Returns true ifthis
is greater thatother
.- Parameters:
other
- the otherVersion
- Returns:
true
if this instance is greater than other instance, otherwisefalse
-
greaterOrEqualsThan
Returns true ifthis
is greater or equals thanother
.- Parameters:
other
- the otherVersion
- Returns:
true
if this instance is greater or equals than other instance, otherwisefalse
-
lesserThan
Returns true ifthis
is lesser thanother
.- Parameters:
other
- the otherVersion
- Returns:
true
if this instance is lesser than other instance, otherwisefalse
-
lesserOrEqualsThan
Returns true ifthis
is lesser or equals thatother
.- Parameters:
other
- the otherVersion
- Returns:
true
if this instance is lesser or equals than other instance, otherwisefalse
-
inside
-
equals
-
hashCode
public int hashCode() -
toString
-
toString
-
compareTo
- Specified by:
compareTo
in interfaceComparable<Version>
-