soot.util.queue
Class QueueReader
java.lang.Object
|
+--soot.util.queue.QueueReader
- public class QueueReader
- extends java.lang.Object
- implements java.util.Iterator
A queue of Object's. One can add objects to the queue, and they are
later read by a QueueReader. One can create arbitrary numbers of
QueueReader's for a queue, and each one receives all the Object's that
are added. Only objects that have not been read by all the QueueReader's
are kept. A QueueReader only receives the Object's added to the queue
after the QueueReader was created.
Method Summary |
java.lang.Object |
clone()
|
boolean |
hasNext()
Returns true iff there is currently another object in the queue. |
java.lang.Object |
next()
Returns (and removes) the next object in the queue, or null if
there are none. |
void |
remove()
|
Methods inherited from class java.lang.Object |
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
next
public final java.lang.Object next()
- Returns (and removes) the next object in the queue, or null if
there are none.
- Specified by:
- next in interface java.util.Iterator
hasNext
public final boolean hasNext()
- Returns true iff there is currently another object in the queue.
- Specified by:
- hasNext in interface java.util.Iterator
remove
public final void remove()
- Specified by:
- remove in interface java.util.Iterator
clone
public final java.lang.Object clone()
- Overrides:
- clone in class java.lang.Object