gr.uoa.di.madgik.searchlibrary.operatorlibrary.utils
Class TreeMultiMap<K,V>

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by java.util.TreeMap<K,List<V>>
          extended by gr.uoa.di.madgik.searchlibrary.operatorlibrary.utils.TreeMultiMap<K,V>
All Implemented Interfaces:
Serializable, Cloneable, Map<K,List<V>>, NavigableMap<K,List<V>>, SortedMap<K,List<V>>

public class TreeMultiMap<K,V>
extends TreeMap<K,List<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
TreeMultiMap()
           
TreeMultiMap(Comparator<? super K> c)
           
TreeMultiMap(Map<? extends K,? extends List<V>> m)
           
TreeMultiMap(SortedMap<K,? extends List<V>> m)
           
 
Method Summary
 boolean containsValue(Object value)
           
 List<V> put(K key, List<V> value)
           
 void put(K key, V value)
           
 List<V> remove(Object key)
           
 boolean remove(Object key, Object value)
           
 V removeOne(Object key)
           
 String toString()
           
 
Methods inherited from class java.util.TreeMap
ceilingEntry, ceilingKey, clear, clone, comparator, containsKey, descendingKeySet, descendingMap, entrySet, firstEntry, firstKey, floorEntry, floorKey, get, headMap, headMap, higherEntry, higherKey, keySet, lastEntry, lastKey, lowerEntry, lowerKey, navigableKeySet, pollFirstEntry, pollLastEntry, putAll, size, subMap, subMap, tailMap, tailMap, values
 
Methods inherited from class java.util.AbstractMap
equals, hashCode, isEmpty
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
equals, hashCode, isEmpty
 

Constructor Detail

TreeMultiMap

public TreeMultiMap()

TreeMultiMap

public TreeMultiMap(Comparator<? super K> c)

TreeMultiMap

public TreeMultiMap(Map<? extends K,? extends List<V>> m)

TreeMultiMap

public TreeMultiMap(SortedMap<K,? extends List<V>> m)
Method Detail

containsValue

public boolean containsValue(Object value)
Specified by:
containsValue in interface Map<K,List<V>>
Overrides:
containsValue in class TreeMap<K,List<V>>

put

public List<V> put(K key,
                   List<V> value)
Specified by:
put in interface Map<K,List<V>>
Overrides:
put in class TreeMap<K,List<V>>

put

public void put(K key,
                V value)

remove

public List<V> remove(Object key)
Specified by:
remove in interface Map<K,List<V>>
Overrides:
remove in class TreeMap<K,List<V>>

removeOne

public V removeOne(Object key)

remove

public boolean remove(Object key,
                      Object value)

toString

public String toString()
Overrides:
toString in class AbstractMap<K,List<V>>


Copyright © 2013. All Rights Reserved.