public final class MultiMap
extends Object
A number of static methods to interact with a multi map, i.e. a map that maps keys to sets of values.
- Author:
- Matthias Broecheler (me@matthiasb.com)
-
Method Summary
static <K,
V> boolean
static <K,
V> boolean
static <K,
V> boolean
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Method Details
-
putAll
public static <K,
V> boolean putAll(Map<K,Set<V>> map,
K key,
Collection<V> values)
-
put
public static <K,
V> boolean put(Map<K,Set<V>> map,
K key,
V value)
-
containsEntry
public static <K,
V> boolean containsEntry(Map<K,Set<V>> map,
K key,
V value)
-
get
public static <K,
V> Set<V> get(Map<K,Set<V>> map,
K key)