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 void
clear()
protected void
entryAdded(SplayMap.SplayedEntry<E> newEntry)
protected void
entryDeleted(SplayMap.SplayedEntry<E> deletedEntry)
Set<Map.Entry<UnsignedInteger,E>>
entrySet()
void
forEach(BiConsumer<? super UnsignedInteger,? super E> action)
void
forEach(Consumer<? super E> action)
NavigableSet<UnsignedInteger>
navigableKeySet()
void
replaceAll(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:
navigableKeySet
in interfaceNavigableMap<UnsignedInteger,E>
- Overrides:
navigableKeySet
in classSplayMap<E>
-
forEach
public void forEach(BiConsumer<? super UnsignedInteger,? super E> action)
-
forEach
public void forEach(Consumer<? super E> action)
Description copied from class:SplayMap
A specialized forEach implementation that accepts aConsumer
function 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:
replaceAll
in interfaceMap<UnsignedInteger,E>
- Overrides:
replaceAll
in classSplayMap<E>
-
entryAdded
protected void entryAdded(SplayMap.SplayedEntry<E> newEntry)
- Overrides:
entryAdded
in classSplayMap<E>
-
entryDeleted
protected void entryDeleted(SplayMap.SplayedEntry<E> deletedEntry)
- Overrides:
entryDeleted
in classSplayMap<E>
-
-