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
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPrimitiveNode(long lKey, long lValue) Construct a new Node mapping a long key to a long value. -
Method Summary
Modifier and TypeMethodDescriptionlonggetKey()Return the keylongGet the long value for the Node.getValue()Get the value associated with the node.longsetPrimitiveValue(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:
setValuein 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:
getValuein 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
-