|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.codehaus.modello.model.Version
public class Version
A version string is on the form
Field Summary
static VersionINFINITE
Constructor Summary
Version(java.lang.String version)
Method Summary
intcompareTo(Version otherVersion)
booleanequals(java.lang.Object object)
intgetMajor()
intgetMicro()
intgetMinor()
booleangreaterOrEqualsThan(Version other)
Returns true if this is greater or equals that other.
booleangreaterThan(Version other)
Returns true if this is greater that other.
inthashCode()
booleaninside(VersionRange range)
booleanlesserOrEqualsThan(Version other)
Returns true if this is lesser or equals that other.
booleanlesserThan(Version other)
Returns true if this is lesser that other.
java.lang.StringtoString()
java.lang.StringtoString(java.lang.String prefix,
java.lang.String separator)
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Field Detail
INFINITE
public static final Version INFINITE
Constructor Detail
Version
public Version(java.lang.String version)
Method Detail
getMajor
public int getMajor()
getMinor
public int getMinor()
getMicro
public int getMicro()
greaterThan
public boolean greaterThan(Version other)
this is greater that other.
other -
greaterOrEqualsThan
public boolean greaterOrEqualsThan(Version other)
this is greater or equals that other.
other -
lesserThan
public boolean lesserThan(Version other)
this is lesser that other.
other -
lesserOrEqualsThan
public boolean lesserOrEqualsThan(Version other)
this is lesser or equals that other.
other -
inside
public boolean inside(VersionRange range)
equals
public boolean equals(java.lang.Object object)
equals in class java.lang.Object
hashCode
public int hashCode()
hashCode in class java.lang.Object
toString
public java.lang.String toString()
toString in class java.lang.Object
toString
public java.lang.String toString(java.lang.String prefix,
java.lang.String separator)
compareTo
public int compareTo(Version otherVersion)
compareTo in interface java.lang.Comparable<Version>
Overview
Package
Class
Tree
Deprecated
Index
Help
PREV CLASS
NEXT CLASS
FRAMES
NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD
DETAIL: FIELD | CONSTR | METHOD