Package org.apache.wayang.core.util
Class MultiMap<K,V>
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- java.util.HashMap<K,java.util.Set<V>>
-
- org.apache.wayang.core.util.MultiMap<K,V>
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Cloneable
,java.util.Map<K,java.util.Set<V>>
public class MultiMap<K,V> extends java.util.HashMap<K,java.util.Set<V>>
Maps keys to multiple values. Each key value pair is unique.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MultiMap()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
putSingle(K key, V value)
Associate a key with a new value.boolean
removeSingle(K key, V value)
Disassociate a key with a value.-
Methods inherited from class java.util.HashMap
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
-
-