| Constructor and Description | 
|---|
| WeakHashMap() | 
| Modifier and Type | Method and Description | 
|---|---|
| void | clear()Removes all elements from this  Map, leaving it empty. | 
| boolean | containsKey(Object key)Returns whether this  Mapcontains the specified key. | 
| boolean | containsValue(Object value)This method is unsupported in the weak hash map | 
| Set<Map.Entry<K,V>> | entrySet()Unsupported operation | 
| V | get(Object key)Returns the value of the mapping with the specified key. | 
| boolean | isEmpty()Returns whether this map is empty. | 
| Set<K> | keySet()Returns a set of the keys contained in this  Map. | 
| V | put(K key,
   V value)Maps the specified key to the specified value. | 
| void | putAll(Map<? extends K,? extends V> m)Copies every mapping in the specified  Mapto thisMap. | 
| V | remove(Object key)Removes a mapping with the specified key from this  Map. | 
| int | size()Returns the number of mappings in this  Map. | 
| Collection<V> | values()Unsupported operation | 
public int size()
Map.public boolean isEmpty()
isEmpty in interface Map<K,V>true if this map has no elements, false
         otherwise.Map.size()public boolean containsKey(Object key)
Map contains the specified key.containsKey in interface Map<K,V>key - the key to search for.true if this map contains the specified key,
         false otherwise.public boolean containsValue(Object value)
containsValue in interface Map<K,V>value - the value to search for.true if this map contains the specified value,
         false otherwise.public void putAll(Map<? extends K,? extends V> m)
Map to this Map.public void clear()
Map, leaving it empty.clear in interface Map<K,V>Map.isEmpty(), 
Map.size()public Set<K> keySet()
Map. The Set is backed by
 this Map so changes to one are reflected by the other. The Set does not
 support adding.public Collection<V> values()