public static final class FastList.Node<E> extends java.lang.Object implements FastCollection.Record, java.io.Serializable
FastList
node; it allows for direct
iteration over the list values
.
Custom FastList
may use a derived implementation.
For example:
static class MyList<E,X> extends FastList<E> {
protected MyNode newNode() {
return new MyNode();
}
class MyNode extends Node<E> {
X xxx; // Additional node field (e.g. cross references).
}
}
Modifier | Constructor and Description |
---|---|
protected |
Node()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
FastList.Node<E> |
getNext()
Returns the record after this one.
|
FastList.Node<E> |
getPrevious()
Returns the record before this one.
|
E |
getValue()
Returns the value for this node.
|
public final E getValue()
public final FastList.Node<E> getNext()
FastCollection.Record
getNext
in interface FastCollection.Record
public final FastList.Node<E> getPrevious()
FastCollection.Record
getPrevious
in interface FastCollection.Record
Copyright © 2005 - 2007 Javolution.