org.freecompany.util.core

Class RingBuffer<T>

public class RingBuffer<T> extends Object implements Iterable<T>

Field Summary
protected T[]array
protected intread
protected intsize
protected intwrite
Method Summary
voidadd(T type)
Tremove()
intsize()

Field Detail

array

protected final T[] array

read

protected int read

size

protected int size

write

protected int write

Method Detail

add

public void add(T type)

remove

public T remove()

size

public int size()