org.apache.commons.collections.bidimap
Class DualTreeBidiMap.ViewMap<K,V>

java.lang.Object
  extended by org.apache.commons.collections.map.AbstractMapDecorator<K,V>
      extended by org.apache.commons.collections.map.AbstractSortedMapDecorator<K,V>
          extended by org.apache.commons.collections.bidimap.DualTreeBidiMap.ViewMap<K,V>
All Implemented Interfaces:
Map<K,V>, SortedMap<K,V>
Enclosing class:
DualTreeBidiMap<K,V>

protected static class DualTreeBidiMap.ViewMap<K,V>
extends AbstractSortedMapDecorator<K,V>

Internal sorted map view.


Nested Class Summary
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Field Summary
 
Fields inherited from class org.apache.commons.collections.map.AbstractMapDecorator
map
 
Constructor Summary
protected DualTreeBidiMap.ViewMap(DualTreeBidiMap<K,V> bidi, SortedMap<K,V> sm)
          Constructor.
 
Method Summary
 void clear()
           
 boolean containsValue(Object value)
           
 SortedMap<K,V> headMap(K toKey)
           
 SortedMap<K,V> subMap(K fromKey, K toKey)
           
 SortedMap<K,V> tailMap(K fromKey)
           
 
Methods inherited from class org.apache.commons.collections.map.AbstractSortedMapDecorator
comparator, firstKey, getSortedMap, lastKey
 
Methods inherited from class org.apache.commons.collections.map.AbstractMapDecorator
containsKey, entrySet, equals, get, getMap, hashCode, isEmpty, keySet, put, putAll, remove, size, toString, values
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
containsKey, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, values
 

Constructor Detail

DualTreeBidiMap.ViewMap

protected DualTreeBidiMap.ViewMap(DualTreeBidiMap<K,V> bidi,
                                  SortedMap<K,V> sm)
Constructor.

Parameters:
bidi - the parent bidi map
sm - the subMap sorted map
Method Detail

containsValue

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

clear

public void clear()
Specified by:
clear in interface Map<K,V>
Overrides:
clear in class AbstractMapDecorator<K,V>

headMap

public SortedMap<K,V> headMap(K toKey)
Specified by:
headMap in interface SortedMap<K,V>
Overrides:
headMap in class AbstractSortedMapDecorator<K,V>

tailMap

public SortedMap<K,V> tailMap(K fromKey)
Specified by:
tailMap in interface SortedMap<K,V>
Overrides:
tailMap in class AbstractSortedMapDecorator<K,V>

subMap

public SortedMap<K,V> subMap(K fromKey,
                             K toKey)
Specified by:
subMap in interface SortedMap<K,V>
Overrides:
subMap in class AbstractSortedMapDecorator<K,V>


Copyright © 2005-2005 Apache Software Foundation, Matt Hall, John Watkinson. All Rights Reserved.