Package com.tangosol.util
Class PrimitiveSparseArray.PrimitiveNode
- java.lang.Object
-
- com.tangosol.util.AbstractSparseArray.Node<Long>
-
- com.tangosol.util.PrimitiveSparseArray.PrimitiveNode
-
- All Implemented Interfaces:
Serializable
,Cloneable
- Enclosing class:
- PrimitiveSparseArray
protected static class PrimitiveSparseArray.PrimitiveNode extends AbstractSparseArray.Node<Long>
Node mapping long key to Object value.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PrimitiveNode(long lKey, long lValue)
Construct a new Node mapping a long key to a long value.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getKey()
Return the keylong
getPrimitiveValue()
Get the long value for the Node.Long
getValue()
Get the value associated with the node.long
setPrimitiveValue(long lValue)
Set the long value for the Node.Long
setValue(Long value)
Set the value associated with the node.
-
-
-
Method Detail
-
getKey
public long getKey()
Return the key- Returns:
- the key
-
setValue
public Long setValue(Long value)
Set the value associated with the node.- Specified by:
setValue
in classAbstractSparseArray.Node<Long>
- Parameters:
value
- the value associated with the node- Returns:
- the old value associated with the node
-
getValue
public Long getValue()
Get the value associated with the node.- Specified by:
getValue
in classAbstractSparseArray.Node<Long>
- Returns:
- the value associated with the node.
-
setPrimitiveValue
public long setPrimitiveValue(long lValue)
Set the long value for the Node.- Parameters:
lValue
- the long value- Returns:
- the prior long value for the node
-
getPrimitiveValue
public long getPrimitiveValue()
Get the long value for the Node.- Returns:
- the long value for the node
-
-