java.util

Class PriorityQueue<E>

public class PriorityQueue<E> extends AbstractQueue<E> implements Serializable

Since: 1.5

Constructor Summary
PriorityQueue()
PriorityQueue(Collection<? extends E> c)
PriorityQueue(int cap)
PriorityQueue(int cap, Comparator<? super E> comp)
PriorityQueue(PriorityQueue<? extends E> c)
PriorityQueue(SortedSet<? extends E> c)
Method Summary
booleanaddAll(Collection<? extends E> c)
voidclear()
Comparator<? super E>comparator()
Iterator<E>iterator()
booleanoffer(E o)
Epeek()
Epoll()
booleanremove(Object o)
intsize()

Constructor Detail

PriorityQueue

public PriorityQueue()

PriorityQueue

public PriorityQueue(Collection<? extends E> c)

PriorityQueue

public PriorityQueue(int cap)

PriorityQueue

public PriorityQueue(int cap, Comparator<? super E> comp)

PriorityQueue

public PriorityQueue(PriorityQueue<? extends E> c)

PriorityQueue

public PriorityQueue(SortedSet<? extends E> c)

Method Detail

addAll

public boolean addAll(Collection<? extends E> c)

clear

public void clear()

comparator

public Comparator<? super E> comparator()

iterator

public Iterator<E> iterator()

offer

public boolean offer(E o)

peek

public E peek()

poll

public E poll()

remove

public boolean remove(Object o)

size

public int size()