@Test public void testClear() throws Exception { assertTrue("Map was initialized incorrectly, should be empty.", map.isEmpty()); fillMap(10); assertFalse("Map should contain entries now.", map.isEmpty()); map.clear(); assertTrue("Map should have been cleared of entries.", map.isEmpty()); }
@Override public void clear() { items.clear(); }
PersistentMap implements Map<K, V> { @Override public void clear() { items.clear(); } }
PersistentMap implements Map<K, V> { @Override public void clear() { items.clear(); } PersistentMap(Serializer serializer, DB database, String name); }
PersistentMap implements Map<K, V> { @Override public void clear() { items.clear(); } PersistentMap(Serializer serializer, DB database, String name); void readInto(Map<K, V> items); @Override V remove(Object key); @Override int size(); @Override boolean isEmpty(); @Override boolean containsKey(Object key); @Override boolean containsValue(Object value); @Override V get(Object key); @Override V put(K key, V value); @Override void putAll(Map<? extends K, ? extends V> m); @Override void clear(); @Override Set<K> keySet(); @Override Collection<V> values(); @Override Set<Entry<K, V>> entrySet(); @Override boolean equals(Object map); @Override int hashCode(); }
PersistentMap implements Map<K, V> { @Override public void clear() { items.clear(); } PersistentMap(Serializer serializer, DB database, String name); void readInto(Map<K, V> items); @Override V remove(Object key); @Override int size(); @Override boolean isEmpty(); @Override boolean containsKey(Object key); @Override boolean containsValue(Object value); @Override V get(Object key); @Override V put(K key, V value); @Override void putAll(Map<? extends K, ? extends V> m); @Override void clear(); @Override Set<K> keySet(); @Override Collection<V> values(); @Override Set<Entry<K, V>> entrySet(); @Override boolean equals(Object map); @Override int hashCode();  }