|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectm865.datastructures.PriorityQueueAL.PriorityQueueALIterator
public class PriorityQueueAL.PriorityQueueALIterator
The iterator for this PriorityQueueAL class.
Constructor Summary | |
---|---|
PriorityQueueAL.PriorityQueueALIterator(PriorityQueueAL q)
Constructor for a PriorityQueueALIterator |
Method Summary | |
---|---|
boolean |
hasNext()
Determines if there is an object in the priority queue that can be returned by next(). |
Prioritizeable |
next()
Returns the next object in priority queue, if there is one. |
void |
remove()
Removes the last object returned by the iterator from the priority queue. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PriorityQueueAL.PriorityQueueALIterator(PriorityQueueAL q)
q
- The priority queue for this iterator.Method Detail |
---|
public boolean hasNext()
hasNext
in interface java.util.Iterator
public Prioritizeable next()
next
in interface java.util.Iterator
public void remove()
remove
in interface java.util.Iterator
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |