public abstract class PriorityQueue
extends java.lang.Object
Constructor and Description |
---|
PriorityQueue() |
Modifier and Type | Method and Description |
---|---|
abstract void |
clear()
Removes all elements from the priority queue.
|
abstract Iterator |
iterator()
Returns an iterator of the values in this priority queue.
|
abstract void |
offer(char value)
Inserts the value into this priority queue.
|
abstract char |
peek()
Retrieves, but does not remove, the head of this queue.
|
abstract char |
poll()
Retrieves and removes the head of this priority queue.
|
abstract boolean |
remove(char value)
Removes a single instance of the specified character from this queue, if it is present.
|
abstract int |
size()
Returns the number of values in this priority queue.
|
public abstract void offer(char value)
public abstract char poll()
public abstract int size()
public abstract Iterator iterator()
public abstract void clear()
public abstract char peek()
public abstract boolean remove(char value)
true
if the value is present in the priority queue, otherwise false
.