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 intcompareTo(SystemUpdateVersion that)booleanequals(Object o)inthashCode()intmajor()Gets the major part of the version.intminor()Gets the minor part of the version.static SystemUpdateVersionof(int major, int minor, int patch)Gets a system update version with the given major, minor and patch version.intpatch()Gets the patch part of the version.
-
-
-
Method Detail
-
compareTo
public int compareTo(SystemUpdateVersion that)
- Specified by:
compareToin 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.
-
-