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