public class ListNode<E>
extends java.lang.Object
next()
and
previous()
methods
can also be called from
TraLinkedList.
The methods
setElement()
and
getElement()
should be
rather self-explanatory.Modifier and Type | Method and Description |
---|---|
E |
getElement()
Returns this ListNode's element.
|
ListNode<E> |
next()
Returns this ListNode's next node.
|
ListNode<E> |
previous()
Returns this ListNode's previous node.
|
java.lang.String |
toString()
Returns the element's toString().
|
public E getElement()
public ListNode<E> next()
TraLinkedListException
- if this node is
TraLinkedList.EOL
.public ListNode<E> previous()
public java.lang.String toString()
toString
in class java.lang.Object