public static final class Lookup.LookupPriorityQueue extends PriorityQueue<Lookup.LookupResult>
PriorityQueue
collecting a fixed size of high priority Lookup.LookupResult
Constructor | Description |
---|---|
LookupPriorityQueue(int size) |
Modifier and Type | Method | Description |
---|---|---|
Lookup.LookupResult[] |
getResults() |
Returns the top N results in descending order.
|
protected boolean |
lessThan(Lookup.LookupResult a,
Lookup.LookupResult b) |
Determines the ordering of objects in this priority queue.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
add, clear, getHeapArray, getSentinelObject, initialize, insertWithOverflow, pop, size, top, updateTop
protected boolean lessThan(Lookup.LookupResult a, Lookup.LookupResult b)
PriorityQueue
lessThan
in class PriorityQueue<Lookup.LookupResult>
true
iff parameter a is less than parameter b.public Lookup.LookupResult[] getResults()
Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.