public final class BitSetUtils extends Object
Modifier and Type | Method and Description |
---|---|
static boolean |
hasAllBitsSet(BitSet bitSet,
Iterable<Integer> indexes)
Returns true if all bits at given
indexes are set. |
static boolean |
hasAtLeastOneBitSet(BitSet bitSet,
Iterable<Integer> indexes)
Returns true if at least one bit on a given position is set.
|
static void |
setBits(BitSet bitSet,
Iterable<Integer> indexes)
Set all bits on a given positions.
|
static void |
unsetBits(BitSet bitSet,
Iterable<Integer> indexes)
Unsets all bits on a given positions.
|
public static boolean hasAtLeastOneBitSet(BitSet bitSet, Iterable<Integer> indexes)
public static boolean hasAllBitsSet(BitSet bitSet, Iterable<Integer> indexes)
indexes
are set.public static void setBits(BitSet bitSet, Iterable<Integer> indexes)
bitSet
- the BitSet
to modifyindexes
- the index positions to setCopyright © 2022 Hazelcast, Inc.. All Rights Reserved.