be.SIRAPRISE.util
Class IntersectableTreeMap<K,V>

java.lang.Object
  extended by be.SIRAPRISE.util.IntersectableMap<K,V>
      extended by be.SIRAPRISE.util.IntersectableTreeMap<K,V>
Type Parameters:
K -
V -
All Implemented Interfaces:
java.util.Map<K,V>, java.util.SortedMap<K,V>

public class IntersectableTreeMap<K,V>
extends IntersectableMap<K,V>
implements java.util.SortedMap<K,V>

IntersectableHashMap is an extension of IntersectableMap that has a TreeMap as its underlying map type

Author:
Erwin Smout

Nested Class Summary
 
Nested classes/interfaces inherited from interface java.util.Map
java.util.Map.Entry<K,V>
 
Constructor Summary
IntersectableTreeMap()
          Initializes a new IntersectableTreeMap
IntersectableTreeMap(java.util.Comparator<? super K> c)
          Initializes a IntersectableTreeMap
IntersectableTreeMap(java.util.Map<? extends K,? extends V> m)
          Initializes a IntersectableTreeMap
IntersectableTreeMap(java.util.SortedMap<? extends K,? extends V> m)
          Initializes a IntersectableTreeMap
 
Method Summary
 java.util.Comparator<? super K> comparator()
           
 K firstKey()
           
 java.util.SortedMap<K,V> headMap(K toKey)
           
 K lastKey()
           
 java.util.SortedMap<K,V> subMap(K fromKey, K toKey)
           
 java.util.SortedMap<K,V> tailMap(K fromKey)
           
 
Methods inherited from class be.SIRAPRISE.util.IntersectableMap
clear, clone, containsKey, containsValue, entrySet, equals, get, hashCode, intersect, intersect, isEmpty, keySet, minus, minus, put, putAll, remove, size, toString, union, union, values
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.SortedMap
entrySet, keySet, values
 
Methods inherited from interface java.util.Map
clear, containsKey, containsValue, equals, get, hashCode, isEmpty, put, putAll, remove, size
 

Constructor Detail

IntersectableTreeMap

public IntersectableTreeMap()
Initializes a new IntersectableTreeMap


IntersectableTreeMap

public IntersectableTreeMap(java.util.Comparator<? super K> c)
Initializes a IntersectableTreeMap

Parameters:
c -

IntersectableTreeMap

public IntersectableTreeMap(java.util.Map<? extends K,? extends V> m)
Initializes a IntersectableTreeMap

Parameters:
m -

IntersectableTreeMap

public IntersectableTreeMap(java.util.SortedMap<? extends K,? extends V> m)
Initializes a IntersectableTreeMap

Parameters:
m -
Method Detail

comparator

public java.util.Comparator<? super K> comparator()
Specified by:
comparator in interface java.util.SortedMap<K,V>

firstKey

public K firstKey()
Specified by:
firstKey in interface java.util.SortedMap<K,V>

headMap

public java.util.SortedMap<K,V> headMap(K toKey)
Specified by:
headMap in interface java.util.SortedMap<K,V>

lastKey

public K lastKey()
Specified by:
lastKey in interface java.util.SortedMap<K,V>

subMap

public java.util.SortedMap<K,V> subMap(K fromKey,
                                       K toKey)
Specified by:
subMap in interface java.util.SortedMap<K,V>

tailMap

public java.util.SortedMap<K,V> tailMap(K fromKey)
Specified by:
tailMap in interface java.util.SortedMap<K,V>