Example usage for Java org.apache.commons.collections.buffer PriorityBuffer fields, constructors, methods, implement or subclass
The text is from its open source code.
int | size The number of elements currently in this buffer. |
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. |
boolean | add(Object element) Adds an element to the buffer. |
Object | get() Gets the next element to be removed without actually removing it (peek). |
boolean | isEmpty() |
Iterator | iterator() Returns an iterator over this heap's elements. |
Object | remove() Gets and removes the next element (pop). |