MinMaxPriorityQueue (Guava: Google Core Libraries for Java 19.0-SNAPSHOT API)
A min-max priority queue can be configured with a maximum size. If so, each time the size of the queue exceeds that value, the queue automatically removes its greatest element according to its comparator (which might be the element that was just added ...
docs.guava-libraries.googlecod |