|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.glite.security.voms.service.Version.VersionNumber
A class representing version numbers.
Constructor Summary | |
Version.VersionNumber(int major,
int minor,
int patch,
java.lang.String build)
Set up a new VersionNumber by building it up from the given component numbers. |
|
Version.VersionNumber(java.lang.String version)
Set up a new VersionNumber by parsing the given version string. |
Method Summary | |
int |
compareTo(java.lang.Object other)
Compare this object with the specified object for order. |
boolean |
equals(java.lang.Object other)
Compare this VersioNumber to the specified object. |
java.lang.String |
getBuild()
|
int |
getMajor()
Return the first component of the version number, or -1 if it could not be interpreted. |
int |
getMinor()
Return the middle component of the version number, or -1 if it could not be interpreted. |
int |
getPatch()
Return the last component of the version number, or -1 if it could not be interpreted. |
java.lang.String |
getShortVersion()
Return the version number without the build component. |
java.lang.String |
toString()
Return the short version number. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Version.VersionNumber(int major, int minor, int patch, java.lang.String build)
public Version.VersionNumber(java.lang.String version)
Method Detail |
public java.lang.String toString()
public java.lang.String getShortVersion()
public int getMajor()
public int getMinor()
public int getPatch()
public java.lang.String getBuild()
public boolean equals(java.lang.Object other)
public int compareTo(java.lang.Object other)
compareTo
in interface java.lang.Comparable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |