|
||||||||||
| 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) |
static Version |
VERSION_1_1_1
the version 1.1.1 |
static Version |
VERSION_1_1_1a
the version 1.1.1 (since preview 5c) |
static Version |
VERSION_1_1_2
version 1.1.2 |
| Constructor Summary | |
|---|---|
Version(int major,
int minor,
int mikro,
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(Object obj)
|
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(DataInputStream in)
Reads a version that was stored earlier. |
String |
toString()
|
static void |
write(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 VERSION_1_1_1
public static final Version VERSION_1_1_1a
public static final Version VERSION_1_1_2
public static final Version CURRENT
| Constructor Detail |
|---|
public Version(int major,
int minor,
int mikro,
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(DataOutputStream out,
Version version)
throws IOException
out - the stream to write intoversion - the version to write
IOException - if an error occurs
public static Version read(DataInputStream in)
throws IOException
in - the stream to read from
IOException - if an error occurs or the format is unknown
public void checkCurrent()
throws IOException
IOException - thrown if the current version is smaller than this.public String getAdd()
public int getMajor()
public int getMikro()
public int getMinor()
public int compareTo(Version o)
compareTo in interface Comparable<Version>public String toString()
toString in class Objectpublic int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||