com.neeve.lang
Class XIntLinkedList.IntNode
java.lang.Object
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]
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.