|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Queue
Interface definition of a general Queue.
Method Summary | |
---|---|
java.lang.Object |
dequeue()
Dequeues an object from the queue. |
void |
enqueue(java.lang.Object obj)
Enqueues an object to the queue. |
boolean |
isEmpty()
Checks is the queue is empty or not. |
int |
size()
Returns the number of objects in the queue. |
Method Detail |
---|
int size()
boolean isEmpty()
true
if the queue is empty, else false
void enqueue(java.lang.Object obj)
obj
- the object to enqueuejava.lang.Object dequeue()
null
if the queue is empty
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |