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 Details

    • compareTo

      public int compareTo(SystemUpdateVersion that)
      Specified by:
      compareTo in interface Comparable<SystemUpdateVersion>
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • 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.