@Test public void testValues() throws Exception { Assert.assertEquals(0, Iterables.size(dao.values())); dao.update(KEY_1, DUMMY_DATA_1); dao.update(KEY_1, DUMMY_DATA_2); Assert.assertEquals(1, Iterables.size(dao.values())); dao.update(KEY_2, DUMMY_DATA_2); Assert.assertEquals(2, Iterables.size(dao.values())); }
@Override public Iterable<V> values() { return Iterables.unmodifiableIterable(cache.values()); }
SimpleCachedDaoImpl implements SimpleCachedDao<K, V> { @Override public Iterable<V> values() { return Iterables.unmodifiableIterable(cache.values()); } }
SimpleCachedDaoImpl implements SimpleCachedDao<K, V> { @Override public Iterable<V> values() { return Iterables.unmodifiableIterable(cache.values()); } SimpleCachedDaoImpl(); }
SimpleCachedDaoImpl implements SimpleCachedDao<K, V> { @Override public Iterable<V> values() { return Iterables.unmodifiableIterable(cache.values()); } SimpleCachedDaoImpl(); @Override V update(@Nonnull final K key, @Nullable final V value); @Override Optional<V> find(@Nonnull final K key); @Override void invalidateCache(); @Override boolean isEmpty(); @Override Iterable<V> values(); @Override Iterable<K> keySet(); }
SimpleCachedDaoImpl implements SimpleCachedDao<K, V> { @Override public Iterable<V> values() { return Iterables.unmodifiableIterable(cache.values()); } SimpleCachedDaoImpl(); @Override V update(@Nonnull final K key, @Nullable final V value); @Override Optional<V> find(@Nonnull final K key); @Override void invalidateCache(); @Override boolean isEmpty(); @Override Iterable<V> values(); @Override Iterable<K> keySet();  }