com.browseengine.bobo.util
Class BoundedPriorityQueue<E>
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractQueue<E>
java.util.PriorityQueue<E>
com.browseengine.bobo.util.BoundedPriorityQueue<E>
- All Implemented Interfaces:
- Serializable, Iterable<E>, Collection<E>, Queue<E>
public class BoundedPriorityQueue<E>
- extends PriorityQueue<E>
- See Also:
- Serialized Form
|
Method Summary |
boolean |
offer(E o)
|
| Methods inherited from class java.util.PriorityQueue |
add, clear, comparator, contains, iterator, peek, poll, remove, size, toArray, toArray |
BoundedPriorityQueue
public BoundedPriorityQueue(int maxSize)
BoundedPriorityQueue
public BoundedPriorityQueue(Comparator<? super E> comparator,
int maxSize)
offer
public boolean offer(E o)
- Specified by:
offer in interface Queue<E>- Overrides:
offer in class PriorityQueue<E>
Copyright © 2011. All Rights Reserved.