Class DualTreeBidiMap.ViewMap<K,V>
- java.lang.Object
-
- org.apache.openjpa.lib.util.collections.AbstractIterableMap<K,V>
-
- org.apache.openjpa.lib.util.collections.AbstractMapDecorator<K,V>
-
- org.apache.openjpa.lib.util.collections.AbstractSortedMapDecorator<K,V>
-
- org.apache.openjpa.lib.util.collections.DualTreeBidiMap.ViewMap<K,V>
-
- All Implemented Interfaces:
java.util.Map<K,V>,java.util.SortedMap<K,V>,IterableMap<K,V>,IterableSortedMap<K,V>,OrderedMap<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 class org.apache.openjpa.lib.util.collections.AbstractSortedMapDecorator
AbstractSortedMapDecorator.SortedMapIterator<K,V>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()booleancontainsValue(java.lang.Object value)protected DualTreeBidiMap<K,V>decorated()Gets the map being decorated.java.util.SortedMap<K,V>headMap(K toKey)KnextKey(K key)Gets the next key after the one specified.KpreviousKey(K key)Gets the previous key before the one specified.java.util.SortedMap<K,V>subMap(K fromKey, K toKey)java.util.SortedMap<K,V>tailMap(K fromKey)-
Methods inherited from class org.apache.openjpa.lib.util.collections.AbstractSortedMapDecorator
comparator, firstKey, lastKey, mapIterator
-
Methods inherited from class org.apache.openjpa.lib.util.collections.AbstractMapDecorator
containsKey, entrySet, equals, get, 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 org.apache.openjpa.lib.util.collections.IterableMap
put, putAll
-
-
-
-
Constructor Detail
-
ViewMap
protected ViewMap(DualTreeBidiMap<K,V> bidi, java.util.SortedMap<K,V> sm)
Constructor.- Parameters:
bidi- the parent bidi mapsm- the subMap sorted map
-
-
Method Detail
-
containsValue
public boolean containsValue(java.lang.Object value)
- Specified by:
containsValuein interfacejava.util.Map<K,V>- Overrides:
containsValuein classAbstractMapDecorator<K,V>
-
clear
public void clear()
- Specified by:
clearin interfaceIterableMap<K,V>- Specified by:
clearin interfacejava.util.Map<K,V>- Overrides:
clearin classAbstractMapDecorator<K,V>- See Also:
Map.clear()
-
decorated
protected DualTreeBidiMap<K,V> decorated()
Description copied from class:AbstractSortedMapDecoratorGets the map being decorated.- Overrides:
decoratedin classAbstractSortedMapDecorator<K,V>- Returns:
- the decorated map
-
previousKey
public K previousKey(K key)
Description copied from interface:OrderedMapGets the previous key before the one specified.- Specified by:
previousKeyin interfaceOrderedMap<K,V>- Overrides:
previousKeyin classAbstractSortedMapDecorator<K,V>- Parameters:
key- the key to search for previous from- Returns:
- the previous key, null if no match or at start
-
nextKey
public K nextKey(K key)
Description copied from interface:OrderedMapGets the next key after the one specified.- Specified by:
nextKeyin interfaceOrderedMap<K,V>- Overrides:
nextKeyin classAbstractSortedMapDecorator<K,V>- Parameters:
key- the key to search for next from- Returns:
- the next key, null if no match or at end
-
-