@Test public void testClear() { map.clear(); assertEquals("clear test", 0, map.size()); }
public void clear() { keys.clear(); values.clear(); }
MyMap implements Map<K,V> { public void clear() { keys.clear(); values.clear(); } }
MyMap implements Map<K,V> { public void clear() { keys.clear(); values.clear(); } MyMap(); }
MyMap implements Map<K,V> { public void clear() { keys.clear(); values.clear(); } MyMap(); int size(); boolean isEmpty(); boolean containsKey(Object o); boolean containsValue(Object o); V get(Object k); @SuppressWarnings("unchecked") V put(Object k, Object v); @Override void putAll(@SuppressWarnings("rawtypes") Map oldMap); V remove(Object k); void clear(); java.util.Set<K> keySet(); java.util.Collection<V> values(); @SuppressWarnings({ "unchecked", "rawtypes" }) Set entrySet(); }
MyMap implements Map<K,V> { public void clear() { keys.clear(); values.clear(); } MyMap(); int size(); boolean isEmpty(); boolean containsKey(Object o); boolean containsValue(Object o); V get(Object k); @SuppressWarnings("unchecked") V put(Object k, Object v); @Override void putAll(@SuppressWarnings("rawtypes") Map oldMap); V remove(Object k); void clear(); java.util.Set<K> keySet(); java.util.Collection<V> values(); @SuppressWarnings({ "unchecked", "rawtypes" }) Set entrySet();  }