com.carrotsearch.hppc
Class BitSetIterator
- java.lang.Object
-
- com.carrotsearch.hppc.BitSetIterator
-
public class BitSetIterator extends java.lang.ObjectAn 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 and Description static intNO_MORE
-
Constructor Summary
Constructors Constructor and Description BitSetIterator(BitSet obs)BitSetIterator(long[] bits, int numWords)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description intnextSetBit()
-
-
-
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)
-
-
DataMelt 3.0 © DataMelt by jWork.ORG