de.grogra.xl.util
Class XBitSet
java.lang.Object
de.grogra.xl.util.XBitSet
public class XBitSet
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
XBitSet
public XBitSet()
XBitSet
public XBitSet(int capacity)
add
public boolean add(int bitIndex)
addToList
public void addToList(IntList list)
and
public void and(XBitSet a,
XBitSet b)
andNot
public void andNot(XBitSet a,
XBitSet b)
cardinality
public int cardinality()
clear
public void clear()
clear
public void clear(int bitIndex)
flip
public boolean flip(int bitIndex)
get
public boolean get(int bitIndex)
getBits
public int getBits(int bitIndex)
intersects
public boolean intersects(XBitSet set)
nextBit
public final int nextBit(int fromIndex,
boolean value)
nextClearBit
public final int nextClearBit(int fromIndex)
nextSetBit
public final int nextSetBit(int fromIndex)
or
public void or(XBitSet a,
XBitSet b)
remove
public boolean remove(int bitIndex)
set
public void set(int bitIndex)
set
public void set(int bitIndex,
boolean value)
set
public void set(XBitSet src)
setBits
public void setBits(int bitIndex,
int bits)
setRange
public void setRange(int startIndex,
int endIndex,
boolean value)
size
public int size()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object