public class BooleanBuffer extends PersistentObject implements BooleanBufferConsumer
Constructor and Description |
---|
BooleanBuffer(BooleanBufferConsumer target,
int capacity)
Constructs and returns a new buffer with the given target.
|
Modifier and Type | Method and Description |
---|---|
void |
add(boolean element)
Adds the specified element to the receiver.
|
void |
addAllOf(BooleanArrayList list)
Adds all elements of the specified list to the receiver.
|
void |
clear()
Sets the receiver's size to zero.
|
void |
flush()
Adds all internally buffered elements to the receiver's target, then
resets the current buffer size to zero.
|
clone
public BooleanBuffer(BooleanBufferConsumer target, int capacity)
target
- the target to flush to.capacity
- the number of points the buffer shall be capable of holding
before overflowing and flushing to the target.public void add(boolean element)
element
- the element to add.public void addAllOf(BooleanArrayList list)
addAllOf
in interface BooleanBufferConsumer
list
- the list of which all elements shall be added.public void clear()
public void flush()
Jump to the Parallel Colt Homepage