void | clear() Clear all elements from queue. |
void | insert(Object element) Insert an element into queue. |
boolean | isEmpty() Test if queue is empty. |
Object | peek() Return element on top of heap but don't remove it. |
Object | pop() Return element on top of heap and remove it. |
public void clear()
public void insert(Object element)
- if the specified element's
type prevents it from being compared to other items in the queue to
determine its relative priority.public boolean isEmpty()
public Object peek()
- if isEmpty() == truepublic Object pop()
- if isEmpty() == true
Buffer
interface.