Package org.joni
Class BitSet
java.lang.Object
org.joni.BitSet
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal int[]
static final int
(package private) static final int
private static final int
static final int
(package private) static final int
static final int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
boolean
at
(int pos) 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) (package private) int
numOn()
void
void
set
(int pos) void
set
(ScanEnvironment env, int pos) void
setAll()
void
setRange
(ScanEnvironment env, 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
public static final int BITS_IN_ROOM- See Also:
-
BITSET_SIZE
public static final int BITSET_SIZE- See Also:
-
ROOM_SHIFT
static final int ROOM_SHIFT -
bits
public final int[] bits -
BITS_TO_STRING_WRAP
private static final int BITS_TO_STRING_WRAP- See Also:
-
-
Constructor Details
-
BitSet
public BitSet()
-
-
Method Details
-
at
public boolean at(int pos) -
set
-
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
-
setAll
public void setAll() -
invert
public void invert() -
invertTo
-
and
-
or
-
copy
-
numOn
int numOn() -
bit
private static int bit(int pos) -
log2
private static int log2(int n) -
toString
-