calhoun.analysis.crf.solver
Class RecyclingBuffer<T>
java.lang.Object
calhoun.analysis.crf.solver.RecyclingBuffer<T>
public final class RecyclingBuffer<T>
- extends java.lang.Object
Utility class that implements a FIFO buffer with constant time adds, removes,
and accesses to any position using a circular buffer in an array.
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
array
public T[] array
length
public int length
currentStart
public int currentStart
RecyclingBuffer
public RecyclingBuffer(T[] arg)
get
public final T get(int i)
set
public final void set(int i,
T val)
addFirst
public final T addFirst(T t)
getTotalSize
public final int getTotalSize()