java.lang.Object
com.thecoderscorner.menu.persist.VersionInfo

public class VersionInfo extends Object
This class represents a version number in standard form, such as 1.2.3, it can parse from text and determine which is the newer of two versions.
  • Field Details

    • ERROR_VERSION

      public static final VersionInfo ERROR_VERSION
  • Constructor Details

    • VersionInfo

      public VersionInfo(String ver)
  • Method Details

    • fromString

      public static VersionInfo fromString(String sel)
    • isSameOrNewerThan

      public boolean isSameOrNewerThan(VersionInfo other)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

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

      public int getMajor()
    • getMinor

      public int getMinor()
    • getPatch

      public int getPatch()
    • getReleaseType

      public ReleaseType getReleaseType()
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object