com.senn.magic.collections
Class ChainableTreeMap<K,V>

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by java.util.TreeMap<K,V>
          extended by com.senn.magic.collections.ChainableTreeMap<K,V>
All Implemented Interfaces:
ChainableMap<K,V>, Serializable, Cloneable, Map<K,V>, NavigableMap<K,V>, SortedMap<K,V>

public class ChainableTreeMap<K,V>
extends TreeMap<K,V>
implements ChainableMap<K,V>

TreeMap implementation of ChainableMap

Since:
3.5
Author:
Bart Thierens
Last modification: 23/01/2011
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Constructor Summary
ChainableTreeMap()
           
ChainableTreeMap(Comparator<? super K> comparator)
           
ChainableTreeMap(Map<? extends K,? extends V> m)
           
ChainableTreeMap(SortedMap<K,? extends V> m)
           
 
Method Summary
 ChainableMap<K,V> add(K key, V value)
           
 ChainableMap<K,V> addAll(Map<? extends K,? extends V> m)
           
 ChainableMap<K,V> delete(Object key)
           
 ChainableMap<K,V> empty()
           
 
Methods inherited from class java.util.TreeMap
ceilingEntry, ceilingKey, clear, clone, comparator, containsKey, containsValue, descendingKeySet, descendingMap, entrySet, firstEntry, firstKey, floorEntry, floorKey, get, headMap, headMap, higherEntry, higherKey, keySet, lastEntry, lastKey, lowerEntry, lowerKey, navigableKeySet, pollFirstEntry, pollLastEntry, put, putAll, remove, size, subMap, subMap, tailMap, tailMap, values
 
Methods inherited from class java.util.AbstractMap
equals, hashCode, isEmpty, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.senn.magic.collections.ChainableMap
clear, put, putAll, remove
 
Methods inherited from interface java.util.Map
containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, size, values
 

Constructor Detail

ChainableTreeMap

public ChainableTreeMap()

ChainableTreeMap

public ChainableTreeMap(Comparator<? super K> comparator)

ChainableTreeMap

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

ChainableTreeMap

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

add

public ChainableMap<K,V> add(K key,
                             V value)
Specified by:
add in interface ChainableMap<K,V>
Returns:
See Also:
Map.put(Object, Object)

addAll

public ChainableMap<K,V> addAll(Map<? extends K,? extends V> m)
Specified by:
addAll in interface ChainableMap<K,V>
Returns:
See Also:
Map.putAll(Map)

empty

public ChainableMap<K,V> empty()
Specified by:
empty in interface ChainableMap<K,V>
Returns:
See Also:
Map.clear()

delete

public ChainableMap<K,V> delete(Object key)
Specified by:
delete in interface ChainableMap<K,V>
Returns:
See Also:
Map.remove(Object)