com.neeve.lang
Class XIntLinkedList.IntNode

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

public static class XIntLinkedList.IntNode
extends Object
implements XCollection.Record

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


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

Returns:
the node value.

getNext

public final XIntLinkedList.IntNode 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 XIntLinkedList.IntNode 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.