Class SplayMap.ImmutableSplayMapEntry
- java.lang.Object
-
- org.apache.qpid.protonj2.engine.util.SplayMap.ImmutableSplayMapEntry
-
- All Implemented Interfaces:
java.util.Map.Entry<UnsignedInteger,E>
public class SplayMap.ImmutableSplayMapEntry extends java.lang.Object implements java.util.Map.Entry<UnsignedInteger,E>
An immutableMap
entry that can be used when exposing raw entry mappings via theMap
API.
-
-
Constructor Summary
Constructors Constructor Description ImmutableSplayMapEntry(SplayMap.SplayedEntry<E> entry)
Create a new immutableMap
entry.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UnsignedInteger
getKey()
int
getPrimitiveKey()
E
getValue()
E
setValue(E value)
-
-
-
Constructor Detail
-
ImmutableSplayMapEntry
public ImmutableSplayMapEntry(SplayMap.SplayedEntry<E> entry)
Create a new immutableMap
entry.- Parameters:
entry
- The innerMap
entry that is wrapped.
-
-
Method Detail
-
getKey
public UnsignedInteger getKey()
- Specified by:
getKey
in interfacejava.util.Map.Entry<UnsignedInteger,E>
-
getPrimitiveKey
public int getPrimitiveKey()
- Returns:
- the primitive integer view of the unsigned key.
-
getValue
public E getValue()
- Specified by:
getValue
in interfacejava.util.Map.Entry<UnsignedInteger,E>
-
setValue
public E setValue(E value)
- Specified by:
setValue
in interfacejava.util.Map.Entry<UnsignedInteger,E>
-
-