public final class BitCounter32 extends java.lang.Object implements BitmapStorage32
| Modifier and Type | Field and Description |
|---|---|
private int |
oneBits |
| Constructor and Description |
|---|
BitCounter32() |
| Modifier and Type | Method and Description |
|---|---|
void |
addLiteralWord(int newData)
Virtually add literal words directly to the bitmap
|
void |
addStreamOfEmptyWords(boolean v,
int number)
virtually add many zeroes or ones.
|
void |
addStreamOfLiteralWords(Buffer32 buffer,
int start,
int number)
virtually add several literal words.
|
void |
addStreamOfNegatedLiteralWords(Buffer32 buffer,
int start,
int number)
virtually add several negated literal words.
|
void |
addWord(int newData)
Virtually add words directly to the bitmap
|
void |
clear()
Empties the container.
|
int |
getCount()
As you act on this class, it records the number of set (true) bits.
|
void |
setSizeInBitsWithinLastWord(int bits)
Sets the size in bits of the bitmap as an *uncompressed* bitmap.
|
public void addWord(int newData)
addWord in interface BitmapStorage32newData - the wordpublic void addLiteralWord(int newData)
addLiteralWord in interface BitmapStorage32newData - the wordpublic void addStreamOfLiteralWords(Buffer32 buffer, int start, int number)
addStreamOfLiteralWords in interface BitmapStorage32buffer - the buffer wrapping the literal wordsstart - the starting point in the arraynumber - the number of literal words to addpublic void addStreamOfEmptyWords(boolean v,
int number)
addStreamOfEmptyWords in interface BitmapStorage32v - zeros or onesnumber - how many to words addpublic void addStreamOfNegatedLiteralWords(Buffer32 buffer, int start, int number)
addStreamOfNegatedLiteralWords in interface BitmapStorage32buffer - the buffer wrapping the literal wordsstart - the starting point in the arraynumber - the number of literal words to addpublic void clear()
BitmapStorage32clear in interface BitmapStorage32public int getCount()
public void setSizeInBitsWithinLastWord(int bits)
BitmapStorage32setSizeInBitsWithinLastWord in interface BitmapStorage32bits - the size in bits