Package com.tangosol.util
Class MultiBinaryLongMap.AbstractDelegateBinaryLongMap.DelegateEntryVisitor.WrapperEntry
- java.lang.Object
-
- com.tangosol.util.MultiBinaryLongMap.AbstractDelegateBinaryLongMap.DelegateEntryVisitor.WrapperEntry
-
- All Implemented Interfaces:
BinaryLongMap.Entry
protected class MultiBinaryLongMap.AbstractDelegateBinaryLongMap.DelegateEntryVisitor.WrapperEntry extends Object implements BinaryLongMap.Entry
WrapperEntry is used to wrap an Entry from the master key-tree (which associates the key with the encoded slot-id) and associate it with the logical value associated with this AbstractDelegatingBinaryLongMap for the purposes of exposing to the predicate. The purpose of the WrapperEntry is to limit the amount
-
-
Field Summary
Fields Modifier and Type Field Description protected BinaryLongMap.Entry
m_entry
The underlying Entry.
-
Constructor Summary
Constructors Modifier Constructor Description protected
WrapperEntry()
-
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.void
reset(BinaryLongMap.Entry entry)
Reset the WrapperEntry to represent a different underlying Entry.BinaryLongMap.Entry
setValue(long lValue)
Set the value associated with this entry.
-
-
-
Field Detail
-
m_entry
protected BinaryLongMap.Entry m_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
-
reset
public void reset(BinaryLongMap.Entry entry)
Reset the WrapperEntry to represent a different underlying Entry.- Parameters:
entry
- the new entry to wrap
-
-