Apache Lucene.Net 2.4.0 Class Library API

SupportClass.Number.Cardinality Method 

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

public static int Cardinality(
   BitArray bits
);

Parameters

bits
The BitArray object.

Return Value

The number of bits set to true in this BitSet.

See Also

SupportClass.Number Class | (global) Namespace