private static class ImmutableLeftistHeap.SortedIterator<T extends Comparable<T>> extends Object implements Iterator<T>
Modifier and Type | Field and Description |
---|---|
private ImmutableHeap<T> |
remainder |
Constructor and Description |
---|
ImmutableLeftistHeap.SortedIterator(ImmutableHeap<T> heap) |
private ImmutableHeap<T extends Comparable<T>> remainder
public ImmutableLeftistHeap.SortedIterator(ImmutableHeap<T> heap)
public boolean hasNext()
hasNext
in interface Iterator<T extends Comparable<T>>
public void remove()
remove
in interface Iterator<T extends Comparable<T>>