public final class BitSet extends Object
Modifier and Type | Field and Description |
---|---|
(package private) int[] |
bits |
private static int |
BITS_IN_ROOM |
(package private) static int |
BITS_PER_BYTE |
private static int |
BITS_TO_STRING_WRAP |
(package private) static int |
BITSET_SIZE |
(package private) static int |
ROOM_SHIFT |
static int |
SINGLE_BYTE_SIZE |
Constructor and Description |
---|
BitSet() |
Modifier and Type | Method and Description |
---|---|
void |
and(BitSet other) |
boolean |
at(int pos) |
(package private) static int |
bit(int pos) |
void |
clear() |
void |
clear(int pos) |
void |
copy(BitSet other) |
void |
invert() |
void |
invert(int pos) |
void |
invertTo(BitSet to) |
boolean |
isEmpty() |
private static int |
log2(int n) |
int |
numOn() |
void |
or(BitSet other) |
void |
set(int pos) |
void |
setAll() |
void |
setRange(int from,
int to) |
String |
toString() |
static final int BITS_PER_BYTE
public static final int SINGLE_BYTE_SIZE
private static final int BITS_IN_ROOM
static final int BITSET_SIZE
static final int ROOM_SHIFT
final int[] bits
private static final int BITS_TO_STRING_WRAP
public boolean at(int pos)
public void set(int pos)
public void clear(int pos)
public void invert(int pos)
public void clear()
public boolean isEmpty()
public void setRange(int from, int to)
public void setAll()
public void invert()
public void invertTo(BitSet to)
public void and(BitSet other)
public void or(BitSet other)
public void copy(BitSet other)
public int numOn()
static int bit(int pos)
private static int log2(int n)
Copyright © 2018. All rights reserved.