Package com.google.common.base
Enum StandardSystemProperty
- java.lang.Object
- 
- java.lang.Enum<StandardSystemProperty>
- 
- com.google.common.base.StandardSystemProperty
 
 
- 
- All Implemented Interfaces:
- java.io.Serializable,- java.lang.Comparable<StandardSystemProperty>
 
 @GwtIncompatible public enum StandardSystemProperty extends java.lang.Enum<StandardSystemProperty> Represents a standard system property.- Since:
- 15.0
- Author:
- Kurt Alfred Kluever
 
- 
- 
Enum Constant SummaryEnum Constants Enum Constant Description FILE_SEPARATORFile separator ("/" on UNIX).JAVA_CLASS_PATHJava class path.JAVA_CLASS_VERSIONJava class format version number.JAVA_COMPILERName of JIT compiler to use.JAVA_EXT_DIRSDeprecated.This property was deprecated in Java 8 and removed in Java 9.JAVA_HOMEJava installation directory.JAVA_IO_TMPDIRDefault temp file path.JAVA_LIBRARY_PATHList of paths to search when loading libraries.JAVA_SPECIFICATION_NAMEJava Runtime Environment specification name.JAVA_SPECIFICATION_VENDORJava Runtime Environment specification vendor.JAVA_SPECIFICATION_VERSIONJava Runtime Environment specification version.JAVA_VENDORJava Runtime Environment vendor.JAVA_VENDOR_URLJava vendor URL.JAVA_VERSIONJava Runtime Environment version.JAVA_VM_NAMEJava Virtual Machine implementation name.JAVA_VM_SPECIFICATION_NAMEJava Virtual Machine specification name.JAVA_VM_SPECIFICATION_VENDORJava Virtual Machine specification vendor.JAVA_VM_SPECIFICATION_VERSIONJava Virtual Machine specification version.JAVA_VM_VENDORJava Virtual Machine implementation vendor.JAVA_VM_VERSIONJava Virtual Machine implementation version.LINE_SEPARATORLine separator ("\n" on UNIX).OS_ARCHOperating system architecture.OS_NAMEOperating system name.OS_VERSIONOperating system version.PATH_SEPARATORPath separator (":" on UNIX).USER_DIRUser's current working directory.USER_HOMEUser's home directory.USER_NAMEUser's account name.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Stringkey()Returns the key used to look up this system property.java.lang.StringtoString()Returns a string representation of this system property.java.lang.Stringvalue()Returns the current value for this system property by delegating toSystem.getProperty(String).static StandardSystemPropertyvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static StandardSystemProperty[]values()Returns an array containing the constants of this enum type, in the order they are declared.
 
- 
- 
- 
Enum Constant Detail- 
JAVA_VERSIONpublic static final StandardSystemProperty JAVA_VERSION Java Runtime Environment version.
 - 
JAVA_VENDORpublic static final StandardSystemProperty JAVA_VENDOR Java Runtime Environment vendor.
 - 
JAVA_VENDOR_URLpublic static final StandardSystemProperty JAVA_VENDOR_URL Java vendor URL.
 - 
JAVA_HOMEpublic static final StandardSystemProperty JAVA_HOME Java installation directory.
 - 
JAVA_VM_SPECIFICATION_VERSIONpublic static final StandardSystemProperty JAVA_VM_SPECIFICATION_VERSION Java Virtual Machine specification version.
 - 
JAVA_VM_SPECIFICATION_VENDORpublic static final StandardSystemProperty JAVA_VM_SPECIFICATION_VENDOR Java Virtual Machine specification vendor.
 - 
JAVA_VM_SPECIFICATION_NAMEpublic static final StandardSystemProperty JAVA_VM_SPECIFICATION_NAME Java Virtual Machine specification name.
 - 
JAVA_VM_VERSIONpublic static final StandardSystemProperty JAVA_VM_VERSION Java Virtual Machine implementation version.
 - 
JAVA_VM_VENDORpublic static final StandardSystemProperty JAVA_VM_VENDOR Java Virtual Machine implementation vendor.
 - 
