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.Entrys.-
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
ConstructorsModifierConstructorDescriptionprotectedRangeEntryMap(K fromKey, boolean fromInclusive, K toKey, boolean toInclusive) Creates aAbstractPatriciaTrie<K,.V>.RangeEntryMap protectedRangeEntryMap(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.booleanWhether or not theAbstractPatriciaTrie.RangeMap.getFromKey()is in the range.booleanWhether 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, tailMapMethods inherited from class java.util.AbstractMap
clear, clone, containsValue, equals, hashCode, isEmpty, keySet, putAll, size, toString, valuesMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods 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.RangeMapCreates and returns anAbstractPatriciaTrie.RangeMap.entrySet()view of theAbstractPatriciaTrie<K,.V>.RangeMap - Specified by:
createEntrySetin classAbstractPatriciaTrie<K,V>.RangeMap
-
getFromKey
Description copied from class:AbstractPatriciaTrie.RangeMapReturns the FROM Key.- Specified by:
getFromKeyin classAbstractPatriciaTrie<K,V>.RangeMap
-
getToKey
Description copied from class:AbstractPatriciaTrie.RangeMapReturns the TO Key.- Specified by:
getToKeyin classAbstractPatriciaTrie<K,V>.RangeMap
-
isFromInclusive
public boolean isFromInclusive()Description copied from class:AbstractPatriciaTrie.RangeMapWhether or not theAbstractPatriciaTrie.RangeMap.getFromKey()is in the range.- Specified by:
isFromInclusivein classAbstractPatriciaTrie<K,V>.RangeMap
-
isToInclusive
public boolean isToInclusive()Description copied from class:AbstractPatriciaTrie.RangeMapWhether or not theAbstractPatriciaTrie.RangeMap.getToKey()is in the range.- Specified by:
isToInclusivein classAbstractPatriciaTrie<K,V>.RangeMap
-
createRangeMap
protected SortedMap<K,V> createRangeMap(K fromKey, boolean fromInclusive, K toKey, boolean toInclusive) Description copied from class:AbstractPatriciaTrie.RangeMapCreates and returns a sub-range view of the currentAbstractPatriciaTrie<K,.V>.RangeMap - Specified by:
createRangeMapin classAbstractPatriciaTrie<K,V>.RangeMap
-