|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfi.joensuu.cs.tra.ListNode
Constructor Summary | |
---|---|
ListNode()
Creates an empty, unlinked ListNode. |
|
ListNode(E element)
Creates an unlinked ListNode with the specified element. |
Method Summary | |
---|---|
E |
getElement()
Returns this ListNode's element. |
ListNode<E> |
getNext()
Returns this ListNode's next node. |
ListNode<E> |
getPrevious()
Returns this ListNode's previous node. |
E |
setElement(E element)
Sets this ListNode's element. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ListNode()
public ListNode(E element)
element
- the element for the new ListNode.Method Detail |
---|
public E setElement(E element)
element
- the new element for this node.
public E getElement()
public ListNode<E> getNext()
public ListNode<E> getPrevious()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |