public class TopOrdAndFloatQueue extends PriorityQueue<TopOrdAndFloatQueue.OrdAndValue>
Modifier and Type | Class and Description |
---|---|
static class |
TopOrdAndFloatQueue.OrdAndValue
Holds a single entry.
|
Constructor and Description |
---|
TopOrdAndFloatQueue(int topN)
Sole constructor.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
lessThan(TopOrdAndFloatQueue.OrdAndValue a,
TopOrdAndFloatQueue.OrdAndValue b)
Determines the ordering of objects in this priority queue.
|
add, clear, getHeapArray, getSentinelObject, insertWithOverflow, pop, size, top, updateTop
protected boolean lessThan(TopOrdAndFloatQueue.OrdAndValue a, TopOrdAndFloatQueue.OrdAndValue b)
PriorityQueue
lessThan
in class PriorityQueue<TopOrdAndFloatQueue.OrdAndValue>
true
iff parameter a is less than parameter b.Copyright © 2000-2016 The Apache Software Foundation. All Rights Reserved.