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 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.Set<UnsignedInteger>
keySet()
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, 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:
clear
in interfacejava.util.Map<UnsignedInteger,E>
- Overrides:
clear
in classSplayMap<E>
-
keySet
public java.util.Set<UnsignedInteger> keySet()
- Specified by:
keySet
in interfacejava.util.Map<UnsignedInteger,E>
- Specified by:
keySet
in interfacejava.util.SortedMap<UnsignedInteger,E>
- Overrides:
keySet
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>
-
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>
-
-