|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.activemq.util.BitArray
Simple BitArray to enable setting multiple boolean values efficently Used instead of BitSet because BitSet does not allow for efficent serialization. Will store up to 64 boolean values
| Constructor Summary | |
BitArray()
|
|
| Method Summary | |
boolean |
get(int index)
|
long |
getBits()
|
int |
length()
|
void |
readFromStream(java.io.DataInput dataIn)
read the bits from an input stream |
void |
reset()
reset all the bit values to false |
void |
reset(long bits)
reset all the bits to the value supplied |
boolean |
set(int index,
boolean flag)
set the boolean value at the index |
void |
writeToStream(java.io.DataOutput dataOut)
write the bits to an output stream |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public BitArray()
| Method Detail |
public int length()
public long getBits()
public boolean set(int index,
boolean flag)
index - flag -
public boolean get(int index)
index -
public void reset()
public void reset(long bits)
bits -
public void writeToStream(java.io.DataOutput dataOut)
throws java.io.IOException
dataOut -
java.io.IOException
public void readFromStream(java.io.DataInput dataIn)
throws java.io.IOException
dataIn -
java.io.IOException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||