Class Version

    • Constructor Detail

      • Version

        public Version​(int major,
                       int minor,
                       int point)
      • Version

        public Version​(String versionString)
        Instantiates a new version.
        Parameters:
        versionString - the version string
    • Method Detail

      • getOriginalVersionString

        public String getOriginalVersionString()
      • isEquivalentTo

        public boolean isEquivalentTo​(int othermajor,
                                      int otherminor,
                                      int otherpoint)
      • isOlderThan

        public boolean isOlderThan​(int othermajor,
                                   int otherminor,
                                   int otherpoint)
      • isNewerThan

        public boolean isNewerThan​(int othermajor,
                                   int otherminor,
                                   int otherpoint)
      • isEqualOrNewerThan

        public boolean isEqualOrNewerThan​(int othermajor,
                                          int otherminor,
                                          int otherpoint)
      • isEqualOrOlderThan

        public boolean isEqualOrOlderThan​(int othermajor,
                                          int otherminor,
                                          int otherpoint)
      • compareTo

        public int compareTo​(int othermajor,
                             int otherminor,
                             int otherpoint)
      • isEquivalentTo

        public boolean isEquivalentTo​(Version other)
      • isOlderThan

        public boolean isOlderThan​(Version other)
      • isNewerThan

        public boolean isNewerThan​(Version other)
      • isEqualOrNewerThan

        public boolean isEqualOrNewerThan​(Version other)
      • isEqualOrOlderThan

        public boolean isEqualOrOlderThan​(Version other)
      • isGold

        public boolean isGold()
      • distance

        public static long distance​(Version l,
                                    Version r)
        Distance.
        Parameters:
        l - the l
        r - the r
        Returns:
        the long
      • getPrefix

        public String getPrefix()
      • getMajor

        public int getMajor()
      • getMinor

        public int getMinor()
      • getPoint

        public int getPoint()
      • getMaturity

        public String getMaturity()
      • getSequence

        public long getSequence()
      • getProject

        public String getProject()
      • getTag

        public String getTag()