public interface PriorityQueue
This interface is now replaced by the Buffer interface.
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Deprecated.
Clear all elements from queue.
|
void |
insert(Object element)
Deprecated.
Insert an element into queue.
|
boolean |
isEmpty()
Deprecated.
Test if queue is empty.
|
Object |
peek()
Deprecated.
Return element on top of heap but don't remove it.
|
Object |
pop()
Deprecated.
Return element on top of heap and remove it.
|
void clear()
boolean isEmpty()
void insert(Object element)
element - the element to be insertedClassCastException - if the specified element's
type prevents it from being compared to other items in the queue to
determine its relative priority.Object peek()
NoSuchElementException - if isEmpty() == trueObject pop()
NoSuchElementException - if isEmpty() == trueCopyright © 2001–2015 The Apache Software Foundation. All rights reserved.