aQute.lib.collections
Class MultiMap<K,V>
java.lang.Object
java.util.AbstractMap<K,V>
java.util.HashMap<K,java.util.Set<V>>
aQute.lib.collections.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>>
- See Also:
- Serialized Form
| Nested classes/interfaces inherited from class java.util.AbstractMap |
java.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V> |
|
Method Summary |
boolean |
add(K key,
V value)
|
boolean |
addAll(K key,
java.util.Collection<V> value)
|
java.util.Iterator<V> |
all()
|
java.util.Iterator<V> |
iterate(K key)
|
boolean |
remove(K key,
V value)
|
boolean |
removeAll(K key,
java.util.Collection<V> value)
|
| Methods inherited from class java.util.HashMap |
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values |
| Methods inherited from class java.util.AbstractMap |
equals, hashCode, toString |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.Map |
equals, hashCode |
MultiMap
public MultiMap()
add
public boolean add(K key,
V value)
addAll
public boolean addAll(K key,
java.util.Collection<V> value)
remove
public boolean remove(K key,
V value)
removeAll
public boolean removeAll(K key,
java.util.Collection<V> value)
iterate
public java.util.Iterator<V> iterate(K key)
all
public java.util.Iterator<V> all()