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

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

Introduction

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

The text is from its open source code.

Field

intsize
The number of elements currently in this buffer.

Constructor

PriorityBuffer()
Constructs a new empty buffer that sorts in ascending order by the natural order of the objects added.
PriorityBuffer(boolean ascendingOrder, Comparator comparator)
Constructs a new empty buffer specifying the sort order and comparator.
PriorityBuffer(int capacity, Comparator comparator)
Constructs a new empty buffer that sorts in ascending order using the specified comparator and initial capacity.
PriorityBuffer(int capacity, boolean ascendingOrder)
Constructs a new empty buffer that specifying initial capacity and sort order, using the natural order of the objects added.
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(Object element)
Adds an element to the buffer.
Objectget()
Gets the next element to be removed without actually removing it (peek).
booleanisEmpty()
Iteratoriterator()
Returns an iterator over this heap's elements.
Objectremove()
Gets and removes the next element (pop).