com.neeve.lang
Class XLongLinkedList.LongNode

java.lang.Object
  extended by com.neeve.lang.XLongLinkedList.LongNode
All Implemented Interfaces:
XCollection.Record
Enclosing class:
XLongLinkedList

public static class XLongLinkedList.LongNode
extends Object
implements XCollection.Record

This class represents a XLongLinkedList node; it allows for direct iteration over the list values. Custom XLongLinkedList may use a derived implementation. For example:[code] static class MyList extends XLinkedList { protected MyNode newNode() { return new MyNode(); } class MyNode extends LongNode { X xxx; // Additional node field (e.g. cross references). } }[/code]


Method Summary
 XLongLinkedList.LongNode getNext()
          Returns the record after this one.
 XLongLinkedList.LongNode getPrevious()
          Returns the record before this one.
 long getValue()
          Returns the value for this node.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getValue

public final long getValue()
Returns the value for this node.

Returns:
the node value.

getNext

public final XLongLinkedList.LongNode getNext()
Description copied from interface: XCollection.Record
Returns the record after this one.

Specified by:
getNext in interface XCollection.Record
Returns:
the next record.

getPrevious

public final XLongLinkedList.LongNode getPrevious()
Description copied from interface: XCollection.Record
Returns the record before this one.

Specified by:
getPrevious in interface XCollection.Record
Returns:
the previous record.


Copyright © 2016 Neeve Research, LLC. All Rights Reserved.