|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectm865.datastructures.QueueLL.QueueLLIterator<T>
public class QueueLL.QueueLLIterator<T>
An iterator for a Linked List queue.
Constructor Summary | |
---|---|
protected |
QueueLL.QueueLLIterator(QueueLL<T> q)
Constructor for a QueueLL iterator |
Method Summary | |
---|---|
boolean |
hasNext()
Determines if there is an object in queue that can be returned by next(). |
T |
next()
Returns the next object in queue, if there is one. |
void |
remove()
This method is an optional method of the Iterator interface. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected QueueLL.QueueLLIterator(QueueLL<T> q)
s
- the queue for this iterator.Method Detail |
---|
public boolean hasNext()
hasNext
in interface java.util.Iterator<T>
public T next()
next
in interface java.util.Iterator<T>
public void remove()
remove
in interface java.util.Iterator<T>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |