com.neeve.lang
Class XLinkedList.Node<E>

java.lang.Object
  extended by com.neeve.lang.XLinkedList.Node<E>
All Implemented Interfaces:
XCollection.Record
Enclosing class:
XLinkedList<E>

public static class XLinkedList.Node<E>
extends Object
implements XCollection.Record

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


Method Summary
 XLinkedList.Node<E> getNext()
          Returns the record after this one.
 XLinkedList.Node<E> getPrevious()
          Returns the record before this one.
 E 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 E getValue()
Returns the value for this node.

Returns:
the node value.

getNext

public final XLinkedList.Node<E> 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 XLinkedList.Node<E> 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.