public class BooleanArray
extends java.lang.Object
High performance boolean array (fixed length).
Constructor and Description |
---|
BooleanArray(int size)
Construct a new array with a specified
size . |
Modifier and Type | Method and Description |
---|---|
boolean |
get(int index)
Return the element of this array at
index . |
int |
length()
Length of the array.
|
void |
set(int index,
boolean value)
Set the element of this buffer at
index . |
public BooleanArray(int size)
Construct a new array with a specified size
. Array items will be initially false
.
size
- Array length.public boolean get(int index)
Return the element of this array at index
.
index
- Zero-based index.index
.public int length()
Length of the array.
public void set(int index, boolean value)
Set the element of this buffer at index
.
index
- Zero-based index.value
- Element value.