Class DualTreeBidiMap.ViewMap<K,V>
java.lang.Object
org.apache.commons.collections4.map.AbstractIterableMap<K,V>
org.apache.commons.collections4.map.AbstractMapDecorator<K,V>
org.apache.commons.collections4.map.AbstractSortedMapDecorator<K,V>
org.apache.commons.collections4.bidimap.DualTreeBidiMap.ViewMap<K,V>
- Type Parameters:
K- the type of the keys.V- the type of the values.
- All Implemented Interfaces:
Map<K,,V> SortedMap<K,,V> Get<K,,V> IterableGet<K,,V> IterableMap<K,,V> IterableSortedMap<K,,V> OrderedMap<K,,V> Put<K,V>
- Enclosing class:
DualTreeBidiMap<K,V>
Internal sorted map view.
- Since:
- 3.0
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.commons.collections4.map.AbstractSortedMapDecorator
AbstractSortedMapDecorator.SortedMapIterator<K,V> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Removes all of the mappings from this map.booleancontainsValue(Object value) Tests for presence of a given 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.commons.collections4.map.AbstractSortedMapDecorator
comparator, firstKey, lastKey, mapIteratorMethods inherited from class org.apache.commons.collections4.map.AbstractMapDecorator
containsKey, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, toString, valuesMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.commons.collections4.Get
containsKey, entrySet, get, isEmpty, keySet, remove, size, valuesMethods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, containsKey, equals, forEach, get, getOrDefault, hashCode, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size
-
Constructor Details
-
ViewMap
-
-
Method Details
-
clear
-
containsValue
Description copied from interface:GetTests for presence of a given value.- Specified by:
containsValuein interfaceGet<K,V> - Specified by:
containsValuein interfaceMap<K,V> - Overrides:
containsValuein classAbstractMapDecorator<K,V> - Parameters:
value- value whose presence in this map is to be tested- Returns:
trueif this map maps one or more keys to the specified value- See Also:
-
decorated
Description copied from class:AbstractSortedMapDecoratorGets the map being decorated.- Overrides:
decoratedin classAbstractSortedMapDecorator<K,V> - Returns:
- the decorated map
-
headMap
-
nextKey
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
-
previousKey
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
-
subMap
-
tailMap
-