public interface ImmutableBitSet
| Modifier and Type | Interface and Description |
|---|---|
static class |
ImmutableBitSet.AllTrueBitSet
All bits are set.
|
static class |
ImmutableBitSet.SelectiveBitSet |
| Modifier and Type | Field and Description |
|---|---|
static int |
POSITION_NOT_SET |
| Modifier and Type | Method and Description |
|---|---|
default boolean |
get(int position) |
static ImmutableBitSet |
newBitSet(BitSet truePositions) |
static ImmutableBitSet |
newBitSet(int... truePositions) |
static ImmutableBitSet |
newBitSetWithAllPositionsTrue() |
int |
nextSetBit(int fromPosition) |
static final int POSITION_NOT_SET
int nextSetBit(int fromPosition)
fromPosition - The next position that is set, starting (inclusive) from the given position. So, test if a
position is set or not "boolean present = (i == immutableBitSet.nextSetBit(i))" or
simply use call get(int).BitSet.nextSetBit(int)default boolean get(int position)
static ImmutableBitSet newBitSetWithAllPositionsTrue()
static ImmutableBitSet newBitSet(int... truePositions)
static ImmutableBitSet newBitSet(BitSet truePositions)
Copyright © 2018. All rights reserved.