Package org.joni
Class BitSet
java.lang.Object
org.joni.BitSet
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) final int[]
private static final int
(package private) static final int
private static final int
(package private) static final int
(package private) static final int
static final int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
boolean
at
(int pos) (package private) static int
bit
(int pos) void
clear()
void
clear
(int pos) void
void
invert()
void
invert
(int pos) void
boolean
isEmpty()
private static int
log2
(int n) int
numOn()
void
void
set
(int pos) void
setAll()
void
setRange
(int from, int to) toString()
-
Field Details
-
BITS_PER_BYTE
static final int BITS_PER_BYTE- See Also:
-
SINGLE_BYTE_SIZE
public static final int SINGLE_BYTE_SIZE- See Also:
-
BITS_IN_ROOM
private static final int BITS_IN_ROOM- See Also:
-
BITSET_SIZE
static final int BITSET_SIZE- See Also:
-
ROOM_SHIFT
static final int ROOM_SHIFT -
bits
final int[] bits -
BITS_TO_STRING_WRAP
private static final int BITS_TO_STRING_WRAP- See Also:
-
-
Constructor Details
-
BitSet
public BitSet()
-
-
Method Details
-
toString
-
at
public boolean at(int pos) -
set
public void set(int pos) -
clear
public void clear(int pos) -
invert
public void invert(int pos) -
clear
public void clear() -
isEmpty
public boolean isEmpty() -
setRange
public void setRange(int from, int to) -
setAll
public void setAll() -
invert
public void invert() -
invertTo
-
and
-
or
-
copy
-
numOn
public int numOn() -
bit
static int bit(int pos) -
log2
private static int log2(int n)
-