|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.freecompany.util.core.RingBuffer<T>
public class RingBuffer<T>
| Field Summary | |
|---|---|
protected T[] |
array
|
protected int |
read
|
protected int |
size
|
protected int |
write
|
| Constructor Summary | |
|---|---|
RingBuffer(int capacity)
|
|
| Method Summary | |
|---|---|
void |
add(T type)
|
java.util.Iterator<T> |
iterator()
|
T |
remove()
|
int |
size()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final T[] array
protected int size
protected int read
protected int write
| Constructor Detail |
|---|
public RingBuffer(int capacity)
| Method Detail |
|---|
public void add(T type)
public T remove()
public int size()
public java.util.Iterator<T> iterator()
iterator in interface java.lang.Iterable<T>
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||