| Modifier and Type | Field and Description |
|---|---|
protected boolean |
modified
Keeps track if any modification of the bit set was possibly made via any of
add(int), remove(int),
andInPlace(clover.antlr.collections.impl.BitSet), orInPlace(clover.antlr.collections.impl.BitSet),
notInPlace(), notInPlace(int), notInPlace(int, int) methods. |
| Constructor and Description |
|---|
CloverBitSet() |
CloverBitSet(int nbits) |
CloverBitSet(long[] bits) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(int i) |
CloverBitSet |
and(CloverBitSet a) |
void |
andInPlace(clover.antlr.collections.impl.BitSet bitSet) |
BitSet |
applyTo(BitSet to) |
CloverBitSet |
flip(int startIdx,
int endIdx) |
static CloverBitSet |
forHits(int[] elements) |
static CloverBitSet |
forHits(int[][] elements) |
static CloverBitSet |
forHits(int[][] elements,
int maxElements) |
static BitSet |
fromIntArray(int[] data) |
long[] |
getBits() |
boolean |
intersects(CloverBitSet other) |
boolean |
isModified()
Returns true if any modification of the bit set was possibly made via any of
add(int), remove(int),
andInPlace(clover.antlr.collections.impl.BitSet), orInPlace(clover.antlr.collections.impl.BitSet),
notInPlace(), notInPlace(int), notInPlace(int, int) method calls. |
int |
length() |
int |
nextSetBit(int fromIndex) |
void |
notInPlace() |
void |
notInPlace(int i) |
void |
notInPlace(int i,
int i2) |
CloverBitSet |
or(CloverBitSet a) |
void |
orInPlace(clover.antlr.collections.impl.BitSet bitSet) |
static CloverBitSet |
read(DataInput in) |
void |
remove(int i) |
long |
sizeInBytes() |
void |
subtractInPlace(clover.antlr.collections.impl.BitSet bitSet) |
void |
write(DataOutput out) |
and, clear, clear, clone, degree, equals, getRanges, growToInclude, lengthInLongWords, member, nil, not, of, or, size, subset, toArray, toPackedArray, toString, toString, toString, toString, toStringOfHalfWords, toStringOfWords, toStringWithRangesprotected volatile boolean modified
add(int), remove(int),
andInPlace(clover.antlr.collections.impl.BitSet), orInPlace(clover.antlr.collections.impl.BitSet),
notInPlace(), notInPlace(int), notInPlace(int, int) methods. Note it does not check
if content was really changed, but whether the method was called.public CloverBitSet()
public CloverBitSet(long[] bits)
public CloverBitSet(int nbits)
public long[] getBits()
public void write(DataOutput out) throws IOException
IOExceptionpublic static CloverBitSet read(DataInput in) throws IOException
IOExceptionpublic int nextSetBit(int fromIndex)
public static CloverBitSet forHits(int[] elements)
public static CloverBitSet forHits(int[][] elements)
public static CloverBitSet forHits(int[][] elements, int maxElements)
public long sizeInBytes()
sizeInBytes in interface ByteSizedpublic boolean intersects(CloverBitSet other)
public void andInPlace(clover.antlr.collections.impl.BitSet bitSet)
andInPlace in class clover.antlr.collections.impl.BitSetpublic void add(int i)
add in class clover.antlr.collections.impl.BitSetpublic void notInPlace()
notInPlace in class clover.antlr.collections.impl.BitSetpublic void notInPlace(int i)
notInPlace in class clover.antlr.collections.impl.BitSetpublic void notInPlace(int i,
int i2)
notInPlace in class clover.antlr.collections.impl.BitSetpublic void orInPlace(clover.antlr.collections.impl.BitSet bitSet)
orInPlace in class clover.antlr.collections.impl.BitSetpublic void remove(int i)
remove in class clover.antlr.collections.impl.BitSetpublic void subtractInPlace(clover.antlr.collections.impl.BitSet bitSet)
subtractInPlace in class clover.antlr.collections.impl.BitSetpublic CloverBitSet and(CloverBitSet a)
public CloverBitSet or(CloverBitSet a)
public CloverBitSet flip(int startIdx, int endIdx)
public static BitSet fromIntArray(int[] data)
public int length()
public boolean isModified()
add(int), remove(int),
andInPlace(clover.antlr.collections.impl.BitSet), orInPlace(clover.antlr.collections.impl.BitSet),
notInPlace(), notInPlace(int), notInPlace(int, int) method calls. Note it does not check
if content was really changed, but whether the method was called.Copyright © 2023 OpenClover.org. All rights reserved.