de.lmu.ifi.dbs.elki.utilities.datastructures.heap
Class Heap.Itr
java.lang.Object
de.lmu.ifi.dbs.elki.utilities.datastructures.heap.Heap.Itr
- All Implemented Interfaces:
- Iterator<E>
- Enclosing class:
- Heap<E>
protected final class Heap.Itr
- extends Object
- implements Iterator<E>
Iterator over queue elements. No particular order (i.e. heap order!)
Field Summary |
private int |
cursor
Cursor position |
private int |
expectedModCount
Modification counter this iterator is valid for. |
Constructor Summary |
protected |
Heap.Itr()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
cursor
private int cursor
- Cursor position
expectedModCount
private int expectedModCount
- Modification counter this iterator is valid for.
Heap.Itr
protected Heap.Itr()
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interface Iterator<E>
next
public E next()
- Specified by:
next
in interface Iterator<E>
remove
public void remove()
- Specified by:
remove
in interface Iterator<E>