public class BitSet extends Object implements Cloneable, Serializable
Modifier and Type | Method and Description |
---|---|
void |
and(BitSet bitset) |
void |
andNot(BitSet bs) |
int |
cardinality() |
void |
clear() |
void |
clear(int bitIndex) |
void |
clear(int begin,
int end) |
Object |
clone()
Default clone() method performs a "shallow" cloning of the instance.
|
boolean |
equals(Object obj)
Default object equality (is identity).
|
void |
flip(int bitIndex) |
void |
flip(int begin,
int end) |
boolean |
get(int bitIndex) |
BitSet |
get(int begin,
int end) |
int |
hashCode()
The (default) object hashcode: for transient objects this is simply the
address of the instance in memory, for persistent objects it is the
address at which the instance was first created (maybe in a previous
activation of the VM).
|
boolean |
intersects(BitSet set) |
boolean |
isEmpty() |
int |
length() |
int |
nextClearBit(int fromIndex) |
int |
nextSetBit(int fromIndex) |
void |
or(BitSet bitset) |
void |
set(int bitIndex) |
void |
set(int bitIndex,
boolean value) |
void |
set(int fromIndex,
int toIndex) |
void |
set(int begin,
int end,
boolean value) |
int |
size() |
String |
toString()
Default String representation: overriden by many classes.
|
void |
xor(BitSet bitset) |
public String toString()
Object
public boolean equals(Object obj)
Object
public int hashCode()
Object
public Object clone()
Object
public boolean get(int bitIndex)
public void set(int bitIndex)
public void clear()
public void clear(int bitIndex)
public void clear(int begin, int end)
public void flip(int bitIndex)
public void flip(int begin, int end)
public BitSet get(int begin, int end)
public boolean isEmpty()
public boolean intersects(BitSet set)
public int nextSetBit(int fromIndex)
public int nextClearBit(int fromIndex)
public void set(int bitIndex, boolean value)
public void set(int fromIndex, int toIndex)
public void set(int begin, int end, boolean value)
public void and(BitSet bitset)
public void or(BitSet bitset)
public void xor(BitSet bitset)
public int size()
public int length()
public int cardinality()
public void andNot(BitSet bs)