|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbibliothek.util.Version
public final class Version
A version represents a version of this library.
| Field Summary | |
|---|---|
static Version |
CURRENT
The current version of this library. |
static Version |
VERSION_1_0_4
the version 1.0.4 |
static Version |
VERSION_1_0_5
the version 1.0.5 |
static Version |
VERSION_1_0_6
the version 1.0.6 |
static Version |
VERSION_1_0_7
the version 1.0.7 |
static Version |
VERSION_1_0_8
the version 1.0.8 |
static Version |
VERSION_1_0_8a
the version 1.0.8 (since preview 4) |
static Version |
VERSION_1_1_0
the version 1.1.0 |
static Version |
VERSION_1_1_0a
the version 1.1.0 (since preview 5) |
| Constructor Summary | |
|---|---|
Version(int major,
int minor,
int mikro,
java.lang.String add)
Creates a new version |
|
| Method Summary | |
|---|---|
void |
checkCurrent()
Checks whether this version is greater than the current version and throws an exception if so. |
int |
compareTo(Version o)
|
boolean |
equals(java.lang.Object obj)
|
java.lang.String |
getAdd()
Gets the additional information |
int |
getMajor()
Gets the major number. |
int |
getMikro()
Gets the mikro number |
int |
getMinor()
Gets the minor number |
int |
hashCode()
|
static Version |
read(java.io.DataInputStream in)
Reads a version that was stored earlier. |
java.lang.String |
toString()
|
static void |
write(java.io.DataOutputStream out,
Version version)
Writes the contents of a version. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final Version VERSION_1_0_4
public static final Version VERSION_1_0_5
public static final Version VERSION_1_0_6
public static final Version VERSION_1_0_7
public static final Version VERSION_1_0_8
public static final Version VERSION_1_0_8a
public static final Version VERSION_1_1_0
public static final Version VERSION_1_1_0a
public static final Version CURRENT
| Constructor Detail |
|---|
public Version(int major,
int minor,
int mikro,
java.lang.String add)
major - the major versionminor - the minor versionmikro - the mikro versionadd - additional comment, null will be replaced by the empty string| Method Detail |
|---|
public static void write(java.io.DataOutputStream out,
Version version)
throws java.io.IOException
out - the stream to write intoversion - the version to write
java.io.IOException - if an error occurs
public static Version read(java.io.DataInputStream in)
throws java.io.IOException
in - the stream to read from
java.io.IOException - if an error occurs or the format is unknown
public void checkCurrent()
throws java.io.IOException
java.io.IOException - thrown if the current version is smaller than this.public java.lang.String getAdd()
public int getMajor()
public int getMikro()
public int getMinor()
public int compareTo(Version o)
compareTo in interface java.lang.Comparable<Version>public java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||