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 Version
public String getClassifier()
getClassifier
in interface Version
public String fullFormat()
fullFormat
in interface Version
public int compareTo(Object arg0)
compareTo
in interface Comparable
public Object clone() throws CloneNotSupportedException
Cloneable
clone
in class Object
CloneNotSupportedException
- 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