public class BooleanArray extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_CAPACITY |
| Constructor and Description |
|---|
BooleanArray() |
BooleanArray(int length) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(boolean b)
Add value at the end of the array
|
void |
add(int pos,
boolean b)
Inserts the given value in the specified position in the array.
|
boolean |
get(int pos)
Get value on position pos
|
int |
size() |
long[] |
toLongArray() |
static BooleanArray |
valueOf(long[] a,
int length)
Create a BooleanArray from the given
|
public void add(int pos,
boolean b)
pos - b - public long[] toLongArray()
public boolean get(int pos)
pos - public int size()
public void add(boolean b)
b - public static BooleanArray valueOf(long[] a, int length)
Copyright © 2018 Space Applications Services. All rights reserved.