|
JNodeOS v1.1.5 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--edu.utah.janos.util.LinkedList
A simple doubly linked list implementation, it exports the node object directly so adding and removing is fast
Inner Class Summary | |
static class |
LinkedList.Node
A node for use in doubly linked lists. |
Constructor Summary | |
LinkedList()
Create a linked list |
Method Summary | |
void |
addHead(LinkedList.Node node)
Add a node to the head of the list |
void |
addTail(LinkedList.Node node)
Add a node to the tail of the list |
LinkedList.Node |
getHead()
Get the head of the list |
LinkedList.Node |
getTail()
Get the tail of the list |
boolean |
isEmpty()
Returns true if the list is empty |
LinkedList.Node |
remHead()
Remove the node at the head of the list, returns null if its empty |
LinkedList.Node |
remTail()
Remove the node at the tail of the list, returns null if its empty |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public LinkedList()
Method Detail |
public final boolean isEmpty()
public final LinkedList.Node getHead()
public final LinkedList.Node getTail()
public void addHead(LinkedList.Node node)
public void addTail(LinkedList.Node node)
public LinkedList.Node remHead()
public LinkedList.Node remTail()
|
JNodeOS v1.1.5 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |