public class MRUStringCache
extends java.lang.Object
| Constructor and Description |
|---|
MRUStringCache() |
| Modifier and Type | Method and Description |
|---|---|
static java.util.List<java.lang.String> |
GetHistory(android.content.SharedPreferences prefs,
java.lang.String key)
Get list of recently used Strings, for given key
|
static void |
SetHistory(android.content.SharedPreferences prefs,
java.lang.String key,
java.util.List<java.lang.String> values)
Replace the history to include the specified recently used strings
|
static void |
UpdateHistory(android.content.SharedPreferences prefs,
java.lang.String key,
java.lang.String value)
Update the history to include the specified recently used string
|
public static java.util.List<java.lang.String> GetHistory(android.content.SharedPreferences prefs,
java.lang.String key)
prefs - the history based on the shared preference storage of a specific keypublic static void UpdateHistory(android.content.SharedPreferences prefs,
java.lang.String key,
java.lang.String value)
prefs - add a string to the most recently used historykey - the key that is used to hold the most recently used history.value - the string that is most recently used.public static void SetHistory(android.content.SharedPreferences prefs,
java.lang.String key,
java.util.List<java.lang.String> values)
prefs - set the entire most recently used history list.key - the key used to store the most recently used history.values - the list of strings