public class Version extends Object implements Comparable<Version>, Serializable
Version| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Version other) |
int |
compareWithBuildsTo(Version other) |
boolean |
equals(Object o) |
String |
getBuildMetadata() |
int |
getMajorVersion() |
int |
getMinorVersion() |
Version |
getNormalVersion() |
int |
getPatchVersion() |
String |
getPreReleaseVersion() |
boolean |
greaterThan(Version other) |
boolean |
greaterThanOrEqualTo(Version other) |
int |
hashCode() |
Version |
incrementMajorVersion() |
Version |
incrementMajorVersion(String preRelease) |
Version |
incrementMinorVersion() |
Version |
incrementMinorVersion(String preRelease) |
Version |
incrementPatchVersion() |
Version |
incrementPatchVersion(String preRelease) |
Version |
incrementPreReleaseVersion() |
boolean |
isRelease() |
boolean |
isSnapshot() |
boolean |
lessThan(Version other) |
boolean |
lessThanOrEqualTo(Version other) |
boolean |
satisfies(com.github.zafarkhaja.semver.expr.Expression expr) |
boolean |
satisfies(String expr) |
String |
toString() |
public Version(String text)
public boolean satisfies(String expr)
public boolean satisfies(com.github.zafarkhaja.semver.expr.Expression expr)
public Version incrementMajorVersion()
public Version incrementMinorVersion()
public Version incrementPatchVersion()
public Version incrementPreReleaseVersion()
public int getMajorVersion()
public int getMinorVersion()
public int getPatchVersion()
public boolean isRelease()
public boolean isSnapshot()
public Version getNormalVersion()
public String getPreReleaseVersion()
public String getBuildMetadata()
public boolean greaterThan(Version other)
public boolean greaterThanOrEqualTo(Version other)
public boolean lessThan(Version other)
public boolean lessThanOrEqualTo(Version other)
public int compareTo(Version other)
compareTo in interface Comparable<Version>public int compareWithBuildsTo(Version other)
Copyright © 2018. All rights reserved.