|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IQueue
Defines a minimal interface for any kind of collection that implements sequential queue accees.
Method Summary | |
---|---|
boolean |
add(java.lang.Object object)
Add an object to the queue. |
java.lang.Object |
getNext()
Remove the first object from the queue and return it. |
boolean |
hasNext()
Answer whether ther is at least another object in the queue. |
boolean |
isEmpty()
Answer true in case the queue is empty otherwise false. |
java.util.Iterator |
iterator()
Return an iterator with which to iterate over the queue objects. |
java.lang.Object |
remove(java.lang.Object object)
Remove an object from the queue. |
int |
size()
Answer the number of objects in the queue. |
Method Detail |
---|
boolean hasNext()
java.lang.Object getNext()
boolean add(java.lang.Object object)
object
- the object to be added
java.lang.Object remove(java.lang.Object object)
object
-
int size()
boolean isEmpty()
java.util.Iterator iterator()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |