java.util.Map<K,V>
, java.util.SortedMap<K,V>
, Get<K,V>
, IterableGet<K,V>
, IterableMap<K,V>
, IterableSortedMap<K,V>
, OrderedMap<K,V>
, Put<K,V>
protected static class DualTreeBidiMap.ViewMap<K,V> extends AbstractSortedMapDecorator<K,V>
AbstractSortedMapDecorator.SortedMapIterator<K,V>
Modifier | Constructor | Description |
---|---|---|
protected |
ViewMap(DualTreeBidiMap<K,V> bidi,
java.util.SortedMap<K,V> sm) |
Constructor.
|
Modifier and Type | Method | Description |
---|---|---|
void |
clear() |
|
boolean |
containsValue(java.lang.Object value) |
|
protected DualTreeBidiMap<K,V> |
decorated() |
Gets the map being decorated.
|
java.util.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.
|
java.util.SortedMap<K,V> |
subMap(K fromKey,
K toKey) |
|
java.util.SortedMap<K,V> |
tailMap(K fromKey) |
containsKey, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, toString, values
comparator, firstKey, lastKey, mapIterator
containsKey, entrySet, get, isEmpty, keySet, remove, size, values
compute, computeIfAbsent, computeIfPresent, containsKey, entry, equals, forEach, get, getOrDefault, hashCode, isEmpty, merge, of, of, of, of, of, of, of, of, of, of, of, ofEntries, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size
protected ViewMap(DualTreeBidiMap<K,V> bidi, java.util.SortedMap<K,V> sm)
bidi
- the parent bidi mapsm
- the subMap sorted mappublic boolean containsValue(java.lang.Object value)
containsValue
in interface Get<K,V>
containsValue
in interface java.util.Map<K,V>
containsValue
in class AbstractMapDecorator<K,V>
Map.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-2019 - Apache Software Foundation