private class AbstractPatriciaTrie.RangeEntryMap extends AbstractPatriciaTrie.RangeMap
AbstractPatriciaTrie.RangeMap
that deals with Entry
s.Modifier and Type | Field and Description |
---|---|
private boolean |
fromInclusive
Whether or not the 'from' is inclusive.
|
private K |
fromKey
The key to start from, null if the beginning.
|
private boolean |
toInclusive
Whether or not the 'to' is inclusive.
|
private K |
toKey
The key to end at, null if till the end.
|
Modifier | Constructor and Description |
---|---|
protected |
RangeEntryMap(K fromKey,
boolean fromInclusive,
K toKey,
boolean toInclusive)
Creates a
AbstractPatriciaTrie.RangeEntryMap . |
protected |
RangeEntryMap(K fromKey,
K toKey)
Creates a
AbstractPatriciaTrie.RangeEntryMap with the fromKey included and
the toKey excluded from the range. |
Modifier and Type | Method and Description |
---|---|
protected java.util.Set<java.util.Map.Entry<K,V>> |
createEntrySet()
Creates and returns an
AbstractPatriciaTrie.RangeMap.entrySet() view of the AbstractPatriciaTrie.RangeMap . |
protected java.util.SortedMap<K,V> |
createRangeMap(K fromKey,
boolean fromInclusive,
K toKey,
boolean toInclusive)
Creates and returns a sub-range view of the current
AbstractPatriciaTrie.RangeMap . |
K |
firstKey() |
K |
getFromKey()
Returns the FROM Key.
|
K |
getToKey()
Returns the TO Key.
|
boolean |
isFromInclusive()
Whether or not the
AbstractPatriciaTrie.RangeMap.getFromKey() is in the range. |
boolean |
isToInclusive()
Whether or not the
AbstractPatriciaTrie.RangeMap.getToKey() is in the range. |
K |
lastKey() |
comparator, containsKey, entrySet, get, headMap, inFromRange, inRange, inRange2, inToRange, put, remove, subMap, tailMap
clear, clone, containsValue, equals, hashCode, isEmpty, keySet, putAll, size, toString, values
private final K fromKey
private final K toKey
private final boolean fromInclusive
private final boolean toInclusive
protected RangeEntryMap(K fromKey, K toKey)
AbstractPatriciaTrie.RangeEntryMap
with the fromKey included and
the toKey excluded from the range.protected RangeEntryMap(K fromKey, boolean fromInclusive, K toKey, boolean toInclusive)
AbstractPatriciaTrie.RangeEntryMap
.public K firstKey()
public K lastKey()
protected java.util.Set<java.util.Map.Entry<K,V>> createEntrySet()
AbstractPatriciaTrie.RangeMap
AbstractPatriciaTrie.RangeMap.entrySet()
view of the AbstractPatriciaTrie.RangeMap
.createEntrySet
in class AbstractPatriciaTrie.RangeMap
public K getFromKey()
AbstractPatriciaTrie.RangeMap
getFromKey
in class AbstractPatriciaTrie.RangeMap
public K getToKey()
AbstractPatriciaTrie.RangeMap
getToKey
in class AbstractPatriciaTrie.RangeMap
public boolean isFromInclusive()
AbstractPatriciaTrie.RangeMap
AbstractPatriciaTrie.RangeMap.getFromKey()
is in the range.isFromInclusive
in class AbstractPatriciaTrie.RangeMap
public boolean isToInclusive()
AbstractPatriciaTrie.RangeMap
AbstractPatriciaTrie.RangeMap.getToKey()
is in the range.isToInclusive
in class AbstractPatriciaTrie.RangeMap
protected java.util.SortedMap<K,V> createRangeMap(K fromKey, boolean fromInclusive, K toKey, boolean toInclusive)
AbstractPatriciaTrie.RangeMap
AbstractPatriciaTrie.RangeMap
.createRangeMap
in class AbstractPatriciaTrie.RangeMap