public class BoundedPriorityQueue<E>
extends java.util.PriorityQueue<E>
Constructor and Description |
---|
BoundedPriorityQueue(int capacity,
java.util.Comparator<E> comparator)
Creates a new bounded FIFO hash map
|
Modifier and Type | Method and Description |
---|---|
boolean |
add(E e) |
clear, comparator, contains, iterator, offer, peek, poll, remove, size, spliterator, toArray, toArray
containsAll, isEmpty, removeAll, retainAll, toString
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
public BoundedPriorityQueue(int capacity, java.util.Comparator<E> comparator)
capacity
- the capcaity of the hash mapcomparator
-