aQute.lib.collections
Class MultiMap<K,V>

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by java.util.HashMap<K,Set<V>>
          extended by aQute.lib.collections.MultiMap<K,V>
All Implemented Interfaces:
Serializable, Cloneable, Map<K,Set<V>>

public class MultiMap<K,V>
extends HashMap<K,Set<V>>

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
 
Constructor Summary
MultiMap()
           
 
Method Summary
 boolean add(K key, V value)
           
 boolean addAll(K key, Collection<V> value)
           
 Iterator<V> all()
           
 Iterator<V> iterate(K key)
           
 boolean remove(K key, V value)
           
 boolean removeAll(K key, 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
 

Constructor Detail

MultiMap

public MultiMap()
Method Detail

add

public boolean add(K key,
                   V value)

addAll

public boolean addAll(K key,
                      Collection<V> value)

remove

public boolean remove(K key,
                      V value)

removeAll

public boolean removeAll(K key,
                         Collection<V> value)

iterate

public Iterator<V> iterate(K key)

all

public Iterator<V> all()


Copyright © 2012 aQute SARL. All Rights Reserved.