public enum SettingsCache extends Enum<SettingsCache>
Enum Constant and Description |
---|
INSTANCE |
Modifier and Type | Method and Description |
---|---|
<T extends CommonSettings> |
getSettings(Class<T> settingsClass)
Returns settings of defined type.
|
void |
setSettings(CommonSettings settings)
Set settings.
|
static SettingsCache |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SettingsCache[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SettingsCache INSTANCE
public static SettingsCache[] values()
for (SettingsCache c : SettingsCache.values()) System.out.println(c);
public static SettingsCache 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 <T extends CommonSettings> T getSettings(Class<T> settingsClass)
T
- settingsClass
- public void setSettings(CommonSettings settings)
settings
- Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.