E
- @StoreNotUseStandardSerialization @StorableClass public class PPriorityQueue<E> extends PAbstractQueue<E> implements Serializable
Modifier | Constructor and Description |
---|---|
|
PPriorityQueue() |
|
PPriorityQueue(Comparator<E> comparator) |
protected |
PPriorityQueue(IInstanceFactory instanceFactory) |
protected |
PPriorityQueue(IInstanceFactory instanceFactory,
Comparator<E> comparator) |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
Comparator<? super E> |
comparator() |
Iterator<E> |
iterator() |
static PPriorityQueue |
newInstance(IInstanceFactory instanceFactory) |
static PPriorityQueue |
newInstance(IInstanceFactory instanceFactory,
Comparator comparator) |
boolean |
offer(E element)
Inserts the specified element into this priority queue.
|
E |
peek() |
E |
poll() |
boolean |
remove(Object element)
Removes a single instance of the specified element from this queue, if it
is present.
|
int |
size() |
add, element, remove
addAll, contains, containsAll, isEmpty, removeAll, retainAll, toArray, toArray, toString
public PPriorityQueue()
protected PPriorityQueue(IInstanceFactory instanceFactory)
public PPriorityQueue(Comparator<E> comparator)
protected PPriorityQueue(IInstanceFactory instanceFactory, Comparator<E> comparator)
public static PPriorityQueue newInstance(IInstanceFactory instanceFactory)
public static PPriorityQueue newInstance(IInstanceFactory instanceFactory, Comparator comparator)
public boolean offer(E element)
public boolean remove(Object element)
remove
in interface Collection<E>
remove
in class PAbstractCollection<E>
public int size()
size
in interface Collection<E>
public void clear()
clear
in interface Collection<E>
clear
in class PAbstractCollection<E>
public Comparator<? super E> comparator()
Copyright © 2007-2012 Luc Peuvrier. All Rights Reserved.