|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.identityconnectors.common.Version
public final class Version
Encapsulates a version number. A version number is composed of up to four components: major, minor, micro and specification number.
Method Summary | |
---|---|
int |
compareTo(Version that)
|
static Version |
create(Integer... components)
Creates a new version from components. |
boolean |
equals(Object o)
|
Integer |
getMajor()
Returns this version number's major component. |
Integer |
getMicro()
Returns this version number's minor component. |
Integer |
getMinor()
Returns this version number's minor component. |
Integer |
getRevision()
Returns this version number's minor component. |
String |
getVersion()
Returns this version as a string. |
int |
hashCode()
|
static Version |
parse(String version)
Parses the passed version string. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public static Version parse(String version)
version
- the version string.public static Version create(Integer... components)
components
- the componentspublic Integer getMajor()
public Integer getMinor()
null
if this version
number doesn't have a minor component.public Integer getMicro()
null
if this version
number doesn't have a minor component.public Integer getRevision()
null
if this version
number doesn't have a revision component.public String getVersion()
public int hashCode()
hashCode
in class Object
public boolean equals(Object o)
equals
in class Object
public int compareTo(Version that)
compareTo
in interface Comparable<Version>
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |