@Test(expected = SharedPreferencesCache.NotInCacheException.class) public void testLongWithoutStoredValue() { new MapCache().getLong(PREF_KEY_LONG); }
@Override public long getLong(@NonNull final String key) { assertContainsOrThrow(key); return (long) map.get(key); }
MapCache implements SharedPreferencesCache { @Override public long getLong(@NonNull final String key) { assertContainsOrThrow(key); return (long) map.get(key); } }
MapCache implements SharedPreferencesCache { @Override public long getLong(@NonNull final String key) { assertContainsOrThrow(key); return (long) map.get(key); }  }
MapCache implements SharedPreferencesCache { @Override public long getLong(@NonNull final String key) { assertContainsOrThrow(key); return (long) map.get(key); }  @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 long getLong(@NonNull final String key) { assertContainsOrThrow(key); return (long) map.get(key); }  @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();  }