|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectelectric.util.list.LinkedList
LinkedList.
| Constructor Summary | |
LinkedList()
|
|
| Method Summary | |
void |
add(ListNode node)
Append the specified node to the end of this list. |
void |
add(ListNode node,
ListNode newNode)
Append the new node as a sibling of the existing node. |
void |
clear()
Remove all the nodes. |
ListEnumeration |
elements()
|
ListNode |
getFirst()
|
ListNode |
getLast()
|
void |
insert(ListNode node,
ListNode newNode)
Insert the new node as a sibling of the existing node. |
boolean |
isEmpty()
Return true if this list is empty. |
void |
remove(ListNode node)
Remove the specified node from this list. |
void |
replace(ListNode oldNode,
ListNode newNode)
Replace the old node with the new node in this list. |
int |
size()
Return the number of nodes in this list. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public LinkedList()
| Method Detail |
public boolean isEmpty()
public void add(ListNode node)
node - The node to append.public void remove(ListNode node)
node - The node to remove.
public void replace(ListNode oldNode,
ListNode newNode)
oldNode - The node to replace.newNode - The new node.
public void add(ListNode node,
ListNode newNode)
node - The existing node.newNode - The new node.
public void insert(ListNode node,
ListNode newNode)
node - The existing node.newNode - The new node.public ListNode getFirst()
public ListNode getLast()
public int size()
public void clear()
public ListEnumeration elements()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||