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:
Map<K,
,V> SortedMap<K,
,V> IterableMap<K,
,V> IterableSortedMap<K,
,V> OrderedMap<K,
V>
- Enclosing class:
- DualTreeBidiMap<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> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
boolean
containsValue
(Object value) protected DualTreeBidiMap<K,
V> Gets the map being decorated.Gets the next key after the one specified.previousKey
(K key) Gets the previous key before the one specified.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
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, containsKey, equals, forEach, get, getOrDefault, hashCode, isEmpty, merge, putIfAbsent, remove, remove, replace, replace, replaceAll, size
-
Constructor Details
-
ViewMap
Constructor.- Parameters:
bidi
- the parent bidi mapsm
- the subMap sorted map
-
-
Method Details
-
containsValue
- Specified by:
containsValue
in interfaceMap<K,
V> - Overrides:
containsValue
in classAbstractMapDecorator<K,
V>
-
clear
public void clear() -
headMap
-
tailMap
-
subMap
-
decorated
Description copied from class:AbstractSortedMapDecorator
Gets the map being decorated.- Overrides:
decorated
in classAbstractSortedMapDecorator<K,
V> - Returns:
- the decorated map
-
previousKey
Description copied from interface:OrderedMap
Gets the previous key before the one specified.- Specified by:
previousKey
in interfaceOrderedMap<K,
V> - Overrides:
previousKey
in classAbstractSortedMapDecorator<K,
V> - Parameters:
key
- the key to search for previous from- Returns:
- the previous key, null if no match or at start
-
nextKey
Description copied from interface:OrderedMap
Gets the next key after the one specified.- Specified by:
nextKey
in interfaceOrderedMap<K,
V> - Overrides:
nextKey
in classAbstractSortedMapDecorator<K,
V> - Parameters:
key
- the key to search for next from- Returns:
- the next key, null if no match or at end
-