public class DefaultVersion extends Object implements Version
| Modifier | Constructor and Description |
|---|---|
|
DefaultVersion() |
protected |
DefaultVersion(int mayor,
int minor,
int rev,
String classifier,
int build) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
check(String op,
Version other) |
Object |
clone()
Creates a copy of the object.
|
int |
compareTo(Object arg0) |
boolean |
equals(Object obj) |
String |
format(String fmt)
Return the version formated as string with the format specified as fmt.
|
String |
fullFormat() |
int |
getBuild() |
String |
getClassifier() |
int |
getMajor() |
int |
getMayor() |
int |
getMinor() |
int |
getRevision() |
int |
hashCode() |
Version |
parse(String version) |
Version |
setBuild(int build) |
String |
toString() |
public DefaultVersion()
protected DefaultVersion(int mayor,
int minor,
int rev,
String classifier,
int build)
public int getRevision()
getRevision in interface Versionpublic String getClassifier()
getClassifier in interface Versionpublic String fullFormat()
fullFormat in interface Versionpublic int compareTo(Object arg0)
compareTo in interface Comparablepublic Object clone() throws CloneNotSupportedException
Cloneableclone in class ObjectCloneNotSupportedException - if the instance of the object cannot
be cloned. As this is extending Cloneable so
its sure it implements it, so this exception may be used for problems
on specific object instances.Object#clone()}.public String format(String fmt)
Version