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:
java.util.Map<UnsignedInteger,E>
,java.util.NavigableMap<UnsignedInteger,E>
,java.util.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, descendingMapView, 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)
java.util.Set<java.util.Map.Entry<UnsignedInteger,E>>
entrySet()
void
forEach(java.util.function.BiConsumer<? super UnsignedInteger,? super E> action)
void
forEach(java.util.function.Consumer<? super E> action)
A specialized forEach implementation that accepts aConsumer
function that will be called for each value in theSplayMap
.java.util.NavigableSet<UnsignedInteger>
navigableKeySet()
void
replaceAll(java.util.function.BiFunction<? super UnsignedInteger,? super E,? extends E> function)
java.util.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
-
-
-
-
Method Detail
-
clear
public void clear()
- Specified by:
clear
in interfacejava.util.Map<UnsignedInteger,E>
- Overrides:
clear
in classSplayMap<E>
-
values
public java.util.Collection<E> values()
- Specified by:
values
in interfacejava.util.Map<UnsignedInteger,E>
- Specified by:
values
in interfacejava.util.SortedMap<UnsignedInteger,E>
- Overrides:
values
in classSplayMap<E>
-
entrySet
public java.util.Set<java.util.Map.Entry<UnsignedInteger,E>> entrySet()
- Specified by:
entrySet
in interfacejava.util.Map<UnsignedInteger,E>
- Specified by:
entrySet
in interfacejava.util.SortedMap<UnsignedInteger,E>
- Overrides:
entrySet
in classSplayMap<E>
-
navigableKeySet
public java.util.NavigableSet<UnsignedInteger> navigableKeySet()
- Specified by:
navigableKeySet
in interfacejava.util.NavigableMap<UnsignedInteger,E>
- Overrides:
navigableKeySet
in classSplayMap<E>
-
forEach
public void forEach(java.util.function.BiConsumer<? super UnsignedInteger,? super E> action)
- Specified by:
forEach
in interfacejava.util.Map<UnsignedInteger,E>
- Overrides:
forEach
in classSplayMap<E>
-
forEach
public void forEach(java.util.function.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(java.util.function.BiFunction<? super UnsignedInteger,? super E,? extends E> function)
- Specified by:
replaceAll
in interfacejava.util.Map<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>
-
-