@Test public void testIsEmpty() { final SharedPreferencesCache cache = new MapCache(); assertThat(cache.isEmpty(), is(true)); cache.putBoolean(PREF_KEY_BOOLEAN, false); assertThat(cache.isEmpty(), is(false)); cache.evictAll(); assertThat(cache.isEmpty(), is(true)); }
@Override public boolean isEmpty() { return map.isEmpty(); }
MapCache implements SharedPreferencesCache { @Override public boolean isEmpty() { return map.isEmpty(); } }
MapCache implements SharedPreferencesCache { @Override public boolean isEmpty() { return map.isEmpty(); }  }
MapCache implements SharedPreferencesCache { @Override public boolean isEmpty() { return map.isEmpty(); }  @Override boolean isEmpty(); @Override boolean contains(@NonNull final String key); @Override boolean putString(@NonNull final String key, @Nullable final String value); @Override @Nullable String getString(@NonNull final String key); @Override boolean putStringSet(@NonNull final String key, @Nullable final Set<String> values); @SuppressWarnings("unchecked") @Override @Nullable Set<String> getStringSet(@NonNull final String key); @Override boolean putInt(@NonNull final String key, final int value); @Override int getInt(@NonNull final String key); @Override boolean putFloat(@NonNull final String key, final float value); @Override float getFloat(@NonNull final String key); @Override boolean putLong(@NonNull final String key, final long value); @Override long getLong(@NonNull final String key); @Override boolean putBoolean(@NonNull final String key, final boolean value); @Override boolean getBoolean(@NonNull final String key); @Override boolean evict(@NonNull final String key); @Override int evictAll(); }
MapCache implements SharedPreferencesCache { @Override public boolean isEmpty() { return map.isEmpty(); }  @Override boolean isEmpty(); @Override boolean contains(@NonNull final String key); @Override boolean putString(@NonNull final String key, @Nullable final String value); @Override @Nullable String getString(@NonNull final String key); @Override boolean putStringSet(@NonNull final String key, @Nullable final Set<String> values); @SuppressWarnings("unchecked") @Override @Nullable Set<String> getStringSet(@NonNull final String key); @Override boolean putInt(@NonNull final String key, final int value); @Override int getInt(@NonNull final String key); @Override boolean putFloat(@NonNull final String key, final float value); @Override float getFloat(@NonNull final String key); @Override boolean putLong(@NonNull final String key, final long value); @Override long getLong(@NonNull final String key); @Override boolean putBoolean(@NonNull final String key, final boolean value); @Override boolean getBoolean(@NonNull final String key); @Override boolean evict(@NonNull final String key); @Override int evictAll();  }