public class Version
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
JDK_1_5 |
static int |
JDK_1_6 |
static int |
JDK_VERSION |
static int |
JDK_VERSION_NOT_SET
Keep track of JDK version in order to make some decisions about data structures.
|
Constructor and Description |
---|
Version() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
getBuildDate() |
static java.lang.String |
getBuildNumber() |
static java.lang.String |
getBuildRevision() |
static java.lang.String |
getBuildTime() |
static java.lang.String |
getBuildType() |
static int |
getJDKVersion()
INTERNAL:
Return the JDK version we are using.
|
static java.lang.String |
getProduct() |
static java.lang.String |
getQualifier() |
static java.lang.String |
getVersion() |
static java.lang.String |
getVersionString() |
static boolean |
isJDK15() |
static boolean |
isJDK16() |
static void |
main(java.lang.String[] args) |
static void |
printVersion() |
static void |
setProduct(java.lang.String ProductName) |
static void |
useJDK15() |
static void |
useJDK16() |
public static final int JDK_VERSION_NOT_SET
public static final int JDK_1_5
public static final int JDK_1_6
public static int JDK_VERSION
public static java.lang.String getVersionString()
public static java.lang.String getProduct()
public static void setProduct(java.lang.String ProductName)
public static java.lang.String getVersion()
public static java.lang.String getQualifier()
public static java.lang.String getBuildNumber()
public static java.lang.String getBuildDate()
public static java.lang.String getBuildTime()
public static java.lang.String getBuildRevision()
public static java.lang.String getBuildType()
public static int getJDKVersion()
public static void useJDK15()
public static void useJDK16()
public static boolean isJDK15()
public static boolean isJDK16()
public static void printVersion()
public static void main(java.lang.String[] args)