Package org.flasby.settings
Interface Settings
- All Known Subinterfaces:
PersistentSettings
,SimpleSettings
- All Known Implementing Classes:
Encrypt
,FileSettings
,MixedEncrypt
,SimpleSettingsImpl
provides persistent settings for any application.
The settings can be edited manually.
Settings are organized into groups which may contain other groups.
Groups are, however, optional and a root group exists and is the first to be available.
- Author:
- Steve Flasby
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interface
static interface
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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()
Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
-
Method Details
-
get
gets a value from this settings group.- Parameters:
name
-- Returns:
-
doIfExists
-
doIfExists
void doIfExists(String key, Settings.ApplyWithExistingValue ifExists, Settings.ApplyWithMissingKey otherwise) -
isEmpty
boolean isEmpty()
-