public interface IKeyValueStorage
Modifier and Type | Method and Description |
---|---|
boolean |
addValue(java.lang.String key,
java.lang.String value)
Add a value to the store.
|
boolean |
clear()
Empty the store entirely, and save the fact that the store is empty.
|
java.lang.String[] |
getAllKeys()
Get an array of all the possible keys currently stored.
|
java.lang.String |
getValue(java.lang.String key)
Get a value from the store, or return
null if it cannot be found. |
java.lang.String |
getValue(java.lang.String key,
java.lang.String defaultValue)
Get a value from the store, or return
defaultValue if it cannot be found. |
boolean |
removeValue(java.lang.String key)
Remove a value from the store, and save the fact it has been removed.
|
boolean addValue(java.lang.String key, java.lang.String value)
true
if successful.java.lang.String getValue(java.lang.String key)
null
if it cannot be found.java.lang.String getValue(java.lang.String key, java.lang.String defaultValue)
defaultValue
if it cannot be found.boolean removeValue(java.lang.String key)
boolean clear()
java.lang.String[] getAllKeys()
null
.