public class Version extends 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 |
---|---|
protected static Version |
c_instance
Instance variable keeping track of the Singleton.
|
static int |
MAJOR
This constant defines the major version number.
|
static int |
MINOR
This constant defines the minor version number.
|
static int |
PLEVEL
This constant defines the patch level version.
|
static String |
STAMP_FILENAME
Basename of the build stamp file.
|
Modifier | Constructor and Description |
---|---|
private |
Version()
C'tor: construct an element, which is empty anyway.
|
Modifier and Type | Method and Description |
---|---|
String |
determineBuilt()
Determines the built as a time stamp.
|
String |
determineInstalled()
Determines the built and architecture of the installation.
|
String |
determinePlatform()
Determines the build platform.
|
static Version |
instance()
Accessor to the singleton.
|
boolean |
matches()
Determines, if the compiled version and the installed version
match.
|
String |
toString()
Returns a string containing the concatenated version.
|
public static final int MAJOR
public static final int MINOR
public static final int PLEVEL
protected static Version c_instance
public static final String STAMP_FILENAME
public static Version instance()
public String toString()
public String determineBuilt()
public String determinePlatform()
public String determineInstalled()
public boolean matches()
Copyright © 2011 The University of Southern California. All Rights Reserved.