Package | Description |
---|---|
org.apache.commons.collections4.list |
This package contains implementations of the
List interface. |
Modifier and Type | Field and Description |
---|---|
protected AbstractLinkedList.Node<E> |
AbstractLinkedList.LinkedListIterator.current
The last node that was returned by
AbstractLinkedList.LinkedListIterator.next() or AbstractLinkedList.LinkedListIterator.previous() . |
protected AbstractLinkedList.Node<E> |
AbstractLinkedList.Node.next
A pointer to the node after this node
|
protected AbstractLinkedList.Node<E> |
AbstractLinkedList.LinkedListIterator.next
The node that will be returned by
AbstractLinkedList.LinkedListIterator.next() . |
protected AbstractLinkedList.Node<E> |
AbstractLinkedList.Node.previous
A pointer to the node before this node
|
Modifier and Type | Method and Description |
---|---|
protected AbstractLinkedList.Node<E> |
AbstractLinkedList.createHeaderNode()
Creates a new node with previous, next and element all set to null.
|
protected AbstractLinkedList.Node<E> |
AbstractLinkedList.createNode(E value)
Creates a new node with the specified properties.
|
protected AbstractLinkedList.Node<E> |
NodeCachingLinkedList.createNode(E value)
Creates a new node, either by reusing one from the cache or creating
a new one.
|
protected AbstractLinkedList.Node<E> |
AbstractLinkedList.LinkedListIterator.getLastNodeReturned()
Gets the last node returned.
|
protected AbstractLinkedList.Node<E> |
AbstractLinkedList.Node.getNextNode()
Gets the next node.
|
protected AbstractLinkedList.Node<E> |
AbstractLinkedList.getNode(int index,
boolean endMarkerAllowed)
Gets the node at a particular index.
|
protected AbstractLinkedList.Node<E> |
NodeCachingLinkedList.getNodeFromCache()
Gets a node from the cache.
|
protected AbstractLinkedList.Node<E> |
AbstractLinkedList.Node.getPreviousNode()
Gets the previous node.
|
Modifier and Type | Method and Description |
---|---|
protected void |
AbstractLinkedList.addNode(AbstractLinkedList.Node<E> nodeToInsert,
AbstractLinkedList.Node<E> insertBeforeNode)
Inserts a new node into the list.
|
protected void |
AbstractLinkedList.addNode(AbstractLinkedList.Node<E> nodeToInsert,
AbstractLinkedList.Node<E> insertBeforeNode)
Inserts a new node into the list.
|
protected void |
CursorableLinkedList.addNode(AbstractLinkedList.Node<E> nodeToInsert,
AbstractLinkedList.Node<E> insertBeforeNode)
Inserts a new node into the list.
|
protected void |
CursorableLinkedList.addNode(AbstractLinkedList.Node<E> nodeToInsert,
AbstractLinkedList.Node<E> insertBeforeNode)
Inserts a new node into the list.
|
protected void |
AbstractLinkedList.addNodeAfter(AbstractLinkedList.Node<E> node,
E value)
Creates a new node with the specified object as its
value and inserts it after node . |
protected void |
AbstractLinkedList.addNodeBefore(AbstractLinkedList.Node<E> node,
E value)
Creates a new node with the specified object as its
value and inserts it before node . |
protected void |
NodeCachingLinkedList.addNodeToCache(AbstractLinkedList.Node<E> node)
Adds a node to the cache, if the cache isn't full.
|
protected void |
CursorableLinkedList.broadcastNodeChanged(AbstractLinkedList.Node<E> node)
Informs all of my registered cursors that the specified
element was changed.
|
protected void |
CursorableLinkedList.broadcastNodeInserted(AbstractLinkedList.Node<E> node)
Informs all of my registered cursors that the specified
element was just added to my list.
|
protected void |
CursorableLinkedList.broadcastNodeRemoved(AbstractLinkedList.Node<E> node)
Informs all of my registered cursors that the specified
element was just removed from my list.
|
protected void |
CursorableLinkedList.Cursor.nodeChanged(AbstractLinkedList.Node<E> node)
Handle event from the list when a node has changed.
|
protected void |
CursorableLinkedList.Cursor.nodeInserted(AbstractLinkedList.Node<E> node)
Handle event from the list when a node has been added.
|
protected void |
CursorableLinkedList.Cursor.nodeRemoved(AbstractLinkedList.Node<E> node)
Handle event from the list when a node has been removed.
|
protected void |
AbstractLinkedList.removeNode(AbstractLinkedList.Node<E> node)
Removes the specified node from the list.
|
protected void |
CursorableLinkedList.removeNode(AbstractLinkedList.Node<E> node)
Removes the specified node from the list.
|
protected void |
NodeCachingLinkedList.removeNode(AbstractLinkedList.Node<E> node)
Removes the node from the list, storing it in the cache for reuse
if the cache is not yet full.
|
protected void |
AbstractLinkedList.Node.setNextNode(AbstractLinkedList.Node<E> next)
Sets the next node.
|
protected void |
AbstractLinkedList.Node.setPreviousNode(AbstractLinkedList.Node<E> previous)
Sets the previous node.
|
protected void |
AbstractLinkedList.updateNode(AbstractLinkedList.Node<E> node,
E value)
Updates the node with a new value.
|
protected void |
CursorableLinkedList.updateNode(AbstractLinkedList.Node<E> node,
E value)
Updates the node with a new value.
|
Constructor and Description |
---|
Node(AbstractLinkedList.Node<E> previous,
AbstractLinkedList.Node<E> next,
E value)
Constructs a new node.
|
Node(AbstractLinkedList.Node<E> previous,
AbstractLinkedList.Node<E> next,
E value)
Constructs a new node.
|
Copyright © 2001–2019 The Apache Software Foundation. All rights reserved.