|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.drools.util.LinkedList
org.drools.util.MultiLinkedList
MultiLinkedList A linked list where each node has a reference to the list itself and to a child node.

| Constructor Summary | |
MultiLinkedList()
|
|
| Method Summary | |
void |
add(MultiLinkedListNode node)
Add a MultiLinkedListNode to the list.
|
void |
remove(MultiLinkedListNode node)
Removes a MultiLinkedListNode from the list.
|
| Methods inherited from class org.drools.util.LinkedList |
add, clear, getFirst, getLast, isEmpty, iterator, remove, removeFirst, removeLast, size |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public MultiLinkedList()
| Method Detail |
public void add(MultiLinkedListNode node)
MultiLinkedListNode to the list.
If the MultiLinkedList is empty then the first and
last nodes are set to the added node.
node - The LinkedListNode to be addedpublic void remove(MultiLinkedListNode node)
MultiLinkedListNode from the list.
This works by attach the previous reference to the child reference.
When the node to be removed is the first node it calls removeFirst().
When the node to be removed is the last node
it calls removeLast().
node - The LinkedListNode to be removed.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||