public final class CVersionText extends Object implements CVersionType
The type of arbitrary lexicographically ordered version strings.
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(CVersionType o) |
boolean |
equals(Object obj) |
String |
getVersion() |
int |
hashCode() |
static CVersionType |
text(String version)
Construct a new version number.
|
String |
toString() |
<A> A |
versionAccept(CVersionVisitorType<A> v)
Accept a generic visitor.
|
public static CVersionType text(String version)
version - The version textpublic int compareTo(CVersionType o)
compareTo in interface Comparable<CVersionType>public String getVersion()
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