- All Implemented Interfaces:
- java.io.Serializable, scala.collection.generic.Clearable, scala.collection.generic.FilterMonadic<A,scala.collection.Iterable<A>>, scala.collection.generic.GenericTraversableTemplate<A,scala.collection.Iterable>, scala.collection.generic.Growable<A>, scala.collection.generic.HasNewBuilder<A,scala.collection.Iterable<A>>, scala.collection.GenIterable<A>, scala.collection.GenIterableLike<A,scala.collection.Iterable<A>>, scala.collection.GenTraversable<A>, scala.collection.GenTraversableLike<A,scala.collection.Iterable<A>>, scala.collection.GenTraversableOnce<A>, scala.collection.Iterable<A>, scala.collection.IterableLike<A,scala.collection.Iterable<A>>, scala.collection.Parallelizable<A,scala.collection.parallel.ParIterable<A>>, scala.collection.Traversable<A>, scala.collection.TraversableLike<A,scala.collection.Iterable<A>>, scala.collection.TraversableOnce<A>, scala.Equals
public class BoundedPriorityQueue<A>
extends Object
implements scala.collection.Iterable<A>, scala.collection.generic.Growable<A>, java.io.Serializable
Bounded priority queue. This class wraps the original PriorityQueue
class and modifies it such that only the top K elements are retained.
The top K elements are defined by an implicit Ordering[A].
- See Also:
- Serialized Form