protected static class BTreeMap.SubMap<K,V>
extends java.util.AbstractMap<K,V>
implements java.util.concurrent.ConcurrentNavigableMap<K,V>
| Modifier and Type | Field and Description |
|---|---|
protected K |
hi |
protected boolean |
hiInclusive |
protected K |
lo |
protected boolean |
loInclusive |
protected BTreeMap<K,V> |
m |
| Constructor and Description |
|---|
SubMap(BTreeMap<K,V> m,
K lo,
boolean loInclusive,
K hi,
boolean hiInclusive) |
| Modifier and Type | Method and Description |
|---|---|
java.util.Map.Entry<K,V> |
ceilingEntry(K key) |
K |
ceilingKey(K key) |
private void |
checkKeyBounds(K key) |
void |
clear() |
java.util.Comparator<? super K> |
comparator() |
boolean |
containsKey(java.lang.Object key) |
boolean |
containsValue(java.lang.Object value) |
java.util.NavigableSet<K> |
descendingKeySet() |
java.util.concurrent.ConcurrentNavigableMap<K,V> |
descendingMap() |
(package private) java.util.Iterator<java.util.Map.Entry<K,V>> |
entryIterator() |
java.util.Set<java.util.Map.Entry<K,V>> |
entrySet() |
java.util.Map.Entry<K,V> |
firstEntry() |
K |
firstKey() |
java.util.Map.Entry<K,V> |
floorEntry(K key) |
K |
floorKey(K key) |
V |
get(java.lang.Object key) |
BTreeMap.SubMap<K,V> |
headMap(K toKey) |
BTreeMap.SubMap<K,V> |
headMap(K toKey,
boolean inclusive) |
java.util.Map.Entry<K,V> |
higherEntry(K key) |
K |
higherKey(K key) |
private boolean |
inBounds(K key) |
boolean |
isEmpty() |
(package private) java.util.Iterator<K> |
keyIterator() |
java.util.NavigableSet<K> |
keySet() |
java.util.Map.Entry<K,V> |
lastEntry() |
K |
lastKey() |
java.util.Map.Entry<K,V> |
lowerEntry(K key) |
K |
lowerKey(K key) |
java.util.NavigableSet<K> |
navigableKeySet() |
private BTreeMap.SubMap<K,V> |
newSubMap(K fromKey,
boolean fromInclusive,
K toKey,
boolean toInclusive)
Utility to create submaps, where given bounds override
unbounded(null) ones and/or are checked against bounded ones.
|
java.util.Map.Entry<K,V> |
pollFirstEntry() |
java.util.Map.Entry<K,V> |
pollLastEntry() |
V |
put(K key,
V value) |
V |
putIfAbsent(K key,
V value) |
V |
remove(java.lang.Object key) |
boolean |
remove(java.lang.Object key,
java.lang.Object value) |
V |
replace(K key,
V value) |
boolean |
replace(K key,
V oldValue,
V newValue) |
int |
size() |
long |
sizeLong() |
BTreeMap.SubMap<K,V> |
subMap(K fromKey,
boolean fromInclusive,
K toKey,
boolean toInclusive) |
BTreeMap.SubMap<K,V> |
subMap(K fromKey,
K toKey) |
BTreeMap.SubMap<K,V> |
tailMap(K fromKey) |
BTreeMap.SubMap<K,V> |
tailMap(K fromKey,
boolean inclusive) |
private boolean |
tooHigh(K key) |
private boolean |
tooLow(K key) |
(package private) java.util.Iterator<V> |
valueIterator() |
clone, equals, hashCode, putAll, toString, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitprotected final K lo
protected final boolean loInclusive
protected final K hi
protected final boolean hiInclusive
public boolean containsKey(java.lang.Object key)
public V get(java.lang.Object key)
public V remove(java.lang.Object key)
public int size()
public long sizeLong()
public boolean isEmpty()
public boolean containsValue(java.lang.Object value)
public void clear()
public boolean remove(java.lang.Object key,
java.lang.Object value)
public java.util.Comparator<? super K> comparator()
private BTreeMap.SubMap<K,V> newSubMap(K fromKey, boolean fromInclusive, K toKey, boolean toInclusive)
public BTreeMap.SubMap<K,V> subMap(K fromKey, boolean fromInclusive, K toKey, boolean toInclusive)
public BTreeMap.SubMap<K,V> headMap(K toKey, boolean inclusive)
public BTreeMap.SubMap<K,V> tailMap(K fromKey, boolean inclusive)
public BTreeMap.SubMap<K,V> subMap(K fromKey, K toKey)
public BTreeMap.SubMap<K,V> headMap(K toKey)
public BTreeMap.SubMap<K,V> tailMap(K fromKey)
public java.util.NavigableSet<K> navigableKeySet()
private boolean tooLow(K key)
private boolean tooHigh(K key)
private boolean inBounds(K key)
private void checkKeyBounds(K key) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentExceptionpublic java.util.NavigableSet<K> keySet()
public java.util.NavigableSet<K> descendingKeySet()
java.util.Iterator<K> keyIterator()
java.util.Iterator<V> valueIterator()