java.lang.Object
com.xebialabs.deployit.server.api.upgrade.Version
All Implemented Interfaces:
Comparable<Version>

public final class Version extends Object implements Comparable<Version>
Represents a version of data in repository. Consists of the component, product version and data model version.
  • Field Details

  • Constructor Details

    • Version

      public Version()
  • Method Details

    • valueOf

      public static Version valueOf(String component, String versionString)
    • getComponent

      public String getComponent()
    • getMajor

      public int getMajor()
    • getMinor

      public int getMinor()
    • getMicro

      public int getMicro()
    • getClassifier

      public String getClassifier()
    • getDataModel

      public int getDataModel()
    • getVersion

      public String getVersion()
    • toString

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

      public int compareTo(Version o)
      Specified by:
      compareTo in interface Comparable<Version>
    • equals

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

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

      public boolean isVersion0()