|
Copyright 2002 by aragost | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
A general queue interface. A queue is a data structure that support add and remove. The implementation decide the semantic of the remove (i.e. what element is removed) Two typically implementations are LIFO and FIFO.
| Method Summary | |
boolean |
add(java.lang.Object obj)
Add the specified Object to the queue. |
java.lang.Object |
peek()
Return the next Object from the queue, that is the Object that will be returned by the remove method. |
java.lang.Object |
remove()
Remove the next Object from the queue. |
| Methods inherited from interface java.util.Collection |
addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray |
| Method Detail |
public boolean add(java.lang.Object obj)
add in interface java.util.Collectionobj - The Object to add to the queue
public java.lang.Object remove()
public java.lang.Object peek()
throws java.lang.UnsupportedOperationException
java.lang.UnsupportedOperationException
|
Copyright 2002 by aragost | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||