public enum SettingsManager extends Enum<SettingsManager>
| Enum Constant and Description |
|---|
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
String |
getString(String key,
String defaultValue)
Gets a string settings identified by a key, or a default
value if the setting has no specified value.
|
static SettingsManager |
valueOf(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(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic String getString(String key, String defaultValue)
key - the key for the settingdefaultValue - the default valueCopyright © 2020 Jet Propulsion Laboratory, California Institute of Technology. All rights reserved.