public abstract class QueueIterator extends Object implements Iterator<String>
| Constructor and Description |
|---|
QueueIterator(Queue queue)
Constructor which creates an iterator over the given queue.
|
| Modifier and Type | Method and Description |
|---|---|
abstract boolean |
buildElements()
Collect the elements to be browsed.
|
boolean |
hasNext()
Return true if there are still elements to be iterated.
|
String |
next()
Return the next element to be iterated.
|
void |
remove()
Make sure visited element is removed from the list of
iterable items.
|
public QueueIterator(Queue queue)
queue - the queue over which the iterator should be createdpublic boolean hasNext()
public abstract boolean buildElements()
public String next()
Copyright © 2012. All Rights Reserved.