public enum SettingsManager extends java.lang.Enum<SettingsManager>
Enum Constant and Description |
---|
INSTANCE |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getString(java.lang.String key,
java.lang.String defaultValue)
Gets a string settings identified by a key, or a default
value if the setting has no specified value.
|
static SettingsManager |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static SettingsManager[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SettingsManager INSTANCE
public static SettingsManager[] values()
for (SettingsManager c : SettingsManager.values()) System.out.println(c);
public static SettingsManager valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String getString(java.lang.String key, java.lang.String defaultValue)
key
- the key for the settingdefaultValue
- the default valueCopyright © 2010-2018 Planetary Data System. All Rights Reserved.