cardinality

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

Return

the number of bits set to true in this BitSet

Since

1.4