protected static class DualTreeBidiMap.ViewMap<K,V> extends AbstractSortedMapDecorator<K,V>
AbstractSortedMapDecorator.SortedMapIterator<K,V>
Modifier | Constructor and Description |
---|---|
protected |
ViewMap(DualTreeBidiMap<K,V> bidi,
SortedMap<K,V> sm)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
clear() |
boolean |
containsValue(Object value) |
protected DualTreeBidiMap<K,V> |
decorated()
Gets the map being decorated.
|
SortedMap<K,V> |
headMap(K toKey) |
K |
nextKey(K key)
Gets the next key after the one specified.
|
K |
previousKey(K key)
Gets the previous key before the one specified.
|
SortedMap<K,V> |
subMap(K fromKey,
K toKey) |
SortedMap<K,V> |
tailMap(K fromKey) |
comparator, firstKey, lastKey, mapIterator
containsKey, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, toString, values
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, containsKey, equals, forEach, get, getOrDefault, hashCode, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size
public boolean containsValue(Object value)
containsValue
in interface Map<K,V>
containsValue
in interface Get<K,V>
containsValue
in class AbstractMapDecorator<K,V>
value
- value whose presence in this map is to be testedtrue
if this map maps one or more keys to the
specified valueMap.containsValue(Object)
public void clear()
protected DualTreeBidiMap<K,V> decorated()
AbstractSortedMapDecorator
decorated
in class AbstractSortedMapDecorator<K,V>
public K previousKey(K key)
OrderedMap
previousKey
in interface OrderedMap<K,V>
previousKey
in class AbstractSortedMapDecorator<K,V>
key
- the key to search for previous frompublic K nextKey(K key)
OrderedMap
nextKey
in interface OrderedMap<K,V>
nextKey
in class AbstractSortedMapDecorator<K,V>
key
- the key to search for next fromCopyright © 2001–2018 The Apache Software Foundation. All rights reserved.