class Bitlist {

  public List<Integer> getAllSetBits() {
    final List<Integer> setBits = new ArrayList<>();
    for (int i = data.nextSetBit(0); i >= 0; i = data.nextSetBit(i + 1)) {
      setBits.add(i);
    }
    return setBits;
  }

  public  Bitlist(int arraySize, long maxSize);
  public  Bitlist(Bitlist bitlist);
  private  Bitlist(int size, BitSet data, long maxSize);

}