Class PrimitiveSparseArray.PrimitiveNode

    • Field Detail

      • m_lValue

        protected long m_lValue
        The Node's value.
    • Constructor Detail

      • PrimitiveNode

        public PrimitiveNode​(long lKey,
                             long lValue)
        Construct a new Node mapping a long key to a long value.
        Parameters:
        lKey - the key
        lValue - the long value
    • 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 class AbstractSparseArray.Node<Long>
        Parameters:
        value - the value associated with the node
        Returns:
        the old 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