|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectice.util.AbstractVersion
This class provides a versioning framework for subsystems requiring versioning that can be represented by an array (of any length) of integers.
| Field Summary | |
protected int[] |
_versionParts
The various parts of the version spec. |
| Constructor Summary | |
protected |
AbstractVersion(int[] versionSpec)
Constructor referenced by subclasses, passing the concrete version specification |
| Method Summary | |
int |
compareTo(Object obj)
Implement the compareTo method, this provides a full length comparison. |
int[] |
getParts()
Retrieve the individual parts of the internal Version representation. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected int[] _versionParts
| Constructor Detail |
protected AbstractVersion(int[] versionSpec)
versionSpec - | Method Detail |
public int[] getParts()
public int compareTo(Object obj)
compareTo in interface Comparableobj - The other array
ClassCastException - if the other object is not an instance
of AbstractVersion
ArrayIndexOutOfBoundsException - if the other object is an
AbstractVersion constructed with a different size
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||