Class LinkedSplayMap<E>
- java.lang.Object
-
- org.apache.qpid.protonj2.engine.util.SplayMap<E>
-
- org.apache.qpid.protonj2.engine.util.LinkedSplayMap<E>
-
- Type Parameters:
E- The type stored in the map entries
- All Implemented Interfaces:
Map<UnsignedInteger,E>,NavigableMap<UnsignedInteger,E>,SortedMap<UnsignedInteger,E>
public class LinkedSplayMap<E> extends SplayMap<E>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.qpid.protonj2.engine.util.SplayMap
SplayMap.AscendingSubMap<V>, SplayMap.DescendingSubMap<V>, SplayMap.ImmutableSplayMapEntry<E>, SplayMap.NavigableSubMapKeySet, SplayMap.SplayedEntry<E>, SplayMap.SplayMapKeySet
-
-
Field Summary
-
Fields inherited from class org.apache.qpid.protonj2.engine.util.SplayMap
COMPARATOR, DEFAULT_ENTRY_POOL_SIZE, descendingMapView, entriesInExistence, entryPool, entrySet, keySet, modCount, REVERSE_COMPARATOR, root, size, values
-
-
Constructor Summary
Constructors Constructor Description LinkedSplayMap()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()protected voidentryAdded(SplayMap.SplayedEntry<E> newEntry)protected voidentryDeleted(SplayMap.SplayedEntry<E> deletedEntry)Set<Map.Entry<UnsignedInteger,E>>entrySet()voidforEach(BiConsumer<? super UnsignedInteger,? super E> action)voidforEach(Consumer<? super E> action)NavigableSet<UnsignedInteger>navigableKeySet()voidreplaceAll(BiFunction<? super UnsignedInteger,? super E,? extends E> function)Collection<E>values()-
Methods inherited from class org.apache.qpid.protonj2.engine.util.SplayMap
ceilingEntry, ceilingKey, comparator, containsKey, containsKey, containsValue, delete, descendingKeySet, descendingMap, equals, export, firstEntry, firstKey, floorEntry, floorKey, get, get, getOrDefault, getOrDefault, hashCode, headMap, headMap, higherEntry, higherKey, isEmpty, keySet, lastEntry, lastKey, lowerEntry, lowerKey, pollFirstEntry, pollLastEntry, put, put, putAll, putIfAbsent, putIfAbsent, remove, remove, remove, remove, remove, replace, replace, replace, replace, reverseComparator, size, subMap, subMap, tailMap, tailMap
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, merge
-
-
-
-
Method Detail
-
clear
public void clear()
-
values
public Collection<E> values()
-
entrySet
public Set<Map.Entry<UnsignedInteger,E>> entrySet()
-
navigableKeySet
public NavigableSet<UnsignedInteger> navigableKeySet()
- Specified by:
navigableKeySetin interfaceNavigableMap<UnsignedInteger,E>- Overrides:
navigableKeySetin classSplayMap<E>
-
forEach
public void forEach(BiConsumer<? super UnsignedInteger,? super E> action)
-
forEach
public void forEach(Consumer<? super E> action)
Description copied from class:SplayMapA specialized forEach implementation that accepts aConsumerfunction that will be called for each value in theSplayMap. This method can save overhead as it does not need to box the primitive key values into an object for the call to the provided function. Unless otherwise specified by the implementing class, actions are performed in the order of entry set iteration (if an iteration order is specified.)
-
replaceAll
public void replaceAll(BiFunction<? super UnsignedInteger,? super E,? extends E> function)
- Specified by:
replaceAllin interfaceMap<UnsignedInteger,E>- Overrides:
replaceAllin classSplayMap<E>
-
entryAdded
protected void entryAdded(SplayMap.SplayedEntry<E> newEntry)
- Overrides:
entryAddedin classSplayMap<E>
-
entryDeleted
protected void entryDeleted(SplayMap.SplayedEntry<E> deletedEntry)
- Overrides:
entryDeletedin classSplayMap<E>
-
-