Is there a PriorityQueue implementation with fixed capacity and custom comparator?

后端 未结 9 2486
后悔当初
后悔当初 2020-11-28 05:59

Related questions:

  • Java PriorityQueue with fixed size
  • How do I use a PriorityQueue?
  • get indexes of n smallest elements in an array
9条回答
  •  自闭症患者
    2020-11-28 06:51

    How can you say Lucene's doesn't support a custom comparator?

    Its abstract and you must implement the abstract method lessThan(T a, T b)

提交回复
热议问题