BitSet.Set Method

Definition

Overloads

Set(Int32)

Sets the bit at the specified index to true.

Set(Int32, Boolean)

Sets the bit at the specified index to the specified value.

Set(Int32, Int32)

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

Set(Int32, Int32, Boolean)

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

Set(Int32)

Sets the bit at the specified index to true.

[Android.Runtime.Register("set", "(I)V", "GetSet_IHandler")]
public virtual void Set (int bitIndex);
[<Android.Runtime.Register("set", "(I)V", "GetSet_IHandler")>]
abstract member Set : int -> unit
override this.Set : int -> unit

Parameters

bitIndex
Int32

a bit index

Attributes

Exceptions

Remarks

Java documentation for java.util.BitSet.set(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

Set(Int32, Boolean)

Sets the bit at the specified index to the specified value.

[Android.Runtime.Register("set", "(IZ)V", "GetSet_IZHandler")]
public virtual void Set (int bitIndex, bool value);
[<Android.Runtime.Register("set", "(IZ)V", "GetSet_IZHandler")>]
abstract member Set : int * bool -> unit
override this.Set : int * bool -> unit

Parameters

bitIndex
Int32

a bit index

value
Boolean

a boolean value to set

Attributes

Exceptions

Remarks

Java documentation for java.util.BitSet.set(int, boolean).

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

Set(Int32, Int32)

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

[Android.Runtime.Register("set", "(II)V", "GetSet_IIHandler")]
public virtual void Set (int fromIndex, int toIndex);
[<Android.Runtime.Register("set", "(II)V", "GetSet_IIHandler")>]
abstract member Set : int * int -> unit
override this.Set : int * int -> unit

Parameters

fromIndex
Int32

index of the first bit to be set

toIndex
Int32

index after the last bit to be set

Attributes

Exceptions

if fromIndex or toIndex is negative, or if toIndex is smaller than fromIndex.

Remarks

Java documentation for java.util.BitSet.set(int, 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

Set(Int32, Int32, Boolean)

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

[Android.Runtime.Register("set", "(IIZ)V", "GetSet_IIZHandler")]
public virtual void Set (int fromIndex, int toIndex, bool value);
[<Android.Runtime.Register("set", "(IIZ)V", "GetSet_IIZHandler")>]
abstract member Set : int * int * bool -> unit
override this.Set : int * int * bool -> unit

Parameters

fromIndex
Int32

index of the first bit to be set

toIndex
Int32

index after the last bit to be set

value
Boolean

value to set the selected bits to

Attributes

Exceptions

if fromIndex or toIndex is negative, or if toIndex is smaller than fromIndex.

Remarks

Java documentation for java.util.BitSet.set(int, int, boolean).

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