public final class BitCounter32 extends Object implements BitmapStorage32
| Constructor and Description |
|---|
BitCounter32() |
| Modifier and Type | Method and Description |
|---|---|
void |
addStreamOfEmptyWords(boolean v,
int number)
virtually add many zeroes or ones.
|
void |
addStreamOfLiteralWords(int[] data,
int start,
int number)
virtually add several literal words.
|
void |
addStreamOfNegatedLiteralWords(int[] data,
int start,
int number)
virtually add several negated literal words.
|
void |
addWord(int newdata)
Virtually add words directly to the bitmap
|
int |
getCount()
As you act on this class, it records the number of set (true) bits.
|
void |
setSizeInBits(int bits)
should directly set the sizeinbits field, but is effectively ignored
in this class.
|
public void addWord(int newdata)
addWord in interface BitmapStorage32newdata - the wordpublic void addStreamOfLiteralWords(int[] data,
int start,
int number)
addStreamOfLiteralWords in interface BitmapStorage32data - 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(int[] data,
int start,
int number)
addStreamOfNegatedLiteralWords in interface BitmapStorage32data - the literal wordsstart - the starting point in the arraynumber - the number of literal words to addpublic int getCount()
public void setSizeInBits(int bits)
setSizeInBits in interface BitmapStorage32bits - number of bitsCopyright © 2014. All Rights Reserved.