| Constructor and Description |
|---|
TBitSet(int nbits) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
void |
clear(int index) |
void |
clearRange(int lo,
int hi) |
boolean |
contains(TBitSet other) |
TBitSet |
copy() |
boolean |
equals(Object obj) |
boolean |
get(int b) |
static TBitSet |
getEmptyInstance() |
static int |
getNumberOfStaticInstances() |
int |
getStaticCacheKey() |
static TBitSet |
getStaticInstance(int i)
Static shared instances for deduplication of common immutable bit sets.
|
int |
hashCode() |
void |
intersect(TBitSet other) |
void |
invert() |
boolean |
isDisjoint(TBitSet other) |
boolean |
isEmpty() |
boolean |
isFull() |
PrimitiveIterator.OfInt |
iterator() |
int |
numberOfSetBits() |
void |
set(int b) |
void |
setRange(int lo,
int hi) |
Spliterator.OfInt |
spliterator() |
IntStream |
stream() |
void |
subtract(TBitSet other) |
long[] |
toLongArray() |
String |
toString() |
void |
union(Abstract128BitSet bs) |
void |
union(TBitSet other) |
static TBitSet |
valueOf(int... values) |
public static TBitSet valueOf(int... values)
public static TBitSet getEmptyInstance()
public static TBitSet getStaticInstance(int i)
i - The integer value of the static bit set's content, i.e. 0 is the empty bit set, 1
has words {0x0..., 0x1}, 2 has {0x0..., 0x2}, and so on.public static int getNumberOfStaticInstances()
public int getStaticCacheKey()
public TBitSet copy()
public long[] toLongArray()
public boolean isEmpty()
public boolean isFull()
public int numberOfSetBits()
public boolean get(int b)
public void set(int b)
public void setRange(int lo,
int hi)
public void clearRange(int lo,
int hi)
public void clear()
public void clear(int index)
public void invert()
public void intersect(TBitSet other)
public void subtract(TBitSet other)
public void union(TBitSet other)
public void union(Abstract128BitSet bs)
public boolean isDisjoint(TBitSet other)
public boolean contains(TBitSet other)
public PrimitiveIterator.OfInt iterator()
public Spliterator.OfInt spliterator()
spliterator in interface Iterable<Integer>public IntStream stream()