|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jxl.version.Version
public class Version
Comparable object containing a version number. Version implements the Comparable shorterface and overrides toString() with a concice human readable output. Each constructor to Version requires a short indicating the range of the version. Legal arguments are Version.EARLIER, Version.EXACT, and Version.LATTER.
Field Summary | |
---|---|
static short |
MAX_REV_VAL
|
Constructor Summary | |
---|---|
Version()
|
|
Version(short rev1)
Creates a Version of vrev1.X |
|
Version(short rev1,
short rev2)
Creates a Version of vrev1.rev2.X |
|
Version(short rev1,
short rev2,
short rev3)
Creates a Version of vrev1.rev2.rev3_X |
|
Version(short rev1,
short rev2,
short rev3,
short rev4)
Creates a Version of vrev1.rev2.rev3_rev4 |
Method Summary | |
---|---|
int |
compareTo(java.lang.Object o)
Compares this Version to other if other is of type Version |
int |
compareTo(Version v)
|
boolean |
equals(java.lang.Object o)
|
short |
getPrimaryVersion()
|
short |
getSecondaryVersion()
|
short |
getTersiaryVersion()
|
short |
getTetranryVersion()
|
int |
hashCode()
|
static Version |
parseVersion(long l)
|
static Version |
parseVersion(java.lang.String version)
|
long |
toLong()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final short MAX_REV_VAL
Constructor Detail |
---|
public Version(short rev1)
public Version(short rev1, short rev2)
public Version(short rev1, short rev2, short rev3)
public Version(short rev1, short rev2, short rev3, short rev4)
public Version()
Method Detail |
---|
public static Version parseVersion(java.lang.String version)
public short getPrimaryVersion()
public short getSecondaryVersion()
public short getTersiaryVersion()
public short getTetranryVersion()
public int compareTo(java.lang.Object o)
compareTo
in interface java.lang.Comparable
public long toLong()
public static Version parseVersion(long l)
public int compareTo(Version v) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |