Enum Setting.TYPE
com.poly.polyos.settings
Enum Setting.TYPE
- java.lang.Object
- java.lang.Enum\<Setting.TYPE>
- com.poly.polyos.settings.Setting.TYPE
- java.lang.Enum\<Setting.TYPE>
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable\<Setting.TYPE>
Enclosing class:
Setting
public static enum
Setting.TYPE
extends java.lang.Enum<Setting.TYPE>
Since:
3.0.12
Enum Constant Summary
Enum Constant and Description
MULTIPLE
A setting that can have multiple values
OPTION
A setting that is from a predefined option list
SINGLE
Single value setting
Method Summary
Modifier and Type | Method and Description |
---|---|
static Setting.TYPE | valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name | |
static Setting.TYPE[] | values() |
Returns an array containing the constants of this enum type, in the order they are declared |
Methods inherited from class java.lang.Enum
clone
, compareTo
, equals
, finalize
, getDeclaringClass
, hashCode
, name
, ordinal
, toString
, valueOf
Methods inherited from class java.lang.Object
getClass
, notify
, notifyAll
, wait
, wait
, wait
Enum Constant Detail
SINGLE
public static final Setting.TYPE SINGLE
Single value setting
MULTIPLE
public static final Setting.TYPE MULTIPLE
A setting that can have multiple values
OPTION
public static final Setting.TYPE OPTION
A setting that is from a predefined option list
Method Detail
values
public static Setting.TYPE[] 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 (Setting.TYPE c : Setting.TYPE.values())
System.out.println(c);
Returns:
an array containing the constants of this enum type, in the order they are declared
valueOf
public static Setting.TYPE 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