@Test public void clear() { String x1 = new String("x"); String x2 = new String("x"); assertNull(mMap.put(x1, "z")); assertNull(mMap.put(x2, "z")); assertEquals(2, mMap.size()); mMap.clear(); assertEquals(0, mMap.size()); assertEquals(0, mMap.keySet().size()); assertEquals(0, mMap.entrySet().size()); }
@Override public void clear() { mInternalMap.clear(); }
ConcurrentIdentityHashMap implements ConcurrentMap<K, V> { @Override public void clear() { mInternalMap.clear(); } }
ConcurrentIdentityHashMap implements ConcurrentMap<K, V> { @Override public void clear() { mInternalMap.clear(); } ConcurrentIdentityHashMap();  ConcurrentIdentityHashMap(int initialCapacity);  ConcurrentIdentityHashMap(int initialCapacity, float loadFactor);  ConcurrentIdentityHashMap(int initialCapacity,
      float loadFactor, int concurrencyLevel); }
ConcurrentIdentityHashMap implements ConcurrentMap<K, V> { @Override public void clear() { mInternalMap.clear(); } ConcurrentIdentityHashMap();  ConcurrentIdentityHashMap(int initialCapacity);  ConcurrentIdentityHashMap(int initialCapacity, float loadFactor);  ConcurrentIdentityHashMap(int initialCapacity,
      float loadFactor, int concurrencyLevel); @Override boolean containsKey(Object k); @Override V put(K k, V v); @Override V putIfAbsent(K k, V v); @Override boolean remove(Object k, Object v); @Override V remove(Object k); @Override boolean replace(K k, V v1, V v2); @Override V replace(K k, V v); @Override V get(Object k); @Override Collection<V> values(); @Override void clear(); @Override Set<Map.Entry<K, V>> entrySet(); @Override void putAll(Map<? extends K, ? extends V> map); @Override boolean isEmpty(); @Override int size(); @Override boolean containsValue(Object value); @Override Set<K> keySet(); }
ConcurrentIdentityHashMap implements ConcurrentMap<K, V> { @Override public void clear() { mInternalMap.clear(); } ConcurrentIdentityHashMap();  ConcurrentIdentityHashMap(int initialCapacity);  ConcurrentIdentityHashMap(int initialCapacity, float loadFactor);  ConcurrentIdentityHashMap(int initialCapacity,
      float loadFactor, int concurrencyLevel); @Override boolean containsKey(Object k); @Override V put(K k, V v); @Override V putIfAbsent(K k, V v); @Override boolean remove(Object k, Object v); @Override V remove(Object k); @Override boolean replace(K k, V v1, V v2); @Override V replace(K k, V v); @Override V get(Object k); @Override Collection<V> values(); @Override void clear(); @Override Set<Map.Entry<K, V>> entrySet(); @Override void putAll(Map<? extends K, ? extends V> map); @Override boolean isEmpty(); @Override int size(); @Override boolean containsValue(Object value); @Override Set<K> keySet();  }