@Deprecated public interface Heap<E>
Modifier and Type | Method and Description |
---|---|
void |
add(E o)
Deprecated.
Adds the specified object to the heap.
|
void |
clear()
Deprecated.
Clears the contents of the heap.
|
E |
extract()
Deprecated.
Removes the smallest element from the heap and returns it.
|
E |
first()
Deprecated.
Returns the smallest element of the heap.
|
boolean |
isEmpty()
Deprecated.
Returns whether the heap is empty.
|
Iterator<E> |
iterator()
Deprecated.
Returns an iterator over the elements of the heap.
|
E |
last()
Deprecated.
Returns the largest element of the heap.
|
int |
size()
Deprecated.
Returns the size of the heap.
|
E extract()
E first()
E last()
void add(E o)
o
- The object to add to the heap.int size()
boolean isEmpty()
Iterator<E> iterator()
void clear()
Copyright © 2017 The Apache Software Foundation. All rights reserved.