public class BitSetIterator
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private long[] |
arr
the python code that generated bitlist
def bits2int(val):
arr=0
for shift in range(8,0,-1):
if val & 0x80:
arr = (arr << 4) | shift
val = val << 1
return arr
def int_table():
tbl = [ hex(bits2int(val)).strip('L') for val in range(256) ]
return ','.join(tbl)
|
(package private) static int[] |
bitlist |
private int |
i |
private int |
indexArray |
static int |
NO_MORE |
private long |
word |
private int |
words |
private int |
wordShift |
| Constructor and Description |
|---|
BitSetIterator(BitSet obs) |
BitSetIterator(long[] bits,
int numWords) |
| Modifier and Type | Method and Description |
|---|---|
int |
nextSetBit() |
private void |
shift() |
static final int[] bitlist
private final long[] arr
private final int words
private int i
private long word
private int wordShift
private int indexArray
public static final int NO_MORE
public BitSetIterator(BitSet obs)
public BitSetIterator(long[] bits,
int numWords)