protected static class MultiBinaryLongMap.SafeEntry extends Object implements BinaryLongMap.Entry
BinaryLongMap.Entry implementation that exposes the logical contents of an underlying Entry in a way that is safe from mutations or being held as a reference.| Modifier and Type | Field and Description | 
|---|---|
protected BinaryLongMap.Entry | 
f_entry
The underlying entry (used for binary key retrieval). 
 | 
protected long | 
f_lValue
The associated value 
 | 
| Constructor and Description | 
|---|
SafeEntry(BinaryLongMap.Entry entry)
Construct a SafeEntry backed by the specified underlying entry. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
Binary | 
getKey()
Obtain the key. 
 | 
long | 
getValue()
Obtain the value associated with this entry. 
 | 
BinaryLongMap.Entry | 
setValue(long lValue)
Set the value associated with this entry. 
 | 
protected final BinaryLongMap.Entry f_entry
protected final long f_lValue
public SafeEntry(BinaryLongMap.Entry entry)
entry - the underlying entry.public Binary getKey()
getKey in interface BinaryLongMap.EntryBinarypublic long getValue()
getValue in interface BinaryLongMap.Entrypublic BinaryLongMap.Entry setValue(long lValue)
Note: in some implementations, this operation may cause this Entry to be replaced with another Entry instance in the underlying representation.
setValue in interface BinaryLongMap.EntrylValue - the value to associate with this entryBinaryLongMap.Entry with the new value, which may or may not be the same BinaryLongMap.Entry as this