BinaryHeap, SynchronizedPriorityQueuepublic interface PriorityQueue
This interface is now replaced by the Buffer interface.
| Modifier and Type | Method | Description |
|---|---|---|
void |
clear() |
Deprecated.
Clear all elements from queue.
|
void |
insert(java.lang.Object element) |
Deprecated.
Insert an element into queue.
|
boolean |
isEmpty() |
Deprecated.
Test if queue is empty.
|
java.lang.Object |
peek() |
Deprecated.
Return element on top of heap but don't remove it.
|
java.lang.Object |
pop() |
Deprecated.
Return element on top of heap and remove it.
|
void clear()
boolean isEmpty()
void insert(java.lang.Object element)
element - the element to be insertedjava.lang.ClassCastException - if the specified element's
type prevents it from being compared to other items in the queue to
determine its relative priority.java.lang.Object peek()
java.util.NoSuchElementException - if isEmpty() == truejava.lang.Object pop()
java.util.NoSuchElementException - if isEmpty() == trueCopyright © 2001-2018 Apache Software Foundation. All Rights Reserved.