|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfi.joensuu.cs.tra.ListNode<E>
fi.joensuu.cs.tra.EOL<E>
public class EOL<E>
EOL is a subclass of ListNode used to mark the end of the end of TraLinkedList. Its only uses are basically in checking whether the next node in a TraLinkedList is the end of the list and for use as a positional parameter when inserting ListNodes at the end of the list. For example
// Traversing a list (assuming the list is not empty) node = list.first(); while (node != list.EOL) node = node.next(); // Inserting (appending) at the end of the list list.insert(list.EOL, something);
Method Summary | |
---|---|
E |
getElement()
Always throws an TraLinkedListException. |
ListNode<E> |
next()
Always throws a TraLinkedListException. |
ListNode<E> |
previous()
Always throws an TraLinkedListException. |
String |
toString()
Returns the element's toString(). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public ListNode<E> previous()
previous
in class ListNode<E>
public ListNode<E> next()
next
in class ListNode<E>
TraLinkedListExecption
public E getElement()
getElement
in class ListNode<E>
public String toString()
ListNode
toString
in class ListNode<E>
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |