Class AbstractPatriciaTrie.RangeEntryMap
java.lang.Object
java.util.AbstractMap<K,V>
AbstractPatriciaTrie<K,V>.org.apache.commons.collections4.trie.AbstractPatriciaTrie.AbstractRangeMap
org.apache.commons.collections4.trie.AbstractPatriciaTrie.RangeEntryMap
- Enclosing class:
AbstractPatriciaTrie<K,V>
private final class AbstractPatriciaTrie.RangeEntryMap
extends AbstractPatriciaTrie<K,V>.AbstractRangeMap
A
AbstractPatriciaTrie<K,V>.AbstractRangeMap 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.AbstractRangeMap.entrySet()view of theAbstractPatriciaTrie<K,.V>.AbstractRangeMap createRangeMap(K fromKey, boolean fromInclusive, K toKey, boolean toInclusive) Creates and returns a sub-range view of the currentAbstractPatriciaTrie<K,.V>.AbstractRangeMap firstKey()Gets the FROM Key.getToKey()Gets the TO Key.booleanTests whether or not theAbstractPatriciaTrie.AbstractRangeMap.getFromKey()is in the range.booleanTests whether or not theAbstractPatriciaTrie.AbstractRangeMap.getToKey()is in the range.lastKey()Methods inherited from class org.apache.commons.collections4.trie.AbstractPatriciaTrie.AbstractRangeMap
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,.V>.RangeEntryMap -
RangeEntryMap
Creates aAbstractPatriciaTrie<K,with the fromKey included and the toKey excluded from the range.V>.RangeEntryMap
-
-
Method Details
-
createEntrySet
Description copied from class:AbstractPatriciaTrie.AbstractRangeMapCreates and returns anAbstractPatriciaTrie.AbstractRangeMap.entrySet()view of theAbstractPatriciaTrie<K,.V>.AbstractRangeMap - Specified by:
createEntrySetin classAbstractPatriciaTrie<K,V>.AbstractRangeMap
-
createRangeMap
protected SortedMap<K,V> createRangeMap(K fromKey, boolean fromInclusive, K toKey, boolean toInclusive) Description copied from class:AbstractPatriciaTrie.AbstractRangeMapCreates and returns a sub-range view of the currentAbstractPatriciaTrie<K,.V>.AbstractRangeMap - Specified by:
createRangeMapin classAbstractPatriciaTrie<K,V>.AbstractRangeMap
-
firstKey
-
getFromKey
Description copied from class:AbstractPatriciaTrie.AbstractRangeMapGets the FROM Key.- Specified by:
getFromKeyin classAbstractPatriciaTrie<K,V>.AbstractRangeMap
-
getToKey
Description copied from class:AbstractPatriciaTrie.AbstractRangeMapGets the TO Key.- Specified by:
getToKeyin classAbstractPatriciaTrie<K,V>.AbstractRangeMap
-
isFromInclusive
public boolean isFromInclusive()Description copied from class:AbstractPatriciaTrie.AbstractRangeMapTests whether or not theAbstractPatriciaTrie.AbstractRangeMap.getFromKey()is in the range.- Specified by:
isFromInclusivein classAbstractPatriciaTrie<K,V>.AbstractRangeMap - Returns:
- whether or not the
AbstractPatriciaTrie.AbstractRangeMap.getFromKey()is in the range.
-
isToInclusive
public boolean isToInclusive()Description copied from class:AbstractPatriciaTrie.AbstractRangeMapTests whether or not theAbstractPatriciaTrie.AbstractRangeMap.getToKey()is in the range.- Specified by:
isToInclusivein classAbstractPatriciaTrie<K,V>.AbstractRangeMap - Returns:
- whether or not the
AbstractPatriciaTrie.AbstractRangeMap.getToKey()is in the range.
-
lastKey
-