BitSet.toLongArray

* Returns a new long array containing all the bits in this bit set. * * <p>More precisely, if * <br>{@code long[] longs = s.toLongArray();} * <br>then {@code longs.length == (s.length()+63)/64} and * <br>{@code s.get(n) == ((longs[n/64] & (1L<<(n%64))) != 0)} * <br>for all {@code n < 64 * longs.length}. * * @return a long array containing a little-endian representation * of all the bits in this bit set

class BitSet
long[]
toLongArray
()

Meta