public final class SemVer extends java.lang.Object implements java.lang.Comparable<SemVer>
Constructor and Description |
---|
SemVer(java.lang.String rawVersion,
int major,
int minor,
int patch) |
SemVer(java.lang.String rawVersion,
int major,
int minor,
int patch,
java.lang.String preRelease) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(SemVer other) |
boolean |
equals(java.lang.Object o) |
int |
getMajor() |
int |
getMinor() |
java.lang.String |
getParsedVersion() |
int |
getPatch() |
java.lang.String |
getPreRelease() |
java.lang.String |
getRawVersion() |
int |
hashCode() |
boolean |
isGreaterOrEqualThan(int major,
int minor,
int patch) |
boolean |
isGreaterOrEqualThan(SemVer version) |
static SemVer |
parseFromText(java.lang.String text) |
java.lang.String |
toString() |
public SemVer(java.lang.String rawVersion, int major, int minor, int patch)
public SemVer(java.lang.String rawVersion, int major, int minor, int patch, java.lang.String preRelease)
public java.lang.String getRawVersion()
public int getMajor()
public int getMinor()
public int getPatch()
public java.lang.String getPreRelease()
public java.lang.String getParsedVersion()
public int compareTo(SemVer other)
compareTo
in interface java.lang.Comparable<SemVer>
public boolean isGreaterOrEqualThan(int major, int minor, int patch)
public boolean isGreaterOrEqualThan(SemVer version)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public static SemVer parseFromText(java.lang.String text)