public class CircularBuffer<T> extends Object
Constructor and Description |
---|
CircularBuffer(Class<T> clazz,
int capacity) |
public void write(T element)
element
- public T take()
public T peek()
public int size()
public boolean isEmpty()
public boolean isFull()
public void reset()
Copyright © 2008–2020 The Apache Software Foundation. All rights reserved.