|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jcs.utils.struct.SingleLinkedList
public class SingleLinkedList
This is an basic thread safe single linked list. It provides very limited functionality. It is small and fast.
| Constructor Summary | |
|---|---|
SingleLinkedList()
|
|
| Method Summary | |
|---|---|
void |
addLast(java.lang.Object payload)
Adds an item to the end of the list. |
void |
clear()
Removes everything. |
int |
size()
Returns the number of elements in the list. |
java.lang.Object |
takeFirst()
Takes the first item off the list. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SingleLinkedList()
| Method Detail |
|---|
public java.lang.Object takeFirst()
public void addLast(java.lang.Object payload)
payload - public void clear()
public int size()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||