- getAll() - Method in class universum.studios.android.preference.crypto.CryptoSharedPreferences
-
Note that the values contained within the returned map will be either type of String
or Set<String>, but already decrypted.
- getAll() - Method in class universum.studios.android.preference.SharedPreferencesWrapper
-
- getBoolean(String, boolean) - Method in class universum.studios.android.preference.crypto.CryptoSharedPreferences
-
- getBoolean(String, boolean) - Method in class universum.studios.android.preference.PreferencesManager
-
- getBoolean(String) - Method in interface universum.studios.android.preference.SharedPreferencesCache
-
Retrieves the boolean value for the specified key stored in this cache.
- getBoolean(String, boolean) - Method in interface universum.studios.android.preference.SharedPreferencesFacade
-
Retrieves the boolean value for the specified key from SharedPreferences
hidden behind this facade.
- getBoolean(String, boolean) - Method in class universum.studios.android.preference.SharedPreferencesWrapper
-
- getBoolean(String, boolean) - Method in class universum.studios.android.preference.SimpleSharedPreferencesFacade
-
- getContext() - Method in class universum.studios.android.preference.PreferencesManager
-
Returns the context with which has been this manager created.
- getDefaultValue() - Method in class universum.studios.android.preference.SharedPreference
-
Returns the default value of this preference.
- getFloat(String, float) - Method in class universum.studios.android.preference.crypto.CryptoSharedPreferences
-
- getFloat(String, float) - Method in class universum.studios.android.preference.PreferencesManager
-
- getFloat(String) - Method in interface universum.studios.android.preference.SharedPreferencesCache
-
Retrieves the float value for the specified key stored in this cache.
- getFloat(String, float) - Method in interface universum.studios.android.preference.SharedPreferencesFacade
-
Retrieves the float value for the specified key from SharedPreferences
hidden behind this facade.
- getFloat(String, float) - Method in class universum.studios.android.preference.SharedPreferencesWrapper
-
- getFloat(String, float) - Method in class universum.studios.android.preference.SimpleSharedPreferencesFacade
-
- getFromPreferences(SharedPreferences, String, Object) - Static method in class universum.studios.android.preference.ArrayPreference
-
Obtains the array persisted within the given shared preferences for the
specified key.
- getFromPreferences(SharedPreferences, String, Collection<T>) - Static method in class universum.studios.android.preference.CollectionPreference
-
Obtains the array persisted within the given shared preferences for the
specified key.
- getInt(String, int) - Method in class universum.studios.android.preference.crypto.CryptoSharedPreferences
-
- getInt(String, int) - Method in class universum.studios.android.preference.PreferencesManager
-
- getInt(String) - Method in interface universum.studios.android.preference.SharedPreferencesCache
-
Retrieves the integer value for the specified key stored in this cache.
- getInt(String, int) - Method in interface universum.studios.android.preference.SharedPreferencesFacade
-
Retrieves the integer value for the specified key from SharedPreferences
hidden behind this facade.
- getInt(String, int) - Method in class universum.studios.android.preference.SharedPreferencesWrapper
-
- getInt(String, int) - Method in class universum.studios.android.preference.SimpleSharedPreferencesFacade
-
- getKey() - Method in class universum.studios.android.preference.SharedPreference
-
Returns the key of this preference.
- getLogger() - Static method in class universum.studios.android.preference.PreferencesLogging
-
Returns the logger used by this logging class.
- getLong(String, long) - Method in class universum.studios.android.preference.crypto.CryptoSharedPreferences
-
- getLong(String, long) - Method in class universum.studios.android.preference.PreferencesManager
-
- getLong(String) - Method in interface universum.studios.android.preference.SharedPreferencesCache
-
Retrieves the long value for the specified key stored in this cache.
- getLong(String, long) - Method in interface universum.studios.android.preference.SharedPreferencesFacade
-
Retrieves the long value for the specified key from SharedPreferences
hidden behind this facade.
- getLong(String, long) - Method in class universum.studios.android.preference.SharedPreferencesWrapper
-
- getLong(String, long) - Method in class universum.studios.android.preference.SimpleSharedPreferencesFacade
-
- getPreference(SharedPreference<T>) - Method in class universum.studios.android.preference.PreferencesManager
-
Obtains the value for the given preference from SharedPreferences that are
managed by this manager.
- getPreferences() - Method in class universum.studios.android.preference.SimpleSharedPreferencesFacade
-
Returns the SharedPreferences that are hidden behind this facade.
- getSharedPreferences() - Method in class universum.studios.android.preference.PreferencesManager
-
- getSharedPreferences() - Method in interface universum.studios.android.preference.SharedPreferencesContext
-
Returns the shared preferences instance used by this context.
- getSharedPreferences() - Method in interface universum.studios.android.preference.SharedPreferencesProvider
-
Returns the instance of SharedPreferences provided by this provider.
- getSharedPreferencesMode() - Method in class universum.studios.android.preference.PreferencesManager
-
- getSharedPreferencesMode() - Method in interface universum.studios.android.preference.SharedPreferencesProvider
-
Returns the mode for preferences file specified for this provider.
- getSharedPreferencesName() - Method in class universum.studios.android.preference.PreferencesManager
-
- getSharedPreferencesName() - Method in interface universum.studios.android.preference.SharedPreferencesProvider
-
Returns the name for preferences file specified for this provider.
- getString(String, String) - Method in class universum.studios.android.preference.crypto.CryptoSharedPreferences
-
- getString(String, String) - Method in class universum.studios.android.preference.PreferencesManager
-
- getString(String) - Method in interface universum.studios.android.preference.SharedPreferencesCache
-
Retrieves the string value for the specified key stored in this cache.
- getString(String, String) - Method in interface universum.studios.android.preference.SharedPreferencesFacade
-
Retrieves the string value for the specified key from SharedPreferences
hidden behind this facade.
- getString(String, String) - Method in class universum.studios.android.preference.SharedPreferencesWrapper
-
- getString(String, String) - Method in class universum.studios.android.preference.SimpleSharedPreferencesFacade
-
- getStringSet(String, Set<String>) - Method in class universum.studios.android.preference.crypto.CryptoSharedPreferences
-
- getStringSet(String, Set<String>) - Method in class universum.studios.android.preference.PreferencesManager
-
- getStringSet(String) - Method in interface universum.studios.android.preference.SharedPreferencesCache
-
Retrieves the set of string values for the specified key stored in this cache.
- getStringSet(String, Set<String>) - Method in interface universum.studios.android.preference.SharedPreferencesFacade
-
Retrieves the set of string values for the specified key from SharedPreferences
hidden behind this facade.
- getStringSet(String, Set<String>) - Method in class universum.studios.android.preference.SharedPreferencesWrapper
-
Note, that for pre HONEYCOMB Android versions
this method does nothing and always returns null.
- getStringSet(String, Set<String>) - Method in class universum.studios.android.preference.SimpleSharedPreferencesFacade
-
Note, that for pre HONEYCOMB Android versions
this method does nothing and always returns null.
- getValue() - Method in class universum.studios.android.preference.SharedPreference
-
Returns the value which is at this time being hold by this preference object.
- getWrappedPreferences() - Method in class universum.studios.android.preference.SharedPreferencesWrapper
-
Returns the wrapped SharedPreferences instance.
- PreferencesLogging - Class in universum.studios.android.preference
-
Utility class used by the Preferences library for logging purpose.
- PreferencesManager - Class in universum.studios.android.preference
-
- PreferencesManager(Context) - Constructor for class universum.studios.android.preference.PreferencesManager
-
Creates a new instance of PreferencesManager with the specified context.
- preferencesName(Context, String) - Static method in class universum.studios.android.preference.SharedPreferencesPolicies
-
Creates a name for shared preferences with the given nameSuffix for the specified
context.
- preferencesName(Context, String) - Static method in class universum.studios.android.preference.SharedPreferencesPolicy
-
- putBoolean(String, boolean) - Method in class universum.studios.android.preference.PreferencesManager
-
- putBoolean(String, boolean) - Method in interface universum.studios.android.preference.SharedPreferencesCache
-
Puts the given boolean value for the specified key into this cache.
- putBoolean(String, boolean) - Method in interface universum.studios.android.preference.SharedPreferencesFacade
-
Puts the given boolean value for the specified key into SharedPreferences
hidden behind this facade.
- putBoolean(String, boolean) - Method in class universum.studios.android.preference.SimpleSharedPreferencesFacade
-
- putFloat(String, float) - Method in class universum.studios.android.preference.PreferencesManager
-
- putFloat(String, float) - Method in interface universum.studios.android.preference.SharedPreferencesCache
-
Puts the given float value for the specified key into this cache.
- putFloat(String, float) - Method in interface universum.studios.android.preference.SharedPreferencesFacade
-
Puts the given float value for the specified key into SharedPreferences
hidden behind this facade.
- putFloat(String, float) - Method in class universum.studios.android.preference.SimpleSharedPreferencesFacade
-
- putInt(String, int) - Method in class universum.studios.android.preference.PreferencesManager
-
- putInt(String, int) - Method in interface universum.studios.android.preference.SharedPreferencesCache
-
Puts the given integer value for the specified key into this cache.
- putInt(String, int) - Method in interface universum.studios.android.preference.SharedPreferencesFacade
-
Puts the given integer value for the specified key into SharedPreferences
hidden behind this facade.
- putInt(String, int) - Method in class universum.studios.android.preference.SimpleSharedPreferencesFacade
-
- putIntoPreferences(SharedPreferences, String, Object) - Static method in class universum.studios.android.preference.ArrayPreference
-
Persists the given array value for the specified key into the given
shared preferences.
- putIntoPreferences(SharedPreferences, String, Collection<T>, Class<T>) - Static method in class universum.studios.android.preference.CollectionPreference
-
Persists the given collection value for the specified key into the given
shared preferences.
- putIntoPreferences(SharedPreferences) - Method in class universum.studios.android.preference.SharedPreference
-
Persists the actual value of this preference into the given shared preferences.
- putLong(String, long) - Method in class universum.studios.android.preference.PreferencesManager
-
- putLong(String, long) - Method in interface universum.studios.android.preference.SharedPreferencesCache
-
Puts the given long value for the specified key into this cache.
- putLong(String, long) - Method in interface universum.studios.android.preference.SharedPreferencesFacade
-
Puts the given long value for the specified key into SharedPreferences
hidden behind this facade.
- putLong(String, long) - Method in class universum.studios.android.preference.SimpleSharedPreferencesFacade
-
- putPreference(SharedPreference<T>, T) - Method in class universum.studios.android.preference.PreferencesManager
-
Persists the given value for the specified preference into SharedPreferences
that are managed by this manager.
- putString(String, String) - Method in class universum.studios.android.preference.PreferencesManager
-
- putString(String, String) - Method in interface universum.studios.android.preference.SharedPreferencesCache
-
Puts the given string value for the specified key into this cache.
- putString(String, String) - Method in interface universum.studios.android.preference.SharedPreferencesFacade
-
Puts the given string value for the specified key into SharedPreferences
hidden behind this facade.
- putString(String, String) - Method in class universum.studios.android.preference.SimpleSharedPreferencesFacade
-
- putStringSet(String, Set<String>) - Method in class universum.studios.android.preference.PreferencesManager
-
- putStringSet(String, Set<String>) - Method in interface universum.studios.android.preference.SharedPreferencesCache
-
Puts the given set of string values for the specified key into this cache.
- putStringSet(String, Set<String>) - Method in interface universum.studios.android.preference.SharedPreferencesFacade
-
Puts the given set of string values for the specified key into SharedPreferences
hidden behind this facade.
- putStringSet(String, Set<String>) - Method in class universum.studios.android.preference.SimpleSharedPreferencesFacade
-
Note, that for pre HONEYCOMB Android versions
this method does nothing and always returns false.
- setCachingEnabled(boolean) - Method in class universum.studios.android.preference.PreferencesManager
-
- setLogger(Logger) - Static method in class universum.studios.android.preference.PreferencesLogging
-
Sets a logger to be used by this logging class to print out logs into console.
- setSharedPreferences(SharedPreferences) - Method in interface universum.studios.android.preference.SharedPreferencesContext
-
Sets an instance of shared preferences to be used by this context.
- setSharedPreferencesMode(int) - Method in class universum.studios.android.preference.PreferencesManager
-
- setSharedPreferencesMode(int) - Method in interface universum.studios.android.preference.SharedPreferencesProvider
-
Sets a mode for preferences file that is used by this provider to access instance of
SharedPreferences via Context.getSharedPreferences(String, int).
- setSharedPreferencesName(String) - Method in class universum.studios.android.preference.PreferencesManager
-
- setSharedPreferencesName(String) - Method in interface universum.studios.android.preference.SharedPreferencesProvider
-
Sets a name for preferences file that is used by this provider to access instance of
SharedPreferences via Context.getSharedPreferences(String, int).
- SharedPreference<T> - Class in universum.studios.android.preference
-
Base implementation of shared preference object which may be used to persist a desired value in
SharedPreferences and later obtain such value.
- SharedPreference(String, T) - Constructor for class universum.studios.android.preference.SharedPreference
-
Creates a new instance of SharedPreference with the given key and default value.
- SharedPreference.PreferenceChangeCallback<P> - Interface in universum.studios.android.preference
-
Callback that may be used to listen for changes in value of a specific
SharedPreference
implementation.
- SharedPreferenceCaches - Class in universum.studios.android.preference.cache
-
- SharedPreferencesCache - Interface in universum.studios.android.preference
-
Interface that specifies a layer for caches that may be used to store values of SharedPreferences
in a memory.
- SharedPreferencesCache.NotInCacheException - Exception in universum.studios.android.preference
-
An exception that may be used by implementations of
SharedPreferencesCache to indicate
that they have no value stored for a requested key.
- SharedPreferencesContext - Interface in universum.studios.android.preference
-
Interface for contexts that depend on SharedPreferences.
- SharedPreferencesFacade - Interface in universum.studios.android.preference
-
Interface that specifies a layer which may be used to hide a concrete implementation of
SharedPreferences and to simplify putting and
obtaining of values for such preferences implementation.
- SharedPreferencesFactory - Interface in universum.studios.android.preference
-
Simple interface for factories that may be used to create instances of SharedPreferences.
- SharedPreferencesFactory.SimpleFactory - Class in universum.studios.android.preference
-
A simple implementation of
SharedPreferencesFactory which may be used to create
instances of
SharedPreferences with a desired name and file creation mode via either
#SimpleFactory(String) or
#SimpleFactory(String, int).
- SharedPreferencesPolicies - Class in universum.studios.android.preference
-
Class that declares policies related to the Android SharedPreferences API.
- SharedPreferencesPolicies.Mode - Annotation Type in universum.studios.android.preference
-
Defines an annotation for determining allowed file creation modes for SharedPreferences
file.
- SharedPreferencesPolicy - Class in universum.studios.android.preference
-
- SharedPreferencesPolicy.Mode - Annotation Type in universum.studios.android.preference
-
- SharedPreferencesProvider - Interface in universum.studios.android.preference
-
Interface for simple provider which provides access to
SharedPreferences for specified
name and
mode.
- SharedPreferencesWrapper - Class in universum.studios.android.preference
-
A SharedPreferences implementation which may be used to wrap an instance of SharedPreferences.
- SharedPreferencesWrapper(SharedPreferences) - Constructor for class universum.studios.android.preference.SharedPreferencesWrapper
-
Creates a new instance of SharedPreferencesWrapper in order to wrap the given preferences
instance.
- SimpleFactory(String) - Constructor for class universum.studios.android.preference.SharedPreferencesFactory.SimpleFactory
-
Creates a new instance of SimpleFactory with the specified fileName and
SharedPreferencesPolicies#MODE_PRIVATE) as file mode for preferences file.
- SimpleFactory(String, int) - Constructor for class universum.studios.android.preference.SharedPreferencesFactory.SimpleFactory
-
Creates a new instance of SimpleFactory with the specified fileName and
fileMode for preferences file.
- SimpleSharedPreferencesFacade - Class in universum.studios.android.preference
-
- SimpleSharedPreferencesFacade(SharedPreferences) - Constructor for class universum.studios.android.preference.SimpleSharedPreferencesFacade
-
Creates a new instance of SimpleSharedPreferencesFacade for the specified preferences.
- StringPreference - Class in universum.studios.android.preference
-
- StringPreference(String, String) - Constructor for class universum.studios.android.preference.StringPreference
-
Creates a new instance of StringPreference with the specified key and defValue.