Class HighestVersionNumber
- java.lang.Object
-
- hudson.util.VersionNumber
-
- com.sonyericsson.hudson.plugins.gerrit.trigger.version.GerritVersionNumber
-
- com.sonyericsson.hudson.plugins.gerrit.trigger.version.HighestVersionNumber
-
- All Implemented Interfaces:
Comparable<VersionNumber>
public class HighestVersionNumber extends GerritVersionNumber
Subclass of GerritVersionNumber which represents the highest possible version number.- Author:
- Tomas Westling <thomas.westling@sonyericsson.com>
-
-
Field Summary
-
Fields inherited from class hudson.util.VersionNumber
DESCENDING
-
-
Constructor Summary
Constructors Constructor Description HighestVersionNumber()
Default constructor, creates a highest version number.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(VersionNumber rhs)
boolean
isNewerThan(VersionNumber rhs)
boolean
isOlderThan(VersionNumber rhs)
String
toString()
-
Methods inherited from class com.sonyericsson.hudson.plugins.gerrit.trigger.version.GerritVersionNumber
equals, getGerritVersionNumber, hashCode, isSnapshot
-
Methods inherited from class hudson.util.VersionNumber
digit, getDigitAt, isNewerThanOrEqualTo, isOlderThanOrEqualTo
-
-
-
-
Method Detail
-
isOlderThan
public boolean isOlderThan(VersionNumber rhs)
- Overrides:
isOlderThan
in classVersionNumber
-
isNewerThan
public boolean isNewerThan(VersionNumber rhs)
- Overrides:
isNewerThan
in classVersionNumber
-
compareTo
public int compareTo(VersionNumber rhs)
- Specified by:
compareTo
in interfaceComparable<VersionNumber>
- Overrides:
compareTo
in classVersionNumber
-
toString
public String toString()
- Overrides:
toString
in classVersionNumber
-
-