JAVA_VM_NAMEpublic static final StandardSystemProperty JAVA_VM_NAME Java Virtual Machine implementation name.
 - 
JAVA_SPECIFICATION_VERSIONpublic static final StandardSystemProperty JAVA_SPECIFICATION_VERSION Java Runtime Environment specification version.
 - 
JAVA_SPECIFICATION_VENDORpublic static final StandardSystemProperty JAVA_SPECIFICATION_VENDOR Java Runtime Environment specification vendor.
 - 
JAVA_SPECIFICATION_NAMEpublic static final StandardSystemProperty JAVA_SPECIFICATION_NAME Java Runtime Environment specification name.
 - 
JAVA_CLASS_VERSIONpublic static final StandardSystemProperty JAVA_CLASS_VERSION Java class format version number.
 - 
JAVA_CLASS_PATHpublic static final StandardSystemProperty JAVA_CLASS_PATH Java class path.
 - 
JAVA_LIBRARY_PATHpublic static final StandardSystemProperty JAVA_LIBRARY_PATH List of paths to search when loading libraries.
 - 
JAVA_IO_TMPDIRpublic static final StandardSystemProperty JAVA_IO_TMPDIR Default temp file path.
 - 
JAVA_COMPILERpublic static final StandardSystemProperty JAVA_COMPILER Name of JIT compiler to use.
 - 
JAVA_EXT_DIRS@Deprecated public static final StandardSystemProperty JAVA_EXT_DIRS Deprecated.This property was deprecated in Java 8 and removed in Java 9. We do not plan to remove this API from Guava, but if you are using it, it is probably not doing what you want.Path of extension directory or directories.
 - 
OS_NAMEpublic static final StandardSystemProperty OS_NAME Operating system name.
 - 
OS_ARCHpublic static final StandardSystemProperty OS_ARCH Operating system architecture.
 - 
OS_VERSIONpublic static final StandardSystemProperty OS_VERSION Operating system version.
 - 
FILE_SEPARATORpublic static final StandardSystemProperty FILE_SEPARATOR File separator ("/" on UNIX).
 - 
PATH_SEPARATORpublic static final StandardSystemProperty PATH_SEPARATOR Path separator (":" on UNIX).
 - 
LINE_SEPARATORpublic static final StandardSystemProperty LINE_SEPARATOR Line separator ("\n" on UNIX).
 - 
USER_NAMEpublic static final StandardSystemProperty USER_NAME User's account name.
 - 
USER_HOMEpublic static final StandardSystemProperty USER_HOME User's home directory.
 - 
USER_DIRpublic static final StandardSystemProperty USER_DIR User's current working directory.
 
- 
 - 
Method Detail- 
valuespublic static StandardSystemProperty[] values() Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (StandardSystemProperty c : StandardSystemProperty.values()) System.out.println(c); - Returns:
- an array containing the constants of this enum type, in the order they are declared
 
 - 
valueOfpublic static StandardSystemProperty valueOf(java.lang.String name) Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
- name- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
- java.lang.IllegalArgumentException- if this enum type has no constant with the specified name
- java.lang.NullPointerException- if the argument is null
 
 - 
keypublic java.lang.String key() Returns the key used to look up this system property.
 - 
value@CheckForNull public java.lang.String value() Returns the current value for this system property by delegating toSystem.getProperty(String).The value returned by this method is non-null except in rare circumstances: - JAVA_EXT_DIRSwas deprecated in Java 8 and removed in Java 9. We have not confirmed whether it is available under older versions.
- JAVA_COMPILER, while still listed as required as of Java 15, is typically not available even under older version.
- Any property may be cleared through APIs like System.clearProperty(java.lang.String).
- Unusual environments like GWT may have their own special handling of system properties.
 Note that StandardSystemPropertydoes not provide constants for more recently added properties, including:- java.vendor.version(added in Java 11, listed as optional as of Java 13)
- jdk.module.*(added in Java 9, optional)
 
 - 
toStringpublic java.lang.String toString() Returns a string representation of this system property.- Overrides:
- toStringin class- java.lang.Enum<StandardSystemProperty>
 
 
- 
 
-