clear

fun clear(bitIndex: Int)

Sets the bit specified by the index to false.

Since

1.0

Parameters

bitIndex

the index of the bit to be cleared

Throws

if the specified index is negative


fun clear(fromIndex: Int, toIndex: Int)

Sets the bits from the specified fromIndex (inclusive) to the specified toIndex (exclusive) to false.

Since

1.4

Parameters

fromIndex

index of the first bit to be cleared

toIndex

index after the last bit to be cleared

Throws

if fromIndex is negative, or toIndex is negative, or fromIndex is larger than toIndex


fun clear()

Sets all of the bits in this BitSet to false.

Since

1.4