Class PluginVersion

    • Field Detail

      • MAX_VNO

        private static final int MAX_VNO
        arbitrary maximum (to help hashing and sanity).
        See Also:
        Constant Field Values
      • major

        private int major
        Major version.
      • minor

        private int minor
        Minor version.
      • patch

        private int patch
        Patch version.
    • Constructor Detail

      • PluginVersion

        public PluginVersion​(int maj,
                             int min,
                             int pat)
                      throws NumberFormatException
        Constructor.
        Parameters:
        maj - Major Version
        min - Minor Version
        pat - Patch Version
        Throws:
        NumberFormatException - if the values are out of range
    • Method Detail

      • getMajor

        public int getMajor()
        Get the major version.
        Returns:
        Returns the major version.
      • getMinor

        public int getMinor()
        Get the minor version.
        Returns:
        Returns the minor version.
      • getPatch

        public int getPatch()
        Get the patch version.
        Returns:
        Returns the patch version.
      • isNull

        public boolean isNull()
        Is this version all zeros (usually as a result of a parsing issue.
        Returns:
        if all nulls
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • compareTo

        public int compareTo​(PluginVersion other)
        Compares this object with the specified object for order. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.
        Specified by:
        compareTo in interface Comparable<PluginVersion>