|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpqrtree.ListNode
public class ListNode
A ListNode
is the element of the
DoublyLinkedList
, consisting of
a pointer to its buddy, to the next node,
and to another object.
DoublyLinkedList
Field Summary | |
---|---|
private java.lang.Object |
data
|
private ListNode |
dir1
|
private ListNode |
dir2
|
Constructor Summary | |
---|---|
ListNode(java.lang.Object data)
Creates a list node that stores an object. |
Method Summary | |
---|---|
java.lang.Object |
getData()
Gets the data stored by the list node, usually a tree node, or another list node. |
ListNode |
getDir1()
Getss the neighbor element of the list node in direction 1. |
ListNode |
getDir2()
Gets the neighbor element of the list node in direction 2. |
ListNode |
getNext(ListNode iterator)
Gets the next element of the list node. |
void |
removeMe()
Remove the node of the list it belongs. |
void |
setData(java.lang.Object o)
|
void |
setDir1(ListNode n)
Sets the neighbor element of the list node in direction 1. |
void |
setDir2(ListNode n)
Sets the neighbor element of the list node in direction 2. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private ListNode dir1
private ListNode dir2
private java.lang.Object data
Constructor Detail |
---|
public ListNode(java.lang.Object data)
data
- Object that must be stored.Method Detail |
---|
public ListNode getNext(ListNode iterator)
iterator
- The iterator is a list node that stores
the previous list node, or the head, when its the first
step of a loop.
public void setDir1(ListNode n)
n
- Neighbor list node.public void setDir2(ListNode n)
n
- Neighbor list node.public ListNode getDir1()
public ListNode getDir2()
public java.lang.Object getData()
public void setData(java.lang.Object o)
public void removeMe()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |