|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jgroup.util.BooleanSet
public class BooleanSet
The BooleanSet
class implements a set through an array
of bits.
Constructor Summary | |
---|---|
BooleanSet(int size)
Builds an empty bit set |
Method Summary | |
---|---|
void |
clear()
Clear the bit set |
int |
lastIndex()
Return the capacity of the bit set |
boolean |
lookup(int index)
Get the i-th element |
void |
set(int index)
Set the i-th element to true |
int |
size()
Return the number of elements set to true |
java.lang.String |
toString()
Returns a string representation of this object |
void |
unset(int index)
Set the i-th element to false |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public BooleanSet(int size)
Method Detail |
---|
public void set(int index)
public void unset(int index)
public boolean lookup(int index)
public int size()
public int lastIndex()
public void clear()
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |