Level 140 Level 142
Level 141

[No Typing] Collections: Map Interface


14 words 0 ignored

Ready to learn       Ready to review

Ignore words

Check the boxes below to ignore/unignore words, then click save at the bottom. Ignored words will never appear in any learning session.

All None

Ignore?
void clear()
Removes all key/value pairs from the invoking map.
boolean containsKey(Object k)
Returns true if the invoking map contains k as a key. Otherwise, returns false.
boolean containsValue(Object v)
Returns true if the map contains v as a value. Otherwise, returns false
Set entrySet()
Returns a Set that contains the entries in the map. the set contains objects of type Map.Entry. This method provides a set-view of the invoking map.
boolean equals(Object obj)
Returns true if obj is a Map and contains the same entries. Otherwise, returns false.
Object get(Object k)
Returns the value associated with the key k.
int hashCode()
Returns the hash code for the invoking map.
boolean isEmpty()
Returns true if the invoking map is empty. Otherwise, returns false.
Set keySet()
Returns a Set that contains the keys in the invoking map. This method provides a set-view of the keys in the invoking map.
Object put(Object k, Object v)
Puts an entry in the invoking map, overwriting any previous value associated with the key.
void putAll(Map m)
Puts all the entries from m into this map.
Object remove(Object k)
Removes the entry whose key equals k.
int size()
Returns the number of key/value pairs in the map.
Collection values()
Returns a collection containing the values in the map. This method provides a collection-view of the values in the map.