Here you can find the source of extractLong(BitSet bitSet, int from, int to)
public static long extractLong(BitSet bitSet, int from, int to)
//package com.java2s; import java.util.BitSet; public class Main { public static long extractLong(BitSet bitSet, int from, int to) { long[] longArray = bitSet.get(from, to).toLongArray(); long result = 0; if (longArray.length > 0) { result = longArray[0];//from w w w. java 2 s . c o m } return result; } }