|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
V - is the generic type of the value of this node.NODE - is the generic type of the node itself.public interface LinkedNode<V,NODE extends LinkedNode<V,NODE>>
This is the interface for a node of a linked list.
ATTENTION:
According to the generic-type-system of Java this interface can not be used
as a proper API until the generic <NODE> is finally bound. Please use
BasicLinkedNode instead.
| Method Summary | |
|---|---|
void |
addToList(List<V> list)
This method appends the values of the list represented
by this node to the given list. |
NODE |
getNext()
This method gets the next node of the linked list. |
V |
getValue()
This method gets the actual value of this node. |
boolean |
isLinked()
This method determines if this node is linked. |
List<V> |
toList()
This method converts the list represented by this node to a regular List. |
| Method Detail |
|---|
NODE getNext()
node or null if this is
the last node (tail).V getValue()
null.boolean isLinked()
next node.
true if linked, false otherwise.void addToList(List<V> list)
values of the list represented
by this node to the given list.List to convert a
LinkedNode-list to a regular List.
list - is where to append the values.List<V> toList()
List.
List of all values of the list
represented by this node.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||