public final class CVersionStandard extends Object implements CVersionType
The type of standard version numbers of the form M.N.P-S,
where M is the major version, N is the minor
version, P is the patch number, and S is an
arbitrary qualifier string.
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(CVersionType o) |
boolean |
equals(Object obj) |
int |
getMajor() |
int |
getMinor() |
int |
getPatch() |
String |
getQualifier() |
int |
hashCode() |
static CVersionType |
parse(String version)
Attempt to parse a version number.
|
static CVersionType |
standard(int in_major,
int in_minor,
int in_patch,
String in_qualifier)
Construct a new version number from the given versions.
|
String |
toString() |
<A> A |
versionAccept(CVersionVisitorType<A> v)
Accept a generic visitor.
|
public static CVersionType parse(String version)
version - The version stringpublic static CVersionType standard(int in_major, int in_minor, int in_patch, String in_qualifier)
in_major - The major versionin_minor - The minor versionin_patch - The patch versionin_qualifier - An qualifier stringpublic int compareTo(CVersionType o)
compareTo in interface Comparable<CVersionType>public String getQualifier()
public int getMajor()
public int getMinor()
public int getPatch()
public <A> A versionAccept(CVersionVisitorType<A> v) throws Exception
CVersionTypeversionAccept in interface CVersionTypeA - The type of returned valuesv - The visitorException - If the visitor raises ExceptionCopyright © 2016 <code@io7m.com> http://io7m.com