class BitSetIntSet extends GridSerializableCollection<Integer> implements IntSet {

    @Override public int[] toIntArray() {
        if (size == 0)
            return EMPTY_INTS;

        int[] arr = new int[size];

        for (int i = 0, pos = -1; i < size; i++) {
            pos = bitSet.nextSetBit(pos + 1);
            arr[i] = pos;
        }

        return arr;
    }

    public  BitSetIntSet();
    public  BitSetIntSet(int initCap);
    public  BitSetIntSet(int initCap, Collection<Integer> coll);

}