Java Utililty Methods BitSet Contain

List of utility methods to do BitSet Contain

Description

The list of methods to do BitSet Contain are organized into topic(s).

Method

booleancontains(BitSet a, BitSet b)
does set a contain set b?
return intersection(a, b).cardinality() == b.cardinality();
booleancontains(BitSet arg, BitSet filter)
contains
for (int i = filter.nextSetBit(0); i >= 0; i = filter.nextSetBit(i + 1)) {
    if (!arg.get(i)) {
        return false;
return true;
booleancontainsWhitespace(CharSequence cs)
contains Whitespace
for (int i = 0; i < cs.length(); i++) {
    if (isUnicodeWhitespace(cs.charAt(i))) {
        return true;
return false;