Package org.joni
Class BitSet
- java.lang.Object
-
- org.joni.BitSet
-
public final class BitSet extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description int[]
bits
static int
BITS_IN_ROOM
(package private) static int
BITS_PER_BYTE
private static int
BITS_TO_STRING_WRAP
static int
BITSET_SIZE
(package private) static int
ROOM_SHIFT
static int
SINGLE_BYTE_SIZE
-
Constructor Summary
Constructors Constructor Description BitSet()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
and(BitSet other)
boolean
at(int pos)
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)
(package private) int
numOn()
void
or(BitSet other)
void
set(int pos)
void
set(ScanEnvironment env, int pos)
void
setAll()
void
setRange(ScanEnvironment env, int from, int to)
java.lang.String
toString()
-
-
-
Field Detail
-
BITS_PER_BYTE
static final int BITS_PER_BYTE
- See Also:
- Constant Field Values
-
SINGLE_BYTE_SIZE
public static final int SINGLE_BYTE_SIZE
- See Also:
- Constant Field Values
-
BITS_IN_ROOM
public static final int BITS_IN_ROOM
- See Also:
- Constant Field Values
-
BITSET_SIZE
public static final int BITSET_SIZE
- See Also:
- Constant Field Values
-
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:
- Constant Field Values
-
-
Method Detail
-
at
public boolean at(int pos)
-
set
public void set(ScanEnvironment env, 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(ScanEnvironment env, int from, int to)
-
setAll
public void setAll()
-
invert
public void invert()
-
invertTo
public void invertTo(BitSet to)
-
and
public void and(BitSet other)
-
or
public void or(BitSet other)
-
copy
public void copy(BitSet other)
-
numOn
int numOn()
-
bit
private static int bit(int pos)
-
log2
private static int log2(int n)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-