Skip navigation links

Oracle® Coherence Java API Reference
Release 12.1.2.0.3

E26043-02


com.tangosol.util
Class MultiBinaryLongMap.SafeEntry

java.lang.Object
  extended by com.tangosol.util.MultiBinaryLongMap.SafeEntry

All Implemented Interfaces:
BinaryLongMap.Entry
Enclosing class:
MultiBinaryLongMap

protected static class MultiBinaryLongMap.SafeEntry
extends java.lang.Object
implements BinaryLongMap.Entry

SafeEntry is an immutable 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.


Field Summary
protected  BinaryLongMap.Entry f_entry
          The underlying entry (used for binary key retrieval).
protected  long f_lValue
          The associated value

 

Constructor Summary
MultiBinaryLongMap.SafeEntry(BinaryLongMap.Entry entry)
          Construct a SafeEntry backed by the specified underlying entry.

 

Method Summary
 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 (used for binary key retrieval).

f_lValue

protected final long f_lValue
The associated value

Constructor Detail

MultiBinaryLongMap.SafeEntry

public MultiBinaryLongMap.SafeEntry(BinaryLongMap.Entry entry)
Construct a SafeEntry backed by the specified underlying entry.
Parameters:
entry - the underlying entry.

Method Detail

getKey

public Binary getKey()
Obtain the key.
Specified by:
getKey in interface BinaryLongMap.Entry
Returns:
the key as a Binary

getValue

public long getValue()
Obtain the value associated with this entry.
Specified by:
getValue in interface BinaryLongMap.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 interface BinaryLongMap.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 same BinaryLongMap.Entry as this

Skip navigation links

Oracle® Coherence Java API Reference
Release 12.1.2.0.3

E26043-02


Copyright © 2000, 2014, Oracle and/or its affiliates. All rights reserved.