|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object DoubleListNode<E>
public class DoubleListNode<E>
A class that represents a node to be used in a linked list. These nodes are doubly linked.
Constructor Summary | |
---|---|
DoubleListNode()
default constructor. |
|
DoubleListNode(DoubleListNode<E> prev,
E data,
DoubleListNode<E> next)
create a DoubleListNode that holds the specified data and refers to the specified next and previous elements. |
Method Summary | |
---|---|
E |
getData()
return the data in this node. |
DoubleListNode<E> |
getNext()
return the DoubleListNode this ListNode refers to. |
DoubleListNode<E> |
getPrev()
return the DoubleListNode this DoubleListNode refers to. |
void |
setData(E data)
set the data in this node. |
void |
setNext(DoubleListNode<E> next)
set the next node this DoubleListNode refers to. |
void |
setPrev(DoubleListNode<E> prev)
set the previous node this DoubleListNode refers to. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DoubleListNode()
public DoubleListNode(DoubleListNode<E> prev, E data, DoubleListNode<E> next)
prev
- the previous nodeitem
- the data this DoubleListNode should holdnext
- the next nodeMethod Detail |
---|
public E getData()
public DoubleListNode<E> getNext()
public DoubleListNode<E> getPrev()
public void setData(E data)
data
- the new data for this DoubleListNode to holdpublic void setNext(DoubleListNode<E> next)
next
- the next node this DoubleListNode should refer topublic void setPrev(DoubleListNode<E> prev)
prev
- the previous node this DoubleListNode should refer to
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |