|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.AbstractMap<K,V>
java.util.HashMap<K,List<V>>
aQute.lib.collections.MultiMap<K,V>
public class MultiMap<K,V>
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.util.AbstractMap |
|---|
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V> |
| Constructor Summary | |
|---|---|
MultiMap()
|
|
MultiMap(Class<K> keyClass,
Class<V> valueClass,
boolean noduplicates)
|
|
MultiMap(Map<K,List<V>> other)
|
|
MultiMap(MultiMap<K,V> other)
|
|
| Method Summary | |
|---|---|
boolean |
add(K key,
V value)
|
boolean |
addAll(K key,
Collection<? extends V> value)
|
Iterator<V> |
all()
|
Map<K,V> |
flatten()
|
Iterator<V> |
iterate(K key)
|
boolean |
remove(K key,
V value)
|
boolean |
removeAll(K key,
Collection<V> value)
|
MultiMap<V,K> |
transpose()
|
| 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 |
| Constructor Detail |
|---|
public MultiMap()
public MultiMap(Class<K> keyClass,
Class<V> valueClass,
boolean noduplicates)
public MultiMap(Map<K,List<V>> other)
public MultiMap(MultiMap<K,V> other)
| Method Detail |
|---|
public boolean add(K key,
V value)
public boolean addAll(K key,
Collection<? extends V> value)
public boolean remove(K key,
V value)
public boolean removeAll(K key,
Collection<V> value)
public Iterator<V> iterate(K key)
public Iterator<V> all()
public Map<K,V> flatten()
public MultiMap<V,K> transpose()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||