Package org.apache.lucene.util
Class Constants
java.lang.Object
org.apache.lucene.util.Constants
Some useful constants.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final booleanTrue iff running on FreeBSDstatic final Stringstatic final StringThe value of System.getProperty("java.version").static final booleanTrue iff running on a 64bit JVMstatic final booleanstatic final booleanstatic final booleanprivate static final intprivate static final intstatic final Stringstatic final Stringstatic final StringJVM vendor info.static final Stringstatic final booleanTrue iff running on Linux.static final StringDeprecated.static final StringDeprecated.UseVersion.LATESTstatic final booleanTrue iff running on Mac OS Xstatic final Stringstatic final StringThe value of System.getProperty("os.name").static final Stringstatic final booleanTrue iff running on SunOS.static final booleanTrue iff running on Windows. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
JVM_VENDOR
JVM vendor info. -
JVM_VERSION
-
JVM_NAME
-
JVM_SPEC_VERSION
-
JAVA_VERSION
The value of System.getProperty("java.version"). -
OS_NAME
The value of System.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
-
OS_VERSION
-
JAVA_VENDOR
-
JVM_MAJOR_VERSION
private static final int JVM_MAJOR_VERSION -
JVM_MINOR_VERSION
private static final int JVM_MINOR_VERSION -
JRE_IS_64BIT
public static final boolean JRE_IS_64BITTrue iff running on a 64bit JVM -
JRE_IS_MINIMUM_JAVA8
public static final boolean JRE_IS_MINIMUM_JAVA8 -
JRE_IS_MINIMUM_JAVA9
public static final boolean JRE_IS_MINIMUM_JAVA9 -
JRE_IS_MINIMUM_JAVA11
public static final boolean JRE_IS_MINIMUM_JAVA11 -
LUCENE_MAIN_VERSION
Deprecated.UseVersion.LATESTThis is the internal Lucene version, including bugfix versions, recorded into each segment. -
LUCENE_VERSION
Deprecated.UseVersion.LATESTDon't use this constant because the name is not self-describing!
-
-
Constructor Details
-
Constants
private Constants()
-
Version.LATEST