Package | Description |
---|---|
org.crosswire.common.util |
A collection of various generic utility classes.
|
Modifier and Type | Field and Description |
---|---|
private ChainLink<E> |
ChainLink.left |
private ChainLink<E> |
ChainLink.right |
Modifier and Type | Method and Description |
---|---|
ChainLink<E> |
ChainLink.findHead()
Find the head of the chain.
|
ChainLink<E> |
ChainLink.findTail()
Find the tail of the chain.
|
ChainLink<E> |
ChainLink.getLeft()
Get the node to the left of this node.
|
ChainLink<E> |
ChainLink.getRight()
Get the node to the right of this node.
|
ChainLink<E> |
ChainLink.locate(E element,
Comparator<E> comparator)
Locate the node or the closest node in the chain using the comparator.
|
Modifier and Type | Method and Description |
---|---|
void |
ChainLink.addAfter(ChainLink<E> node)
Add this node after the given node.
|
void |
ChainLink.addBefore(ChainLink<E> node)
Add this node before the given node.
|
void |
ChainLink.addFirst(ChainLink<E> anyNode)
Add this node as the head of the chain.
|
void |
ChainLink.addLast(ChainLink<E> anyNode)
Add this node as the tail of the chain.
|