BitSet (Groovy JDK enhancements)

Package: java.util

## Class BitSet

- - ### Methods Summary

    Methods
    Return type | Name and parameters
    --- | ---
    `BitSet` | `and(BitSet right)` Bitwise AND together two BitSets.
    `BitSet` | `bitwiseNegate()` Bitwise NEGATE a BitSet.
    `BitSet` | `getAt(IntRange range)` Support retrieving a subset of a BitSet using a Range
    `boolean` | `getAt(int index)` Support the subscript operator for a Bitset
    `BitSet` | `or(BitSet right)` Bitwise OR together two BitSets.
    `void` | `putAt(IntRange range, boolean value)` Support assigning a range of values with a single assignment statement.
    `void` | `putAt(int index, boolean value)` Support subscript-style assignment for a BitSet.
    `BitSet` | `xor(BitSet right)` Bitwise XOR together two BitSets.

  - #### Methods inherited from class java.lang.Object

    `addShutdownHook`, `any`, `any`, `asBoolean`, `asType`, `collect`, `collect`, `collect`, `dump`, `each`, `eachMatch`, `eachMatch`, `eachWithIndex`, `every`, `every`, `find`, `find`, `findAll`, `findAll`, `findIndexOf`, `findIndexOf`, `findIndexValues`, `findIndexValues`, `findLastIndexOf`, `findLastIndexOf`, `findResult`, `findResult`, `findResult`, `findResult`, `getAt`, `getMetaClass`, `getMetaPropertyValues`, `getProperties`, `grep`, `grep`, `hasProperty`, `identity`, `inject`, `inject`, `inspect`, `invokeMethod`, `is`, `isCase`, `isNotCase`, `iterator`, `metaClass`, `print`, `print`, `printf`, `printf`, `println`, `println`, `println`, `putAt`, `respondsTo`, `respondsTo`, `setMetaClass`, `split`, `sprintf`, `sprintf`, `stream`, `tap`, `toString`, `use`, `use`, `use`, `with`, `with`, `withCloseable`, `withStream`, `withTraits`

- - ### Methods Detail

    - #### public BitSet and(BitSet right)

      Bitwise AND together two BitSets.

      Parameters:
        `right` - another BitSet to bitwise AND
      Returns:
        the bitwise AND of both BitSets
      Since:
        1.5.0

    - #### public BitSet bitwiseNegate()

      Bitwise NEGATE a BitSet.

      Returns:
        the bitwise NEGATE of the BitSet
      Since:
        1.5.0

    - #### public BitSet getAt(IntRange range)

      Support retrieving a subset of a BitSet using a Range

      Parameters:
        `range` - a Range defining the desired subset
      Returns:
        a new BitSet that represents the requested subset
      Since:
        1.5.0
      See Also:
        BitSet
        IntRange

    - #### public boolean getAt(int index)

      Support the subscript operator for a Bitset

      Parameters:
        `index` - index to retrieve
      Returns:
        value of the bit at the given index
      Since:
        1.5.0
      See Also:
        BitSet

    - #### public BitSet or(BitSet right)

      Bitwise OR together two BitSets. Called when the '|' operator is used between two bit sets.

      Parameters:
        `right` - another BitSet to bitwise AND
      Returns:
        the bitwise OR of both BitSets
      Since:
        1.5.0

    - #### public void putAt(IntRange range, boolean value)

      Support assigning a range of values with a single assignment statement.

      Parameters:
        `range` - the range of values to set
        `value` - value
      Since:
        1.5.0
      See Also:
        BitSet
        Range

    - #### public void putAt(int index, boolean value)

      Support subscript-style assignment for a BitSet.

      Parameters:
        `index` - index of the entry to set
        `value` - value
      Since:
        1.5.0
      See Also:
        BitSet

    - #### public BitSet xor(BitSet right)

      Bitwise XOR together two BitSets. Called when the '^' operator is used between two bit sets.

      Parameters:
        `right` - another BitSet to bitwise AND
      Returns:
        the bitwise XOR of both BitSets
      Since:
        1.5.0