public class DoubleRingBuffer extends Object
| Constructor and Description |
|---|
DoubleRingBuffer(int capacity) |
| Modifier and Type | Method and Description |
|---|---|
int |
available() |
boolean |
put(double element) |
int |
put(double[] newElements,
int length) |
int |
remainingCapacity() |
void |
reset()
resets and clears buffer
|
double |
take() |
int |
take(double[] into,
int length) |
public DoubleRingBuffer(int capacity)
capacity - maximum capacity of bufferpublic int available()
public boolean put(double element)
element - new elementpublic int put(double[] newElements,
int length)
newElements - new elements to be addedlength - number of elements to be addedpublic int remainingCapacity()
public void reset()
public double take()
public int take(double[] into,
int length)
into - storage containerlength - how many elements are to be retrievedCopyright © 2019 GSI Helmholtzzentrum für Schwerionenforschung GmbH. All rights reserved.