Uses of Class
com.google.common.collect.MinMaxPriorityQueue.Builder
Package
Description
Collection interfaces and implementations, and other utilities for collections.
-
Uses of MinMaxPriorityQueue.Builder in com.google.common.collect
Modifier and TypeMethodDescriptionMinMaxPriorityQueue.Builder.expectedSize
(int expectedSize) Configures this builder to build min-max priority queues with an initial expected size ofexpectedSize
.MinMaxPriorityQueue.expectedSize
(int expectedSize) Creates and returns a new builder, configured to buildMinMaxPriorityQueue
instances sized appropriately to holdexpectedSize
elements.MinMaxPriorityQueue.Builder.maximumSize
(int maximumSize) Configures this builder to buildMinMaxPriorityQueue
instances that are limited tomaximumSize
elements.MinMaxPriorityQueue.maximumSize
(int maximumSize) Creates and returns a new builder, configured to buildMinMaxPriorityQueue
instances that are limited tomaximumSize
elements.static <B> MinMaxPriorityQueue.Builder
<B> MinMaxPriorityQueue.orderedBy
(Comparator<B> comparator) Creates and returns a new builder, configured to buildMinMaxPriorityQueue
instances that usecomparator
to determine the least and greatest elements.