Package org.eclipse.jetty.start
Class Version
- java.lang.Object
-
- org.eclipse.jetty.start.Version
-
-
Constructor Summary
Constructors Constructor Description Version(java.lang.String versionString)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(Version other)intgetLegacyMajor()intgetMajor()intgetRevision()java.lang.StringgetSuffix()intgetUpdate()booleanisInRange(Version low, Version high)Check whether this version is in range of versions specifiedbooleanisNewerThan(Version other)booleanisNewerThanOrEqualTo(Version other)booleanisOlderThan(Version other)booleanisOlderThanOrEqualTo(Version other)java.lang.StringtoShortString()Return short string form (without suffix)java.lang.StringtoString()
-
-
-
Method Detail
-
compareTo
public int compareTo(Version other)
- Specified by:
compareToin interfacejava.lang.Comparable<Version>
-
getLegacyMajor
public int getLegacyMajor()
-
getMajor
public int getMajor()
-
getRevision
public int getRevision()
-
getUpdate
public int getUpdate()
-
getSuffix
public java.lang.String getSuffix()
-
isNewerThan
public boolean isNewerThan(Version other)
-
isNewerThanOrEqualTo
public boolean isNewerThanOrEqualTo(Version other)
-
isOlderThan
public boolean isOlderThan(Version other)
-
isOlderThanOrEqualTo
public boolean isOlderThanOrEqualTo(Version other)
-
isInRange
public boolean isInRange(Version low, Version high)
Check whether this version is in range of versions specified- Parameters:
low- the low part of the rangehigh- the high part of the range- Returns:
- true if this version is within the provided range
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object- Returns:
- string representation of this version
-
toShortString
public java.lang.String toShortString()
Return short string form (without suffix)- Returns:
- string the short version string form
-
-