java.lang.Object
de.grogra.xl.util.XBitSet
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
add
(int bitIndex) void
void
void
int
void
clear()
void
clear
(int bitIndex) boolean
flip
(int bitIndex) boolean
get
(int bitIndex) int
getBits
(int bitIndex) boolean
intersects
(XBitSet set) final int
nextBit
(int fromIndex, boolean value) final int
nextClearBit
(int fromIndex) final int
nextSetBit
(int fromIndex) void
boolean
remove
(int bitIndex) void
set
(int bitIndex) void
set
(int bitIndex, boolean value) void
void
setBits
(int bitIndex, int bits) void
setRange
(int startIndex, int endIndex, boolean value) int
size()
toString()
-
Constructor Details
-
XBitSet
public XBitSet() -
XBitSet
public XBitSet(int capacity)
-
-
Method Details
-
set
public void set(int bitIndex, boolean value) -
set
public void set(int bitIndex) -
setRange
public void setRange(int startIndex, int endIndex, boolean value) -
add
public boolean add(int bitIndex) -
remove
public boolean remove(int bitIndex) -
flip
public boolean flip(int bitIndex) -
clear
public void clear(int bitIndex) -
get
public boolean get(int bitIndex) -
getBits
public int getBits(int bitIndex) -
setBits
public void setBits(int bitIndex, int bits) -
set
-
intersects
-
andNot
-
and
-
or
-
cardinality
public int cardinality() -
clear
public void clear() -
nextSetBit
public final int nextSetBit(int fromIndex) -
nextClearBit
public final int nextClearBit(int fromIndex) -
nextBit
public final int nextBit(int fromIndex, boolean value) -
size
public int size() -
addToList
-
toString
-