Added Methods |
int cardinality()
|
Returns the number of bits set to true in this BitSet . |
void clear()
|
Sets all of the bits in this BitSet to false . |
void clear(int, int)
|
Sets the bits from the specified fromIndex(inclusive) to the specified toIndex(exclusive) to false . |
void flip(int )
|
Sets the bit at the specified index to to the complement of its current value. |
void flip(int, int)
|
Sets each bit from the specified fromIndex(inclusive) to the specified toIndex(exclusive) to the complement of its current value. |
BitSet get(int, int)
|
Returns a new BitSet composed of bits from this BitSet from fromIndex(inclusive) to toIndex(exclusive). |
boolean intersects(BitSet )
|
Returns true if the specified BitSet has any bits set to true that are also set to true in this BitSet . |
boolean isEmpty()
|
Returns true if this BitSet contains no bits that are set to true . |
int nextClearBit(int )
|
Returns the index of the first bit that is set to false that occurs on or after the specified starting index. |
int nextSetBit(int )
|
Returns the index of the first bit that is set to true that occurs on or after the specified starting index. |
void set(int, boolean)
|
Sets the bit at the specified index to the specified value. |
void set(int, int)
|
Sets the bits from the specified fromIndex(inclusive) to the specified toIndex(exclusive) to true . |
void set(int, int, boolean)
|
Sets the bits from the specified fromIndex(inclusive) to the specified toIndex(exclusive) to the specified value. |