public class Constants extends Object
Modifier and Type | Field and Description |
---|---|
static boolean |
ANDROID
True iff running on Android.
|
static String |
BUILD_DATE |
static GitInfo |
GIT_INFO
Details about the git commit this artifact was build for, can be null (if not build using maven)
|
static String |
JAVA_VENDOR |
static String |
JAVA_VERSION
The value of System.getProperty("java.version").
|
static boolean |
JRE_IS_MINIMUM_JAVA9 |
static String |
JVM_SPEC_VERSION |
static boolean |
LINUX
True iff running on Linux.
|
static boolean |
MAC_OS_X
True iff running on Mac OS X
|
static String |
OS_ARCH |
static String |
OS_NAME
The value of System.getProperty("os.name").
|
static String |
OS_VERSION |
static boolean |
SNAPSHOT |
static boolean |
SUN_OS
True iff running on SunOS.
|
static String |
VERSION
The version without the snapshot string
|
static int |
VERSION_EDGE |
static int |
VERSION_GEOMETRY |
static int |
VERSION_LOCATION_IDX |
static int |
VERSION_NODE |
static int |
VERSION_SHORTCUT |
static int |
VERSION_STRING_IDX |
static boolean |
WINDOWS
True iff running on Windows.
|
Constructor and Description |
---|
Constants() |
Modifier and Type | Method and Description |
---|---|
static String |
getMajorVersion() |
static String |
getVersions() |
public static final String JAVA_VERSION
public static final String OS_NAME
public static final boolean LINUX
public static final boolean ANDROID
public static final boolean WINDOWS
public static final boolean SUN_OS
public static final boolean MAC_OS_X
public static final String OS_ARCH
public static final String OS_VERSION
public static final String JAVA_VENDOR
public static final String JVM_SPEC_VERSION
public static final boolean JRE_IS_MINIMUM_JAVA9
public static final int VERSION_NODE
public static final int VERSION_EDGE
public static final int VERSION_SHORTCUT
public static final int VERSION_GEOMETRY
public static final int VERSION_LOCATION_IDX
public static final int VERSION_STRING_IDX
public static final String VERSION
public static final String BUILD_DATE
public static final GitInfo GIT_INFO
public static final boolean SNAPSHOT
Copyright © 2012–2020. All rights reserved.