public class FastBooleanBuffer
extends java.lang.Object
boolean buffer.| Constructor and Description |
|---|
FastBooleanBuffer()
Creates a new
boolean buffer. |
FastBooleanBuffer(int size)
Creates a new
boolean buffer, with a buffer capacity of
the specified size. |
| Modifier and Type | Method and Description |
|---|---|
void |
append(boolean element)
Appends single
boolean to buffer. |
FastBooleanBuffer |
append(boolean[] array)
Appends
boolean array to buffer. |
FastBooleanBuffer |
append(boolean[] array,
int off,
int len)
Appends
boolean array to buffer. |
FastBooleanBuffer |
append(FastBooleanBuffer buff)
Appends another fast buffer to this one.
|
void |
clear()
Resets the buffer content.
|
boolean |
get(int index)
Returns
boolean element at given index. |
boolean |
isEmpty()
Tests if this buffer has no elements.
|
int |
size()
Returns buffer size.
|
boolean[] |
toArray()
Creates
boolean array from buffered content. |
boolean[] |
toArray(int start,
int len)
Creates
boolean subarray from buffered content. |
public FastBooleanBuffer()
boolean buffer. The buffer capacity is
initially 64 booleans, though its size increases if necessary.public FastBooleanBuffer(int size)
boolean buffer, with a buffer capacity of
the specified size.size - the initial size.java.lang.IllegalArgumentException - if size is negative.public void append(boolean element)
boolean to buffer.public FastBooleanBuffer append(boolean[] array, int off, int len)
boolean array to buffer.public FastBooleanBuffer append(boolean[] array)
boolean array to buffer.public FastBooleanBuffer append(FastBooleanBuffer buff)
public int size()
public boolean isEmpty()
public void clear()
public boolean[] toArray()
boolean array from buffered content.public boolean[] toArray(int start,
int len)
boolean subarray from buffered content.public boolean get(int index)
boolean element at given index.Copyright © 2003-present Jodd Team