Package de.xima.fc.update
Class SystemUpdateVersion
- java.lang.Object
-
- de.xima.fc.update.SystemUpdateVersion
-
- All Implemented Interfaces:
Serializable
,Comparable<SystemUpdateVersion>
public final class SystemUpdateVersion extends Object implements Comparable<SystemUpdateVersion>, Serializable
Represents the formcycle version of aISystemUpdate
. Updates are sorted by their version.- See Also:
ISystemUpdate.getVersion()
, Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(SystemUpdateVersion that)
boolean
equals(Object o)
int
hashCode()
int
major()
Gets the major part of the version.int
minor()
Gets the minor part of the version.static SystemUpdateVersion
of(int major, int minor, int patch)
Gets a system update version with the given major, minor and patch version.int
patch()
Gets the patch part of the version.
-
-
-
Method Detail
-
compareTo
public int compareTo(SystemUpdateVersion that)
- Specified by:
compareTo
in interfaceComparable<SystemUpdateVersion>
-
major
public int major()
Gets the major part of the version.- Returns:
- The major part of the version.
-
minor
public int minor()
Gets the minor part of the version.- Returns:
- The minor part of the version.
-
patch
public int patch()
Gets the patch part of the version.- Returns:
- The patch part of the version.
-
of
public static SystemUpdateVersion of(int major, int minor, int patch)
Gets a system update version with the given major, minor and patch version.- Parameters:
major
- The major part of the version.minor
- The minor part of the version.patch
- The patch part of the version.- Returns:
- A system update version with the given major, minor and patch version.
-
-