|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthudson.plugins.collabnet.auth.CNVersion
public class CNVersion
Class to represent and compare CollabNet version numbers.
| Constructor Summary | |
|---|---|
CNVersion(java.lang.String versionString)
|
|
| Method Summary | |
|---|---|
int |
compareTo(CNVersion otherVersion)
|
boolean |
equals(java.lang.Object obj)
Override the equals method to ensure that any CNVersion with the same version numbers is equal. |
int |
hashCode()
Override hashCode since we're are overriding equals. |
java.lang.String |
toString()
Override the toString method to display the parts of the version as a String. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public CNVersion(java.lang.String versionString)
| Method Detail |
|---|
public int compareTo(CNVersion otherVersion)
compareTo in interface java.lang.Comparable<CNVersion>java.lang.NullPointerException - if otherVersion is null.public java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||