Example usage for Java org.apache.commons.collections.buffer CircularFifoBuffer fields, constructors, methods, implement or subclass
The text is from its open source code.
CircularFifoBuffer(int size) Constructor that creates a buffer with the specified size. | |
CircularFifoBuffer(Collection coll) Constructor that creates a buffer from the specified collection. | |
CircularFifoBuffer() Constructor that creates a buffer with the default size of 32. |
boolean | add(Object element) If the buffer is full, the least recently added element is discarded so that a new element can be inserted. |
void | clear() Clears this buffer. |
Object | get() Returns the least recently inserted element in this buffer. |
boolean | isEmpty() Returns true if this buffer is empty; false otherwise. |
Iterator | iterator() Returns an iterator over this buffer's elements. |
Object | remove() Removes the least recently inserted element from this buffer. |
int | size() Returns the number of elements stored in the buffer. |
T[] | toArray(T[] a) |