public class Version extends Object implements Comparable<Version>, Serializable
Modifier and Type | Field and Description |
---|---|
static String |
SNAPSHOT |
static String |
UNKNOWN |
Modifier | Constructor and Description |
---|---|
protected |
Version(String version) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Version version) |
boolean |
equals(Object obj) |
String |
getBugFix() |
String |
getBuildNumber() |
static Version |
getInstance(String version) |
String |
getMajor() |
String |
getMinor() |
String |
getQualifier() |
int |
hashCode() |
boolean |
includes(Version version) |
static Version |
incrementBugFix(Version version) |
static Version |
incrementBuildNumber(Version version) |
static Version |
incrementMajor(Version version) |
static Version |
incrementMinor(Version version) |
boolean |
isLaterVersionThan(String version) |
boolean |
isPreviousVersionThan(String version) |
boolean |
isSameVersionAs(String version) |
String |
toString() |
public static final String SNAPSHOT
public static final String UNKNOWN
public static Version getInstance(String version)
public int compareTo(Version version)
compareTo
in interface Comparable<Version>
public boolean equals(Object obj)
equals
in class Object
public String getBugFix()
public String getBuildNumber()
public String getMajor()
public String getMinor()
public String getQualifier()
public int hashCode()
hashCode
in class Object
public boolean includes(Version version)
public boolean isLaterVersionThan(String version)
public boolean isPreviousVersionThan(String version)
public boolean isSameVersionAs(String version)
public String toString()
toString
in class Object