| |
|
| java.lang.Object com.jamonapi.utils.NExtremeBufferHolder com.jamonapi.NExtremeArrayBufferHolder
NExtremeArrayBufferHolder | public class NExtremeArrayBufferHolder extends NExtremeBufferHolder (Code) | | Buffer used to keep the last N recent array values based on the comparator. Note the Comparator must
be thread safe. It can also stored the last n recent values of ToArray objects. By using various Comparators
you can determine what should stay in the buffer and what should be removed. JAMon comes with a number of buffers
based on this class.
author: steve souza |
NExtremeArrayBufferHolder | public NExtremeArrayBufferHolder(JAMonArrayComparator comparator)(Code) | | Constructor that takes a JAMonArrayComparator that can be used to determine
when values should be removed from and added to the array. This can be used to
decide what to do to values in the buffer based on multiple columns.
Parameters: comparator - |
NExtremeArrayBufferHolder | public NExtremeArrayBufferHolder(boolean naturalOrder, int colToCompare)(Code) | | Pass true for natural order, and false for reverse order and column number in Object[] to compare starting at 0
|
copy | public BufferHolder copy()(Code) | | Factory method that returns a usable copy of this object
|
setComparator | public void setComparator(Comparator comparator)(Code) | | Note the only valid Comparator to be passed is JAMonArrayComparator
|
|
|
|