|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectQueue2
Implements a simple queue
Constructor Summary | |
Queue2()
|
Method Summary | |
Object |
peek()
Peek at, but don't remove, top of queue |
Object |
pop()
Pop an object from the Queue |
void |
push(Object element)
Push an object onto the Queue |
int |
size()
Return the size of a queue |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Queue2()
Method Detail |
public void push(Object element)
public Object peek()
public Object pop()
public int size()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |