Java com.google.common.collect MinMaxPriorityQueue fields, constructors, methods, implement or subclass

Example usage for Java com.google.common.collect MinMaxPriorityQueue fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for com.google.common.collect MinMaxPriorityQueue.

The text is from its open source code.

Field

Method

booleanadd(E element)
Adds the given element to this queue.
booleanaddAll(Collection newElements)
voidclear()
MinMaxPriorityQueuecreate()
Creates a new min-max priority queue with default settings: natural order, no maximum size, no initial contents, and an initial expected size of 11.
BuilderexpectedSize(int expectedSize)
Creates and returns a new builder, configured to build MinMaxPriorityQueue instances sized appropriately to hold expectedSize elements.
Iteratoriterator()
Returns an iterator over the elements contained in this collection, in no particular order.
booleanoffer(E element)
Adds the given element to this queue.
BuilderorderedBy(Comparator comparator)
Creates and returns a new builder, configured to build MinMaxPriorityQueue instances that use comparator to determine the least and greatest elements.
Epeek()
EpeekFirst()
Retrieves, but does not remove, the least element of this queue, or returns null if the queue is empty.
EpeekLast()
Retrieves, but does not remove, the greatest element of this queue, or returns null if the queue is empty.
Epoll()
EpollFirst()
Removes and returns the least element of this queue, or returns null if the queue is empty.
EpollLast()
Removes and returns the greatest element of this queue, or returns null if the queue is empty.
EremoveFirst()
Removes and returns the least element of this queue.
EremoveLast()
Removes and returns the greatest element of this queue.