| Modifier and Type | Field and Description |
|---|---|
| private final E[] | |
| private int | |
| private int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public int | |
| public synchronized E | |
| public synchronized <T> T[] |
| buffer | back to summary |
|---|---|
| private final E[] buffer | |
| size | back to summary |
|---|---|
| private int size | |
| writeIndex | back to summary |
|---|---|
| private int writeIndex | |
| CircularBuffer | back to summary |
|---|---|
public CircularBuffer(int size)
| |
| capacity | back to summary |
|---|---|
| public int capacity() | |
| insert | back to summary |
|---|---|
| public synchronized E insert(E object) | |
| toArray | back to summary |
|---|---|
| public synchronized <T> T[] toArray(Class<T[]> type) | |