Class Version

    • Field Detail

      • INFINITE

        public static final Version INFINITE
    • Constructor Detail

      • Version

        public Version​(String version)
    • Method Detail

      • getMajor

        public int getMajor()
      • getMinor

        public int getMinor()
      • getMicro

        public int getMicro()
      • greaterThan

        public boolean greaterThan​(Version other)
        Returns true if this is greater that other.
        Parameters:
        other - the other Version
        Returns:
        true if this instance is greater than other instance, otherwise false
      • greaterOrEqualsThan

        public boolean greaterOrEqualsThan​(Version other)
        Returns true if this is greater or equals than other.
        Parameters:
        other - the other Version
        Returns:
        true if this instance is greater or equals than other instance, otherwise false
      • lesserThan

        public boolean lesserThan​(Version other)
        Returns true if this is lesser than other.
        Parameters:
        other - the other Version
        Returns:
        true if this instance is lesser than other instance, otherwise false
      • lesserOrEqualsThan

        public boolean lesserOrEqualsThan​(Version other)
        Returns true if this is lesser or equals that other.
        Parameters:
        other - the other Version
        Returns:
        true if this instance is lesser or equals than other instance, otherwise false
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object