Skip to content

Apache Lucene open-source search software

LUCENE-2931: Improved javadocs for PriorityQueue#lessThan

Simon Willnauerf1e792a661ff
diff --git a/lucene/src/java/org/apache/lucene/util/PriorityQueue.java b/lucene/src/java/org/apache/lucene/util/PriorityQueue.java
index d7311c5060e..27772052d9e 100644
--- a/lucene/src/java/org/apache/lucene/util/PriorityQueue.java
+++ b/lucene/src/java/org/apache/lucene/util/PriorityQueue.java
@@ -32,7 +32,9 @@ public abstract class PriorityQueue<T> {
protected T[] heap;
/** Determines the ordering of objects in this priority queue. Subclasses
- must define this one method. */
+ * must define this one method.
+ * @return <code>true</code> iff parameter <tt>a</tt> is less than parameter <tt>b</tt>.
+ */
protected abstract boolean lessThan(T a, T b);
/**