| com.jamonapi.utils.BufferHolder
All known Subclasses: com.jamonapi.utils.NExtremeBufferHolder, com.jamonapi.utils.FIFOBufferHolder,
BufferHolder | public interface BufferHolder (Code) | | Interface used to add/remove values from a BufferList based on whether shouldReplaceWith(...)
returns true or not.
author: steve souza |
add | public void add(Object replaceWithObj)(Code) | | Add the passed object to the array if BufferList is not full or shouldReplaceWith returns true
|
getCollection | public List getCollection()(Code) | | Get the underlying collection
|
getOrderedCollection | public List getOrderedCollection()(Code) | | Get the Collection in sorted order
|
remove | public void remove(Object replaceWithObj)(Code) | | Remove the smallest element from the BufferList if the buffer is full and shouldReplaceWith(...)
returns true.
Parameters: replaceWithObj - |
setCollection | public void setCollection(List list)(Code) | | |
shouldReplaceWith | public boolean shouldReplaceWith(Object replaceWithObj)(Code) | | Returns true if this object is greater than the smallest value in the buffer
|
|
|