BitSet.PreviousClearBit(Int32) Method

Definition

Returns the index of the nearest bit that is set to false that occurs on or before the specified starting index.

[Android.Runtime.Register("previousClearBit", "(I)I", "GetPreviousClearBit_IHandler")]
public virtual int PreviousClearBit (int fromIndex);
[<Android.Runtime.Register("previousClearBit", "(I)I", "GetPreviousClearBit_IHandler")>]
abstract member PreviousClearBit : int -> int
override this.PreviousClearBit : int -> int

Parameters

fromIndex
Int32

the index to start checking from (inclusive)

Returns

the index of the previous clear bit, or -1 if there is no such bit

Attributes

Exceptions

Remarks

Returns the index of the nearest bit that is set to false that occurs on or before the specified starting index. If no such bit exists, or if -1 is given as the starting index, then -1 is returned.

Added in 1.7.

Java documentation for java.util.BitSet.previousClearBit(.*int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to