FRAMES NO FRAMES | |||||||
| |||||||
SUMMARY: IMPORT | CONSTANT | MEMBER | ACTION | DETAIL: IMPORT | CONSTANT | MEMBER | ACTION |
Action summary | |
---|---|
integer |
capacity()
Return the capacity of this circular buffer. |
void |
clear()
Remove all the values in the buffer. |
com.apamax.containers.FixedSizeCircularBuffer | static create(integer size)
Create an empty buffer of a particular size. |
boolean |
empty()
Returns true if the buffer is empty. |
boolean |
full()
Returns true if the buffer is full (size() == capacity()). |
any |
get(integer offs)
Return the item currently at the given position in the buffer. |
sequence<any> |
getData()
Return the underlying sequence containing the circular buffer in order. This is returned by reference. You should not modify the return value, only clone it or iterate over it. |
void |
push(any val)
Push a value onto the buffer. If the buffer is full, removes the oldest value. |
integer |
size()
Return the number of values in the buffer. |
Action detail |
---|
integer capacity()Return the capacity of this circular buffer.
void clear()Remove all the values in the buffer.
com.apamax.containers.FixedSizeCircularBuffer static create(integer size)Create an empty buffer of a particular size.
boolean empty()Returns true if the buffer is empty.
boolean full()Returns true if the buffer is full (size() == capacity()).
any get(integer offs)Return the item currently at the given position in the buffer.
sequence<any> getData()Return the underlying sequence containing the circular buffer in order. This is returned by reference. You should not modify the return value, only clone it or iterate over it.
void push(any val)Push a value onto the buffer. If the buffer is full, removes the oldest value.
integer size()Return the number of values in the buffer.
FRAMES NO FRAMES | |||||||
| |||||||
SUMMARY: IMPORT | CONSTANT | MEMBER | ACTION | DETAIL: IMPORT | CONSTANT | MEMBER | ACTION |