BitSet.Get 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
Get(Int32) |
Returns the value of the bit with the specified index. |
Get(Int32, Int32) |
Returns a new |
Get(Int32)
Returns the value of the bit with the specified index.
[Android.Runtime.Register("get", "(I)Z", "GetGet_IHandler")]
public virtual bool Get (int bitIndex);
[<Android.Runtime.Register("get", "(I)Z", "GetGet_IHandler")>]
abstract member Get : int -> bool
override this.Get : int -> bool
Parameters
- bitIndex
- Int32
the bit index
Returns
the value of the bit with the specified index
- Attributes
Exceptions
if index
.
Remarks
Returns the value of the bit with the specified index. The value is true
if the bit with the index bitIndex
is currently set in this BitSet
; otherwise, the result is false
.
Java documentation for java.util.BitSet.get(.*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
Get(Int32, Int32)
Returns a new BitSet
composed of bits from this BitSet
from fromIndex
(inclusive) to toIndex
(exclusive).
[Android.Runtime.Register("get", "(II)Ljava/util/BitSet;", "GetGet_IIHandler")]
public virtual Java.Util.BitSet? Get (int fromIndex, int toIndex);
[<Android.Runtime.Register("get", "(II)Ljava/util/BitSet;", "GetGet_IIHandler")>]
abstract member Get : int * int -> Java.Util.BitSet
override this.Get : int * int -> Java.Util.BitSet
Parameters
- fromIndex
- Int32
index of the first bit to include
- toIndex
- Int32
index after the last bit to include
Returns
a new BitSet
from a range of this BitSet
- Attributes
Exceptions
if fromIndex
or toIndex
is negative, or if
toIndex
is smaller than fromIndex
.
Remarks
Java documentation for java.util.BitSet.get(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.