public class Version
extends java.lang.Object
When using the class, the methods for the version number digits
will always return an integer. In order to obtain the full version
number, including any "release candidate" suffices, please prefer
the toString
method over combining the separate version
integers yourself.
Modifier and Type | Field and Description |
---|---|
private java.util.Properties |
props |
static java.lang.String |
STAMP_FILENAME
Basename of the build stamp file.
|
Constructor and Description |
---|
Version() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
determineBuilt()
Deprecated.
Use getTimestamp() instead
|
java.lang.String |
determineInstalled()
Determines the built and architecture of the installation.
|
java.lang.String |
determinePlatform()
Deprecated.
Used getPlatform() instead
|
java.lang.String |
getMajor() |
java.lang.String |
getMinor() |
java.lang.String |
getPatch() |
java.lang.String |
getPlatform() |
java.lang.String |
getTimestamp() |
java.lang.String |
getVersion() |
static Version |
instance()
Deprecated.
Just create a new instance
|
boolean |
matches()
Determines, if the compiled version and the installed version
match.
|
private java.lang.String[] |
splitVersion() |
java.lang.String |
toString() |
public static final java.lang.String STAMP_FILENAME
private java.util.Properties props
public static Version instance()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getVersion()
private java.lang.String[] splitVersion()
public java.lang.String getMajor()
public java.lang.String getMinor()
public java.lang.String getPatch()
public java.lang.String determineBuilt()
public java.lang.String getTimestamp()
public java.lang.String determinePlatform()
public java.lang.String getPlatform()
public java.lang.String determineInstalled()
public boolean matches()