public class SupportSettingsUtils
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static java.util.Set<java.lang.String> |
getStringSet(android.content.SharedPreferences preferences,
java.lang.String key,
java.util.Set<java.lang.String> defaultValue)
Retrieve a set of strings from SharedPreferences, using the built-in
getStringSet method if available and falling back to a comma separated
String if not.
|
static void |
putStringSet(android.content.SharedPreferences.Editor editor,
java.lang.String key,
java.util.Set<java.lang.String> value)
Store a set in SharedPreferences, using the built-in putStringSet method
if available and falling back to a comma separated String if not.
|
public static java.util.Set<java.lang.String> getStringSet(android.content.SharedPreferences preferences,
java.lang.String key,
java.util.Set<java.lang.String> defaultValue)
preferences - the SharedPreferences to retrieve the set from.key - the key for the preference.defaultValue - the default value to return if the preference is not
stored.public static void putStringSet(android.content.SharedPreferences.Editor editor,
java.lang.String key,
java.util.Set<java.lang.String> value)
editor - the editor to store the set in.key - the key for the preference.value - the value to store with the key.