Enum Class PropertiesProvider
- All Implemented Interfaces:
Serializable,Comparable<PropertiesProvider>,Constable
Provides platform-dependent system properties for the current running machine.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionProvides a string representation for the platform-dependent filesystem separator.Provides a string representation for the absolute path of the java interpreter binary.Provides a string representation for the absolute directory of the current user directory.Provides a string representation for the absolute directory of the user home.Provides a string representation for the filesystem separator of the Zip specification. -
Method Summary
Modifier and TypeMethodDescriptionRetrieves the platform-dependent property.static PropertiesProviderReturns the enum constant of this class with the specified name.static PropertiesProvider[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
USER_DIR
Provides a string representation for the absolute directory of the current user directory. -
USER_HOME
Provides a string representation for the absolute directory of the user home. -
FILE_SEPARATOR
Provides a string representation for the platform-dependent filesystem separator. -
ZIP_FILE_SEPARATOR
Provides a string representation for the filesystem separator of the Zip specification. -
JAVA_HOME
Provides a string representation for the absolute path of the java interpreter binary.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getSystemProperty
Retrieves the platform-dependent property.- Returns:
- a string representation for the platform-dependent property
-