Class ComparableVersion

    • Constructor Detail

      • ComparableVersion

        public ComparableVersion​(String version)
    • Method Detail

      • compareTo

        public int compareTo​(ComparableVersion otherVersion)
        Specified by:
        compareTo in interface Comparable<ComparableVersion>
        Parameters:
        otherVersion -
        • the object to be compared.
        Returns:
        a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the otherVersion. The version that has more parts is considered newer “1.2.3.4” is newer than “1.2.3”
      • hashCode

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

        public String getOriginal()
      • isSnapshot

        public boolean isSnapshot()