MinMaxPriorityQueue.Builder<B> |
MinMaxPriorityQueue.Builder.expectedSize(int expectedSize) |
Configures this builder to build min-max priority queues with an initial expected size of
expectedSize .
|
static MinMaxPriorityQueue.Builder<Comparable> |
MinMaxPriorityQueue.expectedSize(int expectedSize) |
Creates and returns a new builder, configured to build MinMaxPriorityQueue instances
sized appropriately to hold expectedSize elements.
|
MinMaxPriorityQueue.Builder<B> |
MinMaxPriorityQueue.Builder.maximumSize(int maximumSize) |
Configures this builder to build MinMaxPriorityQueue instances that are limited to
maximumSize elements.
|
static MinMaxPriorityQueue.Builder<Comparable> |
MinMaxPriorityQueue.maximumSize(int maximumSize) |
Creates and returns a new builder, configured to build MinMaxPriorityQueue instances
that are limited to maximumSize elements.
|
static <B> MinMaxPriorityQueue.Builder<B> |
MinMaxPriorityQueue.orderedBy(Comparator<B> comparator) |
Creates and returns a new builder, configured to build MinMaxPriorityQueue instances
that use comparator to determine the least and greatest elements.
|