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>>
BasicLinkedNode instead.| Modifier and Type | Method and Description |
|---|---|
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. |
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.Copyright © 2001–2016 mmm-Team. All rights reserved.