BitSet.Flip Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
Flip(Int32) |
Sets the bit at the specified index to the complement of its current value. |
Flip(Int32, Int32) |
Sets each bit from the specified |
Flip(Int32)
Sets the bit at the specified index to the complement of its current value.
[Android.Runtime.Register("flip", "(I)V", "GetFlip_IHandler")]
public virtual void Flip (int bitIndex);
[<Android.Runtime.Register("flip", "(I)V", "GetFlip_IHandler")>]
abstract member Flip : int -> unit
override this.Flip : int -> unit
Parameters
- bitIndex
- Int32
the index of the bit to flip
- Attributes
Exceptions
if index
.
Remarks
Java documentation for java.util.BitSet.flip(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
Flip(Int32, Int32)
Sets each bit from the specified fromIndex
(inclusive) to the
specified toIndex
(exclusive) to the complement of its current
value.
[Android.Runtime.Register("flip", "(II)V", "GetFlip_IIHandler")]
public virtual void Flip (int fromIndex, int toIndex);
[<Android.Runtime.Register("flip", "(II)V", "GetFlip_IIHandler")>]
abstract member Flip : int * int -> unit
override this.Flip : int * int -> unit
Parameters
- fromIndex
- Int32
index of the first bit to flip
- toIndex
- Int32
index after the last bit to flip
- Attributes
Exceptions
if fromIndex
or toIndex
is negative, or if
toIndex
is smaller than fromIndex
.
Remarks
Java documentation for java.util.BitSet.flip(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.