Interface MultiMap<K,V>
- Type Parameters:
K- the type of keysV- the type of values
- All Known Implementing Classes:
ArraySetMultiMap, HashSetMultiMap
public interface MultiMap<K,V>
A map from non-null keys to sets of non-null values.
Callers must not add null values to the sets returned by this map.
-
Method Summary
Modifier and TypeMethodDescriptionvoidclear()booleancontainsKey(K key) Returns the values associated withkey, or an empty set ifkeyis null.booleanisEmpty()keySet()booleanbooleanputAll(K key, Collection<? extends V> vals) booleanReturns the set associated withkey, or an empty set ifkeyis not a key in this multi-map.intsize()toString()
-
Method Details
-
get
-
put
-
remove
-
keySet
-
containsKey
-
size
int size() -
toString
-
putAll
-
removeAll
-
clear
void clear() -
isEmpty
boolean isEmpty()
-