@Test public void testPutIntoPreferences() { final SharedPreference<String> preference = new PreferenceImpl(PREF_KEY, PREF_DEF_VALUE); assertThat(preference.updateValue("newValue"), is(preference)); assertThat(preference.putIntoPreferences(preferences), is(true)); assertThat(preference.getValue(), is("newValue")); }
public final boolean putIntoPreferences(@NonNull final SharedPreferences preferences) { return valueIsActual = onPutIntoPreferences(preferences); }
SharedPreference { public final boolean putIntoPreferences(@NonNull final SharedPreferences preferences) { return valueIsActual = onPutIntoPreferences(preferences); } }
SharedPreference { public final boolean putIntoPreferences(@NonNull final SharedPreferences preferences) { return valueIsActual = onPutIntoPreferences(preferences); } protected  SharedPreference(@NonNull final String key, @Nullable final T defValue); }
SharedPreference { public final boolean putIntoPreferences(@NonNull final SharedPreferences preferences) { return valueIsActual = onPutIntoPreferences(preferences); } protected  SharedPreference(@NonNull final String key, @Nullable final T defValue); @NonNull final String getKey(); @NonNull SharedPreferences.OnSharedPreferenceChangeListener createOnChangeListener(@NonNull final PreferenceChangeCallback<T> callback); @Nullable final T getDefaultValue(); SharedPreference<T> updateValue(@Nullable final T newValue); final boolean putIntoPreferences(@NonNull final SharedPreferences preferences); @Nullable final T getValue(); }
SharedPreference { public final boolean putIntoPreferences(@NonNull final SharedPreferences preferences) { return valueIsActual = onPutIntoPreferences(preferences); } protected  SharedPreference(@NonNull final String key, @Nullable final T defValue); @NonNull final String getKey(); @NonNull SharedPreferences.OnSharedPreferenceChangeListener createOnChangeListener(@NonNull final PreferenceChangeCallback<T> callback); @Nullable final T getDefaultValue(); SharedPreference<T> updateValue(@Nullable final T newValue); final boolean putIntoPreferences(@NonNull final SharedPreferences preferences); @Nullable final T getValue();  }