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 a
ISystemUpdate. Updates are sorted by their version.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionintcompareTo(SystemUpdateVersion that) booleaninthashCode()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 Details
-
compareTo
- Specified by:
compareToin interfaceComparable<SystemUpdateVersion>
-
equals
-
hashCode
-
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
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.
-