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.ImmutableSplayMapEntry, SplayMap.SplayedEntry<E>
-
-
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)java.util.Set<java.util.Map.Entry<UnsignedInteger,E>>entrySet()voidforEach(java.util.function.BiConsumer<? super UnsignedInteger,? super E> action)voidforEach(java.util.function.Consumer<? super E> action)A specialized forEach implementation that accepts aConsumerfunction that will be called for each value in theSplayMap.java.util.Set<UnsignedInteger>keySet()voidreplaceAll(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, export, firstEntry, firstKey, floorEntry, floorKey, get, get, headMap, headMap, higherEntry, higherKey, isEmpty, lastEntry, lastKey, lowerEntry, lowerKey, navigableKeySet, pollFirstEntry, pollLastEntry, put, put, putAll, putIfAbsent, putIfAbsent, remove, remove, remove, remove, remove, replace, replace, replace, replace, size, subMap, subMap, tailMap, tailMap
-
-
-
-
Method Detail
-
clear
public void clear()
- Specified by:
clearin interfacejava.util.Map<UnsignedInteger,E>- Overrides:
clearin classSplayMap<E>
-
keySet
public java.util.Set<UnsignedInteger> keySet()
- Specified by:
keySetin interfacejava.util.Map<UnsignedInteger,E>- Specified by:
keySetin interfacejava.util.SortedMap<UnsignedInteger,E>- Overrides:
keySetin classSplayMap<E>
-
values
public java.util.Collection<E> values()
- Specified by:
valuesin interfacejava.util.Map<UnsignedInteger,E>- Specified by:
valuesin interfacejava.util.SortedMap<UnsignedInteger,E>- Overrides:
valuesin classSplayMap<E>
-
entrySet
public java.util.Set<java.util.Map.Entry<UnsignedInteger,E>> entrySet()
- Specified by:
entrySetin interfacejava.util.Map<UnsignedInteger,E>- Specified by:
entrySetin interfacejava.util.SortedMap<UnsignedInteger,E>- Overrides:
entrySetin classSplayMap<E>
-
forEach
public void forEach(java.util.function.BiConsumer<? super UnsignedInteger,? super E> action)
- Specified by:
forEachin interfacejava.util.Map<UnsignedInteger,E>- Overrides:
forEachin classSplayMap<E>
-
forEach
public void forEach(java.util.function.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(java.util.function.BiFunction<? super UnsignedInteger,? super E,? extends E> function)
- Specified by:
replaceAllin interfacejava.util.Map<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>
-
-