com.typesafe.config
Enum ConfigValueType
java.lang.Object
java.lang.Enum<ConfigValueType>
com.typesafe.config.ConfigValueType
- All Implemented Interfaces:
- Serializable, Comparable<ConfigValueType>
public enum ConfigValueType
- extends Enum<ConfigValueType>
The type of a configuration value (following the JSON type schema).
Method Summary |
static ConfigValueType |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static ConfigValueType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared. |
OBJECT
public static final ConfigValueType OBJECT
LIST
public static final ConfigValueType LIST
NUMBER
public static final ConfigValueType NUMBER
BOOLEAN
public static final ConfigValueType BOOLEAN
NULL
public static final ConfigValueType NULL
STRING
public static final ConfigValueType STRING
values
public static ConfigValueType[] 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 (ConfigValueType c : ConfigValueType.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static ConfigValueType valueOf(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:
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is null