BitSet.Cardinality Method

Definition

Returns the number of bits set to true in this BitSet.

[Android.Runtime.Register("cardinality", "()I", "GetCardinalityHandler")]
public virtual int Cardinality ();
[<Android.Runtime.Register("cardinality", "()I", "GetCardinalityHandler")>]
abstract member Cardinality : unit -> int
override this.Cardinality : unit -> int

Returns

the number of bits set to true in this BitSet

Attributes

Remarks

Returns the number of bits set to true in this BitSet.

Added in 1.4.

Java documentation for java.util.BitSet.cardinality().

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