|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectelectric.util.list.ListNode
ListNode is a Node in a doubly-linked list.
| Constructor Summary | |
ListNode()
|
|
ListNode(java.lang.Object object)
|
|
| Method Summary | |
LinkedList |
getList()
|
ListNode |
getNext()
Return my next sibling, or null if I have none. |
java.lang.Object |
getObject()
|
ListNode |
getPrevious()
Return my previous sibling, or null if I have none. |
boolean |
remove()
If I am in a list, remove myself and return true, otherwise return false. |
void |
setNext(ListNode node)
Set my next sibling to be the specified node. |
void |
setPrevious(ListNode node)
Set my previous sibling to be the specified node. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ListNode()
public ListNode(java.lang.Object object)
object - | Method Detail |
public java.lang.Object getObject()
public LinkedList getList()
public ListNode getPrevious()
public ListNode getNext()
public void setNext(ListNode node)
node - The node to addpublic void setPrevious(ListNode node)
node - The node to addpublic boolean remove()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||