Package com.tangosol.util
Class MultiBinaryLongMap.MaskedBinaryLongMap.MaskedEntry
- java.lang.Object
-
- com.tangosol.util.MultiBinaryLongMap.MaskedBinaryLongMap.MaskedEntry
-
- All Implemented Interfaces:
BinaryLongMap.Entry
- Enclosing class:
- MultiBinaryLongMap.MaskedBinaryLongMap
protected class MultiBinaryLongMap.MaskedBinaryLongMap.MaskedEntry extends Object implements BinaryLongMap.Entry
MaskedEntry represents an Entry in the MaskedBinaryLongMap.
-
-
Field Summary
Fields Modifier and Type Field Description protected BinaryLongMap.Entry
f_entry
The underlying entry.
-
Constructor Summary
Constructors Modifier Constructor Description protected
MaskedEntry(BinaryLongMap.Entry entry)
Construct a MaskedEntry backed by the specified underlying entry.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Field Detail
-
f_entry
protected final BinaryLongMap.Entry f_entry
The underlying entry.
-
-
Constructor Detail
-
MaskedEntry
protected MaskedEntry(BinaryLongMap.Entry entry)
Construct a MaskedEntry backed by the specified underlying entry.- Parameters:
entry
- the underlying entry
-
-
Method Detail
-
getKey
public Binary getKey()
Obtain the key.- Specified by:
getKey
in interfaceBinaryLongMap.Entry
- Returns:
- the key as a
Binary
-
getValue
public long getValue()
Obtain the value associated with this entry.- Specified by:
getValue
in interfaceBinaryLongMap.Entry
- Returns:
- the associated value as a long
-
setValue
public BinaryLongMap.Entry setValue(long lValue)
Set the value associated with this entry.Note: in some implementations, this operation may cause this Entry to be replaced with another Entry instance in the underlying representation.
- Specified by:
setValue
in interfaceBinaryLongMap.Entry
- Parameters:
lValue
- the value to associate with this entry- Returns:
- an
BinaryLongMap.Entry
with the new value, which may or may not be the sameBinaryLongMap.Entry
as this
-
-