|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectto.etc.util.BoolVector
public class BoolVector
This contains a packed array of boolean values. The array grows dynamically and each boolean only uses a single bit.
Constructor Summary | |
---|---|
BoolVector()
Create a default vector.. |
|
BoolVector(int cap)
Create a vector for the specified capacity. |
Method Summary | |
---|---|
int |
capacity()
Returns the current capacity |
boolean |
get(int ix)
Get a value from the vector. |
void |
or(BoolVector bv)
Does a bitwise OR of the contents of THIS vector and the parameter vector, and store the result in this vector. |
boolean |
set(int ix,
boolean value)
Set a value in the vector. |
int |
size()
Returns the current #of elements. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BoolVector()
public BoolVector(int cap)
Method Detail |
---|
public boolean set(int ix, boolean value)
public boolean get(int ix)
public int size()
public int capacity()
public void or(BoolVector bv)
bv
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |