public class RingBuffer<T>
extends Object
- Author:
- Bela Ban
-
Constructor Summary
Constructors
-
Method Summary
void
Adds an elements into the buffer.
int
-
Constructor Details
-
RingBuffer
public RingBuffer(int capacity)
-
Method Details
-
add
Adds an elements into the buffer. Blocks if full
- Parameters:
el -
-
-
dumpNonNullElements
public String dumpNonNullElements()
-
-