@get


Description:

public bool @get (int index)

Returns the value of the bit at the specified index.

Returns false if the index is beyond the current capacity.

Example:

    var bits = new BitSet (8);
bits.set (3);
assert (bits.get (3));
assert (!bits.get (4));

Parameters:

index

the zero-based bit index.

Returns:

true if the bit is 1, false if 0 or out of range.