B - Type of the builder used for methods chaining.public static class SimpleSharedPreferencesFacade.Builder<B> extends Object
SimpleSharedPreferencesFacade which
hide a desired shared preferences instance in order to support simple putting
and obtaining of values stored in such preferences.
SimpleSharedPreferencesFacade via build() successfully.
| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
SimpleSharedPreferencesFacade |
build()
Builds a new instance of SimpleSharedPreferencesFacade with the configuration specified
for this builder.
|
B |
preferences(android.content.SharedPreferences preferences)
Specifies a shared preferences instance that should be hidden behind facade.
|
public B preferences(android.content.SharedPreferences preferences)
preferences - The shared preferences for which to create new facade.public SimpleSharedPreferencesFacade build()
IllegalArgumentException - If some of the required parameters is missing.