Java org.apache.commons.collections15.buffer PriorityBuffer fields, constructors, methods, implement or subclass

Example usage for Java org.apache.commons.collections15.buffer PriorityBuffer fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.apache.commons.collections15.buffer PriorityBuffer.

The text is from its open source code.

Constructor

PriorityBuffer(Comparator comparator)
Constructs a new empty buffer that sorts in ascending order using the specified comparator.
PriorityBuffer(boolean ascendingOrder)
Constructs a new empty buffer specifying the sort order and using the natural order of the objects added.
PriorityBuffer(int capacity)
Constructs a new empty buffer that sorts in ascending order by the natural order of the objects added, specifying an initial capacity.

Method

booleanadd(E element)
Adds an element to the buffer.
Eget()
Gets the next element to be removed without actually removing it (peek).
Iteratoriterator()
Returns an iterator over this heap's elements.
Eremove()
Gets and removes the next element (pop).