public class BitArray extends Object implements Serializable
| Constructor and Description |
|---|
BitArray(boolean... array) |
BitArray(int size) |
BitArray(List<Boolean> booleans) |
| Modifier and Type | Method and Description |
|---|---|
void |
and(BitArray bitArray) |
int |
bitCount() |
void |
clear(int i) |
void |
clearAll() |
BitArray |
clone() |
static BitArray |
construct(byte[] data,
int size) |
boolean |
equals(Object obj) |
static byte[] |
extractRawDataArray(BitArray array) |
boolean |
get(int i) |
int[] |
getBits() |
BitArray |
getRange(int from,
int to) |
int |
hashCode() |
boolean |
intersects(BitArray bitArray) |
boolean |
isClean()
Returns false if some bits in array are set.
|
void |
loadValueFrom(BitArray bitArray) |
void |
or(BitArray bitArray) |
void |
set(BitArray ba) |
void |
set(int i) |
void |
set(int i,
boolean value) |
void |
setAll() |
int |
size() |
String |
toString() |
void |
xor(BitArray bitArray) |
public boolean get(int i)
public void set(int i)
public void clear(int i)
public void set(int i,
boolean value)
public BitArray getRange(int from, int to)
public void set(BitArray ba)
public void setAll()
public boolean intersects(BitArray bitArray)
public int bitCount()
public void or(BitArray bitArray)
public void xor(BitArray bitArray)
public void and(BitArray bitArray)
public void loadValueFrom(BitArray bitArray)
public boolean isClean()
public void clearAll()
public int[] getBits()
public int size()
public static byte[] extractRawDataArray(BitArray array)
public static BitArray construct(byte[] data, int size)
Copyright © 2018. All rights reserved.