|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.globus.wsrf.utils.cache.LinkedNodeList
public class LinkedNodeList
Special purpose double linked list implementation. Not for general use
| Nested Class Summary | |
|---|---|
static class |
LinkedNodeList.Node
|
private static class |
LinkedNodeList.NodeIterator
|
| Field Summary | |
|---|---|
private LinkedNodeList.Node |
head
|
private int |
size
|
private LinkedNodeList.Node |
tail
|
| Constructor Summary | |
|---|---|
LinkedNodeList()
|
|
| Method Summary | |
|---|---|
void |
add(LinkedNodeList.Node node)
Adds a node to the end of the list. |
void |
clear()
|
int |
computeSize()
|
LinkedNodeList.Node |
createNode()
|
LinkedNodeList.Node |
createNode(java.lang.Object value)
|
LinkedNodeList.Node |
getFirst()
Returns the first node in the list. |
LinkedNodeList.Node |
getLast()
Returns the last node in the list. |
boolean |
isEmpty()
|
java.util.Iterator |
iterator()
When iterating must synchronize on the LinkedNodeList instance. |
void |
moveToEnd(LinkedNodeList.Node node)
Removes node from the list and adds it to the end of the list. |
void |
remove(LinkedNodeList.Node node)
Removes the node from the list. |
LinkedNodeList.Node |
removeFirst()
Removes and returns the first node in the list. |
LinkedNodeList.Node |
removeLast()
Removes and returns the last node in the list. |
java.util.Iterator |
reverseIterator()
When iterating must synchronize on the LinkedNodeList instance. |
int |
size()
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private LinkedNodeList.Node head
private LinkedNodeList.Node tail
private int size
| Constructor Detail |
|---|
public LinkedNodeList()
| Method Detail |
|---|
public LinkedNodeList.Node createNode()
public LinkedNodeList.Node createNode(java.lang.Object value)
public void moveToEnd(LinkedNodeList.Node node)
public int computeSize()
public java.util.Iterator reverseIterator()
public java.util.Iterator iterator()
public void clear()
public boolean isEmpty()
public int size()
public void add(LinkedNodeList.Node node)
public LinkedNodeList.Node getFirst()
public LinkedNodeList.Node getLast()
public LinkedNodeList.Node removeFirst()
public LinkedNodeList.Node removeLast()
public void remove(LinkedNodeList.Node node)
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||