com.browseengine.bobo.util
Class BoundedPriorityQueue<E>

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractQueue<E>
          extended by java.util.PriorityQueue<E>
              extended by 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

Constructor Summary
BoundedPriorityQueue(Comparator<? super E> comparator, int maxSize)
           
BoundedPriorityQueue(int maxSize)
           
 
Method Summary
 boolean offer(E o)
           
 
Methods inherited from class java.util.PriorityQueue
add, clear, comparator, contains, iterator, peek, poll, remove, size, toArray, toArray
 
Methods inherited from class java.util.AbstractQueue
addAll, element, remove
 
Methods inherited from class java.util.AbstractCollection
containsAll, isEmpty, removeAll, retainAll, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Collection
containsAll, equals, hashCode, isEmpty, removeAll, retainAll
 

Constructor Detail

BoundedPriorityQueue

public BoundedPriorityQueue(int maxSize)

BoundedPriorityQueue

public BoundedPriorityQueue(Comparator<? super E> comparator,
                            int maxSize)
Method Detail

offer

public boolean offer(E o)
Specified by:
offer in interface Queue<E>
Overrides:
offer in class PriorityQueue<E>


Copyright © 2011. All Rights Reserved.