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
Node mapping long key to Object value.
- See Also:
-
Field Summary
-
Constructor Summary
ConstructorDescriptionPrimitiveNode
(long lKey, long lValue) Construct a new Node mapping a long key to a long value. -
Method Summary
Modifier and TypeMethodDescriptionlong
getKey()
Return the keylong
Get the long value for the Node.getValue()
Get the value associated with the node.long
setPrimitiveValue
(long lValue) Set the long value for the Node.Set the value associated with the node.
-
Field Details
-
m_lValue
protected long m_lValueThe Node's value.
-
-
Constructor Details
-
PrimitiveNode
public PrimitiveNode(long lKey, long lValue) Construct a new Node mapping a long key to a long value.- Parameters:
lKey
- the keylValue
- the long value
-
-
Method Details
-
getKey
public long getKey()Return the key- Returns:
- the key
-
setValue
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
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
-