Package org.flasby.login2.settings
Class SimpleSettingsImpl
java.lang.Object
org.flasby.login2.settings.SimpleSettingsImpl
- All Implemented Interfaces:
Iterable<Map.Entry<String,
,String>> PersistentSettings
,Settings
,SimpleSettings
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.flasby.login2.settings.Settings
Settings.ApplyWithExistingValue, Settings.ApplyWithMissingKey
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
doIfExists
(String key, Settings.ApplyWithExistingValue ifExists) void
doIfExists
(String key, Settings.ApplyWithExistingValue ifExists, Settings.ApplyWithMissingKey otherwise) gets a value from this settings group.boolean
isEmpty()
iterator()
void
void
save()
saves this Settings instance.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
SimpleSettingsImpl
public SimpleSettingsImpl()
-
-
Method Details
-
get
Description copied from interface:SimpleSettings
gets a value from this settings group.- Specified by:
get
in interfaceSettings
- Specified by:
get
in interfaceSimpleSettings
- Parameters:
name
-- Returns:
-
add
- Specified by:
add
in interfaceSimpleSettings
-
remove
- Specified by:
remove
in interfaceSimpleSettings
-
save
public void save()Description copied from interface:PersistentSettings
saves this Settings instance.- Specified by:
save
in interfacePersistentSettings
-
iterator
-
isEmpty
public boolean isEmpty()- Specified by:
isEmpty
in interfaceSettings
- Specified by:
isEmpty
in interfaceSimpleSettings
-
doIfExists
- Specified by:
doIfExists
in interfaceSettings
-
doIfExists
public void doIfExists(String key, Settings.ApplyWithExistingValue ifExists, Settings.ApplyWithMissingKey otherwise) - Specified by:
doIfExists
in interfaceSettings
-