Package ch.cern.dirq
Class QueueSimple.QueueSimpleIterator
java.lang.Object
ch.cern.dirq.QueueSimple.QueueSimpleIterator
- Enclosing class:
QueueSimple
Iterator for the simple directory queue (private).
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionQueueSimpleIterator
(QueueSimple queue) Constructor for the simple directory queue iterator. -
Method Summary
Modifier and TypeMethodDescriptionprivate boolean
Helper method to build the list of elements to iterate over.boolean
hasNext()
Returns true if the iteration has more elements.next()
Returns the next element in the iteration.void
remove()
Removes from the underlying collection the last element returned by this iterator.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Iterator
forEachRemaining
-
Field Details
-
itQueue
-
itDirs
-
itElts
-
-
Constructor Details
-
QueueSimpleIterator
QueueSimpleIterator(QueueSimple queue) Constructor for the simple directory queue iterator.- Parameters:
queue
- queue to be iterated on
-
-
Method Details
-
buildElements
private boolean buildElements()Helper method to build the list of elements to iterate over. -
hasNext
public boolean hasNext()Returns true if the iteration has more elements. -
next
Returns the next element in the iteration. -
remove
public void remove()Removes from the underlying collection the last element returned by this iterator.
-