Class AbstractPatriciaTrie.RangeEntryMap
java.lang.Object
java.util.AbstractMap<K,V>
AbstractPatriciaTrie<K,V>.org.apache.commons.collections4.trie.AbstractPatriciaTrie.RangeMap
org.apache.commons.collections4.trie.AbstractPatriciaTrie.RangeEntryMap
- Enclosing class:
AbstractPatriciaTrie<K,
V>
A
AbstractPatriciaTrie<K,V>.RangeMap
that deals with Map.Entry
s.-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,
V>, AbstractMap.SimpleImmutableEntry<K, V> -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
RangeEntryMap
(K fromKey, boolean fromInclusive, K toKey, boolean toInclusive) Creates aAbstractPatriciaTrie<K,
.V>.RangeEntryMap protected
RangeEntryMap
(K fromKey, K toKey) Creates aAbstractPatriciaTrie<K,
with the fromKey included and the toKey excluded from the range.V>.RangeEntryMap -
Method Summary
Modifier and TypeMethodDescriptionCreates and returns anAbstractPatriciaTrie.RangeMap.entrySet()
view of theAbstractPatriciaTrie<K,
.V>.RangeMap createRangeMap
(K fromKey, boolean fromInclusive, K toKey, boolean toInclusive) Creates and returns a sub-range view of the currentAbstractPatriciaTrie<K,
.V>.RangeMap firstKey()
Returns the FROM Key.getToKey()
Returns the TO Key.boolean
Whether or not theAbstractPatriciaTrie.RangeMap.getFromKey()
is in the range.boolean
Whether or not theAbstractPatriciaTrie.RangeMap.getToKey()
is in the range.lastKey()
Methods inherited from class org.apache.commons.collections4.trie.AbstractPatriciaTrie.RangeMap
comparator, containsKey, entrySet, get, headMap, inFromRange, inRange, inRange2, inToRange, put, remove, subMap, tailMap
Methods inherited from class java.util.AbstractMap
clear, clone, containsValue, equals, hashCode, isEmpty, keySet, putAll, size, toString, values
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Map
clear, compute, computeIfAbsent, computeIfPresent, containsValue, equals, forEach, getOrDefault, hashCode, isEmpty, merge, putAll, putIfAbsent, remove, replace, replace, replaceAll, size
-
Field Details
-
fromKey
The key to start from, null if the beginning. -
toKey
The key to end at, null if till the end. -
fromInclusive
private final boolean fromInclusiveWhether or not the 'from' is inclusive. -
toInclusive
private final boolean toInclusiveWhether or not the 'to' is inclusive.
-
-
Constructor Details
-
RangeEntryMap
Creates aAbstractPatriciaTrie<K,
with the fromKey included and the toKey excluded from the range.V>.RangeEntryMap -
RangeEntryMap
Creates aAbstractPatriciaTrie<K,
.V>.RangeEntryMap
-
-
Method Details
-
firstKey
-
lastKey
-
createEntrySet
Description copied from class:AbstractPatriciaTrie.RangeMap
Creates and returns anAbstractPatriciaTrie.RangeMap.entrySet()
view of theAbstractPatriciaTrie<K,
.V>.RangeMap - Specified by:
createEntrySet
in classAbstractPatriciaTrie<K,
V>.RangeMap
-
getFromKey
Description copied from class:AbstractPatriciaTrie.RangeMap
Returns the FROM Key.- Specified by:
getFromKey
in classAbstractPatriciaTrie<K,
V>.RangeMap
-
getToKey
Description copied from class:AbstractPatriciaTrie.RangeMap
Returns the TO Key.- Specified by:
getToKey
in classAbstractPatriciaTrie<K,
V>.RangeMap
-
isFromInclusive
public boolean isFromInclusive()Description copied from class:AbstractPatriciaTrie.RangeMap
Whether or not theAbstractPatriciaTrie.RangeMap.getFromKey()
is in the range.- Specified by:
isFromInclusive
in classAbstractPatriciaTrie<K,
V>.RangeMap
-
isToInclusive
public boolean isToInclusive()Description copied from class:AbstractPatriciaTrie.RangeMap
Whether or not theAbstractPatriciaTrie.RangeMap.getToKey()
is in the range.- Specified by:
isToInclusive
in classAbstractPatriciaTrie<K,
V>.RangeMap
-
createRangeMap
protected SortedMap<K,V> createRangeMap(K fromKey, boolean fromInclusive, K toKey, boolean toInclusive) Description copied from class:AbstractPatriciaTrie.RangeMap
Creates and returns a sub-range view of the currentAbstractPatriciaTrie<K,
.V>.RangeMap - Specified by:
createRangeMap
in classAbstractPatriciaTrie<K,
V>.RangeMap
-