Package org.apache.lucene.util
Class Constants
- java.lang.Object
-
- org.apache.lucene.util.Constants
-
public final class Constants extends java.lang.ObjectSome useful constants.
-
-
Field Summary
Fields Modifier and Type Field Description static booleanFREE_BSDTrue iff running on FreeBSDstatic java.lang.StringJAVA_VENDORstatic java.lang.StringJAVA_VERSIONThe value of System.getProperty("java.version").static booleanJRE_IS_64BITTrue iff running on a 64bit JVMstatic booleanJRE_IS_MINIMUM_JAVA11static booleanJRE_IS_MINIMUM_JAVA8static booleanJRE_IS_MINIMUM_JAVA9private static intJVM_MAJOR_VERSIONprivate static intJVM_MINOR_VERSIONstatic java.lang.StringJVM_NAMEstatic java.lang.StringJVM_SPEC_VERSIONstatic java.lang.StringJVM_VENDORJVM vendor info.static java.lang.StringJVM_VERSIONstatic booleanLINUXTrue iff running on Linux.static java.lang.StringLUCENE_MAIN_VERSIONDeprecated.UseVersion.LATESTstatic java.lang.StringLUCENE_VERSIONDeprecated.UseVersion.LATESTstatic booleanMAC_OS_XTrue iff running on Mac OS Xstatic java.lang.StringOS_ARCHstatic java.lang.StringOS_NAMEThe value of System.getProperty("os.name").static java.lang.StringOS_VERSIONstatic booleanSUN_OSTrue iff running on SunOS.static booleanWINDOWSTrue iff running on Windows.
-
Constructor Summary
Constructors Modifier Constructor Description privateConstants()
-
-
-
Field Detail
-
JVM_VENDOR
public static final java.lang.String JVM_VENDOR
JVM vendor info.
-
JVM_VERSION
public static final java.lang.String JVM_VERSION
-
JVM_NAME
public static final java.lang.String JVM_NAME
-
JVM_SPEC_VERSION
public static final java.lang.String JVM_SPEC_VERSION
-
JAVA_VERSION
public static final java.lang.String JAVA_VERSION
The value of System.getProperty("java.version").
-
OS_NAME
public static final java.lang.String OS_NAME
The value of System.getProperty("os.name").
-
LINUX
public static final boolean LINUX
True iff running on Linux.
-
WINDOWS
public static final boolean WINDOWS
True iff running on Windows.
-
SUN_OS
public static final boolean SUN_OS
True iff running on SunOS.
-
MAC_OS_X
public static final boolean MAC_OS_X
True iff running on Mac OS X
-
FREE_BSD
public static final boolean FREE_BSD
True iff running on FreeBSD
-
OS_ARCH
public static final java.lang.String OS_ARCH
-
OS_VERSION
public static final java.lang.String OS_VERSION
-
JAVA_VENDOR
public static final java.lang.String 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_64BIT
True 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 public static final java.lang.String LUCENE_MAIN_VERSION
Deprecated.UseVersion.LATESTThis is the internal Lucene version, including bugfix versions, recorded into each segment.
-
LUCENE_VERSION
@Deprecated public static final java.lang.String LUCENE_VERSION
Deprecated.UseVersion.LATESTDon't use this constant because the name is not self-describing!
-
-