Package com.carrotsearch.hppc
Class BitSetIterator
- java.lang.Object
-
- com.carrotsearch.hppc.BitSetIterator
-
public class BitSetIterator extends java.lang.Object
An iterator to iterate over set bits in an BitSet. This is faster than nextSetBit() for iterating over the complete set of bits, especially when the density of the bits set is high.
-
-
Field Summary
Fields Modifier and Type Field Description static int
NO_MORE
-
Constructor Summary
Constructors Constructor Description BitSetIterator(long[] bits, int numWords)
BitSetIterator(BitSet obs)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
nextSetBit()
-
-
-
Field Detail
-
NO_MORE
public static final int NO_MORE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
BitSetIterator
public BitSetIterator(BitSet obs)
-
BitSetIterator
public BitSetIterator(long[] bits, int numWords)
-
-