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