|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PreferenceStorage
The PreferenceStorage stores key - value pairs into a persistent storage
Method Summary | |
---|---|
void |
close()
Close storage access |
boolean |
getWriteBack()
returns the writeback property |
int |
loadInt(java.lang.String key)
Loads the value for the corresponding key as int |
java.lang.String |
loadString(java.lang.String key)
Loads the value for the corresponding key as String |
boolean |
remove(java.lang.String key)
Removes the specified key from storage |
boolean |
save(java.lang.String key,
int value)
Save the key - value pair to storage |
boolean |
save(java.lang.String key,
java.lang.String value)
Save the key - value pair to storage |
void |
setWriteBack(boolean writeback)
Set writeback to true, if the changes should be written immediately back to the storage, otherwise changes are saved on close or earlier |
Method Detail |
---|
boolean save(java.lang.String key, java.lang.String value)
key
- value
-
boolean save(java.lang.String key, int value)
key
- value
-
java.lang.String loadString(java.lang.String key)
key
-
boolean remove(java.lang.String key)
key
- to remove
int loadInt(java.lang.String key)
key
-
void setWriteBack(boolean writeback)
writeback
- boolean getWriteBack()
void close()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |