@Test public void testInvalidate() { final SharedPreference<String> preference = new PreferenceImpl(PREF_KEY, PREF_DEF_VALUE); preference.updateValue("newValue"); preference.invalidate(); assertThat(preference.getValue(), is(nullValue())); }
final void invalidate() { this.value = null; this.valueIsActual = false; }
SharedPreference { final void invalidate() { this.value = null; this.valueIsActual = false; } }
SharedPreference { final void invalidate() { this.value = null; this.valueIsActual = false; } protected  SharedPreference(@NonNull final String key, @Nullable final T defValue); }
SharedPreference { final void invalidate() { this.value = null; this.valueIsActual = false; } 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 { final void invalidate() { this.value = null; this.valueIsActual = false; } 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();  }