java.lang.Object
org.autogui.base.mapping.GuiPreferences.GuiValueStore
org.autogui.base.mapping.GuiPreferences.GuiValueStoreOnMemory
- Direct Known Subclasses:
GuiPreferences.GuiValueStoreImmutable
- Enclosing class:
GuiPreferences
an on-memory impl. of value-store
-
Field Summary
FieldsFields inherited from class org.autogui.base.mapping.GuiPreferences.GuiValueStore
preferences -
Constructor Summary
ConstructorsConstructorDescriptionfor test purpose: it's preferences can be set by the GuiPreferences constructor that takes the storeGuiValueStoreOnMemory(GuiPreferences preferences) GuiValueStoreOnMemory(GuiPreferences preferences, GuiPreferences.GuiValueStoreOnMemory parent) -
Method Summary
Modifier and TypeMethodDescriptiongetChild(GuiPreferences preferences, String key) intgetKeys()booleanhasEntryKey(String key) booleanhasNodeKey(String key) voidputChild(String name, GuiPreferences.GuiValueStore value) voidvoidvoidvoiderase the node, but it might not remove the node from the parenttoJson()Methods inherited from class org.autogui.base.mapping.GuiPreferences.GuiValueStore
flush, getChild, getChild, getPreferences, setPreferences
-
Field Details
-
parent
-
values
-
-
Constructor Details
-
GuiValueStoreOnMemory
public GuiValueStoreOnMemory()for test purpose: it's preferences can be set by the GuiPreferences constructor that takes the store -
GuiValueStoreOnMemory
-
GuiValueStoreOnMemory
public GuiValueStoreOnMemory(GuiPreferences preferences, GuiPreferences.GuiValueStoreOnMemory parent)
-
-
Method Details
-
putString
- Specified by:
putStringin classGuiPreferences.GuiValueStore
-
getString
- Specified by:
getStringin classGuiPreferences.GuiValueStore
-
putInt
- Specified by:
putIntin classGuiPreferences.GuiValueStore
-
getInt
- Specified by:
getIntin classGuiPreferences.GuiValueStore
-
getChild
- Specified by:
getChildin classGuiPreferences.GuiValueStore
-
getKeys
- Specified by:
getKeysin classGuiPreferences.GuiValueStore- Returns:
- list of a key which might be different from a given key for put(k,...)
because of the max key length,
converted by
GuiPreferences.toStoreKey(String). such key will be acceptable as an argument for other methods.
-
hasEntryKey
- Specified by:
hasEntryKeyin classGuiPreferences.GuiValueStore
-
hasNodeKey
- Specified by:
hasNodeKeyin classGuiPreferences.GuiValueStore
-
putChild
-
toJson
-
remove
- Specified by:
removein classGuiPreferences.GuiValueStore
-
removeThisNode
public void removeThisNode()Description copied from class:GuiPreferences.GuiValueStoreerase the node, but it might not remove the node from the parent- Specified by:
removeThisNodein classGuiPreferences.GuiValueStore
-
copyInitAsRoot
- Specified by:
copyInitAsRootin classGuiPreferences.GuiValueStore
-