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
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
-
-
Constructor Details
-
Version
-
-
Method Details
-
getMajor
public int getMajor() -
getMinor
public int getMinor() -
getMicro
public int getMicro() -
greaterThan
-
greaterOrEqualsThan
-
lesserThan
-
lesserOrEqualsThan
-
inside
-
equals
-
hashCode
-
toString
-
toString
-
compareTo
- Specified by:
compareToin interfaceComparable<Version>
-