Package org.jboss.hal.config
Enum Settings.Key
- java.lang.Object
-
- java.lang.Enum<Settings.Key>
-
- org.jboss.hal.config.Settings.Key
-
- All Implemented Interfaces:
Serializable,Comparable<Settings.Key>
- Enclosing class:
- Settings
public static enum Settings.Key extends Enum<Settings.Key>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Settings.Keyfrom(String key)Stringkey()static Settings.KeyvalueOf(String name)Returns the enum constant of this type with the specified name.static Settings.Key[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
TITLE
public static final Settings.Key TITLE
-
COLLECT_USER_DATA
public static final Settings.Key COLLECT_USER_DATA
-
LOCALE
public static final Settings.Key LOCALE
-
PAGE_SIZE
public static final Settings.Key PAGE_SIZE
-
POLL
public static final Settings.Key POLL
-
POLL_TIME
public static final Settings.Key POLL_TIME
-
RUN_AS
public static final Settings.Key RUN_AS
-
-
Method Detail
-
values
public static Settings.Key[] 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 (Settings.Key c : Settings.Key.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Settings.Key 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 nameNullPointerException- if the argument is null
-
from
public static Settings.Key from(String key)
-
key
public String key()
-
-