public interface ICircularBuffer<ELEMENT_TYPE>
| Modifier and Type | Method and Description |
|---|---|
void |
add(ELEMENT_TYPE element)
Adds an element to the end of buffer.
|
int |
capacity() |
void |
clear()
Clears the current buffer
|
ELEMENT_TYPE |
get(int index)
Gets the element at the specific index or null, if no element was added to the index before
|
int |
size()
The current size of the buffer.
|
int capacity()
int size()
void add(ELEMENT_TYPE element)
element - The element to add, may be nullELEMENT_TYPE get(int index)
index - The index (0 <= index < capacity)void clear()
Siehe auch Jowidgets Nutzerhandbuch