|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.bmc.mainview.VersionNumber
public final class VersionNumber
Stores a version number of the form 1.1.00
Constructor Summary | |
---|---|
VersionNumber(int major,
int minor,
int sub)
Constructs a new VersionNumber given integer values for the sections of the number. |
|
VersionNumber(java.lang.String input)
Constructs a new VersionNumber from a String which ends in a version number of the form n1.n2.n3, where n1 is the major version number, n2 is the minor version number and n3 is the sub-version or modification level. |
Method Summary | |
---|---|
int |
compareTo(VersionNumber v)
Compares this VersionNumber with the specified VersionNumber for order. |
boolean |
equals(java.lang.Object o)
Compares this Object to the specified Object. |
boolean |
equals(VersionNumber v)
Compares this VersionNumber to the specified VersionNumber. |
int |
getMajor()
|
int |
getMinor()
|
int |
getSub()
|
int |
hashCode()
Returns a hash code value for the Version number. |
void |
setMajor(int v)
|
void |
setMinor(int v)
|
void |
setSub(int v)
|
java.lang.String |
toString()
Returns the printable, dotted form of the version number. |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public VersionNumber(java.lang.String input) throws java.lang.IllegalArgumentException
input
- The string to be parsed.
java.lang.IllegalArgumentException
public VersionNumber(int major, int minor, int sub)
major
- minor
- sub
- Method Detail |
---|
public int getMajor()
public void setMajor(int v)
public int getMinor()
public void setMinor(int v)
public int getSub()
public void setSub(int v)
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
Object.hashCode()
public int compareTo(VersionNumber v)
compareTo
in interface java.lang.Comparable<VersionNumber>
v
- the VersionNumber to be compared.
public boolean equals(VersionNumber v)
v
-
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
o
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |