class BitSetUtils {

  public static BitSet fromList(List<Boolean> list) {
    BitSet bitset = new BitSet(list.size());
    for (int i = 0; i < list.size(); i++) {
      bitset.set(i, list.get(i));
    }
    return bitset;
  }

  private  BitSetUtils();

}