|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectinf.util.TreeOfListsDoublePriorityQueue.TreeOfListsDoublePriorityQueueIterator<T>
class TreeOfListsDoublePriorityQueue.TreeOfListsDoublePriorityQueueIterator<T>
This class represents an iterator for the elements in an TreeOfListsDoublePriorityQueue. Elements will be enumerated in order!
Field Summary | |
---|---|
(package private) java.util.Iterator<E> |
listElts
the iterator for the elements in the current list * |
(package private) java.util.Iterator<DoubleKeyTreeMap.DoubleKeyTreeEntry<java.util.LinkedList<E>>> |
treeElts
the iterator for the elements in the tree * |
Constructor Summary | |
---|---|
TreeOfListsDoublePriorityQueue.TreeOfListsDoublePriorityQueueIterator()
This constructor initializes an Iterator of the elements in the given priority queue. |
Method Summary | |
---|---|
boolean |
hasNext()
This function tests whether there are more elements to be enumerated. |
E |
next()
This function retrieves the next element in this Iterator. |
void |
remove()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
java.util.Iterator<DoubleKeyTreeMap.DoubleKeyTreeEntry<java.util.LinkedList<E>>> treeElts
java.util.Iterator<E> listElts
Constructor Detail |
---|
TreeOfListsDoublePriorityQueue.TreeOfListsDoublePriorityQueueIterator()
This constructor initializes an Iterator of the elements in the given priority queue.
Method Detail |
---|
public boolean hasNext()
This function tests whether there are more elements to be enumerated.
hasNext
in interface java.util.Iterator<E>
true
if and only if there are more elementspublic E next() throws java.util.NoSuchElementException
This function retrieves the next element in this Iterator.
next
in interface java.util.Iterator<E>
java.util.NoSuchElementException
- is thrown iff there are no more
elementspublic void remove()
remove
in interface java.util.Iterator<E>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |