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.Entrym_entryThe underlying Entry.
-
Constructor Summary
Constructors Modifier Constructor Description protectedWrapperEntry()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BinarygetKey()Obtain the key.longgetValue()Obtain the value associated with this entry.voidreset(BinaryLongMap.Entry entry)Reset the WrapperEntry to represent a different underlying Entry.BinaryLongMap.EntrysetValue(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:
getKeyin interfaceBinaryLongMap.Entry- Returns:
- the key as a
Binary
-
getValue
public long getValue()
Obtain the value associated with this entry.- Specified by:
getValuein 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:
setValuein interfaceBinaryLongMap.Entry- Parameters:
lValue- the value to associate with this entry- Returns:
- an
BinaryLongMap.Entrywith the new value, which may or may not be the sameBinaryLongMap.Entryas this
-
reset
public void reset(BinaryLongMap.Entry entry)
Reset the WrapperEntry to represent a different underlying Entry.- Parameters:
entry- the new entry to wrap
-
-