public final class BitCounter32 extends Object implements BitmapStorage32
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(com.googlecode.javaewah32.Buffer32 buffer,
int start,
int number)
virtually add several literal words.
|
void |
addStreamOfNegatedLiteralWords(com.googlecode.javaewah32.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 BitmapStorage32
newData
- the wordpublic void addLiteralWord(int newData)
addLiteralWord
in interface BitmapStorage32
newData
- the wordpublic void addStreamOfLiteralWords(com.googlecode.javaewah32.Buffer32 buffer, int start, int number)
addStreamOfLiteralWords
in interface BitmapStorage32
buffer
- 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 BitmapStorage32
v
- zeros or onesnumber
- how many to words addpublic void addStreamOfNegatedLiteralWords(com.googlecode.javaewah32.Buffer32 buffer, int start, int number)
addStreamOfNegatedLiteralWords
in interface BitmapStorage32
buffer
- the buffer wrapping the literal wordsstart
- the starting point in the arraynumber
- the number of literal words to addpublic void clear()
BitmapStorage32
clear
in interface BitmapStorage32
public int getCount()
public void setSizeInBitsWithinLastWord(int bits)
BitmapStorage32
setSizeInBitsWithinLastWord
in interface BitmapStorage32
bits
- the size in bitsCopyright © 2016. All Rights Reserved.