public class NonEmptyVirtualStorage extends Object implements BitmapStorage
Constructor and Description |
---|
NonEmptyVirtualStorage() |
Modifier and Type | Method and Description |
---|---|
void |
add(long newdata)
If the word to be added is non-zero, a NonEmptyException exception is
thrown.
|
void |
addStreamOfEmptyWords(boolean v,
long number)
If the boolean value is true and number>0, then it throws a NonEmptyException exception,
otherwise, nothing happens.
|
void |
addStreamOfLiteralWords(long[] data,
int start,
int number)
throws a NonEmptyException exception when number > 0
|
void |
addStreamOfNegatedLiteralWords(long[] data,
int start,
int number)
throws a NonEmptyException exception when number > 0
|
void |
setSizeInBits(int bits)
Does nothing.
|
public void add(long newdata)
add
in interface BitmapStorage
newdata
- the wordBitmapStorage.add(long)
public void addStreamOfLiteralWords(long[] data, int start, int number)
addStreamOfLiteralWords
in interface BitmapStorage
data
- the literal wordsstart
- the starting point in the arraynumber
- the number of literal words to addcom.googlecode.javaewah.BitmapStorage#addStreamOfLiteralWords(long[], long, long)
public void addStreamOfEmptyWords(boolean v, long number)
addStreamOfEmptyWords
in interface BitmapStorage
v
- zeros or onesnumber
- how many to words addBitmapStorage.addStreamOfEmptyWords(boolean, long)
public void addStreamOfNegatedLiteralWords(long[] data, int start, int number)
addStreamOfNegatedLiteralWords
in interface BitmapStorage
data
- the literal wordsstart
- the starting point in the arraynumber
- the number of literal words to addcom.googlecode.javaewah.BitmapStorage#addStreamOfNegatedLiteralWords(long[], long,
long)
public void setSizeInBits(int bits)
setSizeInBits
in interface BitmapStorage
bits
- number of bitsBitmapStorage.setSizeInBits(int)
Copyright © 2013. All rights reserved.