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