Class VersionInfo

java.lang.Object
net.bluemind.core.api.VersionInfo

public class VersionInfo extends Object
This class represents a version number using the major.minor.release format.
  • Field Details

    • major

      public String major
      the major, eg. major.0.3456
    • minor

      public String minor
      the minor, eg. 1.minor.3456
    • release

      public String release
      the release, eg. 1.0.release there can be a SNAPSHOT timestamp for non-release build (eg. 4.1.0.202004021209) It is ignored
    • displayName

      public String displayName
  • Constructor Details

    • VersionInfo

      public VersionInfo()
  • Method Details

    • checkAndCreate

      public static VersionInfo checkAndCreate(String version) throws ServerFault
      Throws:
      ServerFault
    • create

      public static VersionInfo create(String version, String displayName)
    • create

      public static VersionInfo create(String version)
    • valid

      public boolean valid()
    • greaterThan

      public boolean greaterThan(VersionInfo version)
    • greaterThanOrEquals

      public boolean greaterThanOrEquals(VersionInfo version)
    • stable

      public boolean stable()
      Return if the current VersionInfo describe an edge or a stable version. Stable version should have minor part == 0.
      Returns:
      True if this object describe a stable version, false if it's an edge.
    • toString

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

      public String fullString()
    • hashCode

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

      public boolean equals(Object obj)
      Overrides:
      equals in class Object