java.lang.Object
org.apache.lucene.util.Constants
Some useful constants.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final boolean
True iff running on FreeBSDstatic final String
The value ofSystem.getProperty("java.vendor")
.static final String
Deprecated.static final boolean
True iff running on a 64bit JVMstatic final boolean
Deprecated.This constant is useless and alwaystrue
.static final boolean
Deprecated.This constant is useless and alwaystrue
.static final boolean
Deprecated.This constant is useless and alwaystrue
.static final String
JVM vendor name.static final String
Deprecated.To detect Java versions useRuntime.version()
static final String
JVM vendor info.static final String
Deprecated.To detect Java versions useRuntime.version()
static final boolean
True iff running on Linux.static final boolean
True iff running on Mac OS Xstatic final String
The value ofSystem.getProperty("os.arch")
.static final String
The value ofSystem.getProperty("os.name")
.static final String
The value ofSystem.getProperty("os.version")
.static final boolean
True iff running on SunOS.static final boolean
True iff running on Windows. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
JVM_VENDOR
JVM vendor info. -
JVM_NAME
JVM vendor name. -
JVM_VERSION
Deprecated.To detect Java versions useRuntime.version()
Get the full version string of the current runtime. -
JVM_SPEC_VERSION
Deprecated.To detect Java versions useRuntime.version()
Gets the specification version of the current runtime. This is the feature version converted to String.- See Also:
-
JAVA_VERSION
Deprecated.To detect Java versions useRuntime.version()
The value ofSystem.getProperty("java.version")
. -
OS_NAME
The value ofSystem.getProperty("os.name")
. * -
LINUX
public static final boolean LINUXTrue iff running on Linux. -
WINDOWS
public static final boolean WINDOWSTrue iff running on Windows. -
SUN_OS
public static final boolean SUN_OSTrue iff running on SunOS. -
MAC_OS_X
public static final boolean MAC_OS_XTrue iff running on Mac OS X -
FREE_BSD
public static final boolean FREE_BSDTrue iff running on FreeBSD -
OS_ARCH
The value ofSystem.getProperty("os.arch")
. -
OS_VERSION
The value ofSystem.getProperty("os.version")
. -
JAVA_VENDOR
The value ofSystem.getProperty("java.vendor")
. -
JRE_IS_64BIT
public static final boolean JRE_IS_64BITTrue iff running on a 64bit JVM -
JRE_IS_MINIMUM_JAVA8
Deprecated.This constant is useless and alwaystrue
. To detect Java versions useRuntime.version()
Always true.- See Also:
-
JRE_IS_MINIMUM_JAVA9
Deprecated.This constant is useless and alwaystrue
. To detect Java versions useRuntime.version()
Always true.- See Also:
-
JRE_IS_MINIMUM_JAVA11
Deprecated.This constant is useless and alwaystrue
. To detect Java versions useRuntime.version()
Always true.- See Also:
-
-
Constructor Details
-
Constants
private Constants()
-
Runtime.version()