Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
Version(int major,
int minor,
int mikro,
java.lang.String add)
Creates a new version
|
Modifier and Type | Method and Description |
---|---|
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.
|
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
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 stringpublic static void write(java.io.DataOutputStream out, Version version) throws java.io.IOException
out
- the stream to write intoversion
- the version to writejava.io.IOException
- if an error occurspublic static Version read(java.io.DataInputStream in) throws java.io.IOException
in
- the stream to read fromjava.io.IOException
- if an error occurs or the format is unknownpublic 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.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object