|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectat.jku.ssw.PriorityQueue
public abstract class PriorityQueue
An unbounded priority queue based on a priority heap.
Constructor Summary | |
---|---|
PriorityQueue()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PriorityQueue()
Method Detail |
---|
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
.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |