private class AbstractPatriciaTrie.RangeEntryMap extends AbstractPatriciaTrie.RangeMap
AbstractPatriciaTrie.RangeMap that deals with Entrys.| 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, tailMapclear, clone, containsValue, equals, hashCode, isEmpty, keySet, putAll, size, toString, valuesprivate 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.RangeMapAbstractPatriciaTrie.RangeMap.entrySet() view of the AbstractPatriciaTrie.RangeMap.createEntrySet in class AbstractPatriciaTrie.RangeMappublic K getFromKey()
AbstractPatriciaTrie.RangeMapgetFromKey in class AbstractPatriciaTrie.RangeMappublic K getToKey()
AbstractPatriciaTrie.RangeMapgetToKey in class AbstractPatriciaTrie.RangeMappublic boolean isFromInclusive()
AbstractPatriciaTrie.RangeMapAbstractPatriciaTrie.RangeMap.getFromKey() is in the range.isFromInclusive in class AbstractPatriciaTrie.RangeMappublic boolean isToInclusive()
AbstractPatriciaTrie.RangeMapAbstractPatriciaTrie.RangeMap.getToKey() is in the range.isToInclusive in class AbstractPatriciaTrie.RangeMapprotected java.util.SortedMap<K,V> createRangeMap(K fromKey, boolean fromInclusive, K toKey, boolean toInclusive)
AbstractPatriciaTrie.RangeMapAbstractPatriciaTrie.RangeMap.createRangeMap in class AbstractPatriciaTrie.RangeMap