class BitSetUtils {

  public static BitSet fromArray(boolean[] array) {
    BitSet bitset = new BitSet(array.length);
    for (int i = 0; i < array.length; i++) {
      bitset.set(i, array[i]);
    }
    return bitset;
  }

  private  BitSetUtils();

}