|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Required methods for the Queue ADT.
Method Summary | |
Object |
dequeue()
Removes and returns the front object on this. |
void |
enqueue(Object anObject)
Enqueues the given object onto this. |
Object |
front()
Returns the front object on this. |
boolean |
isEmpty()
Returns whether or not this is empty. |
int |
size()
Returns the number of objects on this. |
Method Detail |
public void enqueue(Object anObject)
anObject
- object to enqueuepublic Object dequeue()
public Object front()
public int size()
public boolean isEmpty()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |