|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectalice.util.LinkedQueue
classic queue managed with head and tail references
| Field Summary | |
LinkedList |
head
queue head |
LinkedList |
tail
queue tail |
| Constructor Summary | |
LinkedQueue()
build an empty queue |
|
| Method Summary | |
void |
insFirst(java.lang.Object o)
head insert |
void |
insLast(java.lang.Object o)
tail instert |
boolean |
isEmptyQueue()
|
int |
length()
|
java.lang.Object |
remFirst()
remove the first element |
java.util.List |
toList()
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public LinkedList head
public LinkedList tail
| Constructor Detail |
public LinkedQueue()
| Method Detail |
public void insFirst(java.lang.Object o)
public void insLast(java.lang.Object o)
public java.lang.Object remFirst()
public int length()
public boolean isEmptyQueue()
public java.util.List toList()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||