Interface ObjectHeap.UnsortedIter<K>
-
- Type Parameters:
K
- Key type
- All Superinterfaces:
Iter
- All Known Implementing Classes:
ComparableMaxHeap.UnsortedIter
,ComparableMinHeap.UnsortedIter
,ComparatorMaxHeap.UnsortedIter
,ComparatorMinHeap.UnsortedIter
- Enclosing interface:
- ObjectHeap<K>
public static interface ObjectHeap.UnsortedIter<K> extends Iter
Unsorted iterator - in heap order. Does not poll the heap.for (ObjectHeap.UnsortedIter<K> iter = heap.unsortedIter(); iter.valid(); iter.next()) { doSomething(iter.get()); }
- Author:
- Erich Schubert
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description K
get()
Get the iterators current object.
-
-
-
Method Detail
-
get
K get()
Get the iterators current object.- Returns:
- Current object
-
-