public class NonEmptyVirtualStorage extends java.lang.Object implements BitmapStorage
| Modifier and Type | Class and Description |
|---|---|
(package private) static class |
NonEmptyVirtualStorage.NonEmptyException |
| Modifier and Type | Field and Description |
|---|---|
private static NonEmptyVirtualStorage.NonEmptyException |
nonEmptyException |
| Constructor and Description |
|---|
NonEmptyVirtualStorage() |
| Modifier and Type | Method and Description |
|---|---|
void |
addLiteralWord(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 is greater than 0, then it
throws a NonEmptyException exception, otherwise, nothing happens.
|
void |
addStreamOfLiteralWords(Buffer buffer,
int start,
int number)
throws a NonEmptyException exception when number is greater than 0
|
void |
addStreamOfNegatedLiteralWords(Buffer buffer,
int start,
int number)
throws a NonEmptyException exception when number is greater than 0
|
void |
addWord(long newData)
If the word to be added is non-zero, a NonEmptyException exception is
thrown.
|
void |
clear()
Empties the container.
|
void |
setSizeInBitsWithinLastWord(int bits)
Does nothing.
|
private static final NonEmptyVirtualStorage.NonEmptyException nonEmptyException
public void addWord(long newData)
addWord in interface BitmapStoragenewData - the wordBitmapStorage.addWord(long)public void addLiteralWord(long newData)
addLiteralWord in interface BitmapStoragenewData - the wordBitmapStorage.addWord(long)public void addStreamOfLiteralWords(Buffer buffer, int start, int number)
addStreamOfLiteralWords in interface BitmapStoragebuffer - the buffer wrapping the literal wordsstart - the starting point in the arraynumber - the number of literal words to addpublic void addStreamOfEmptyWords(boolean v,
long number)
addStreamOfEmptyWords in interface BitmapStoragev - zeros or onesnumber - how many to words addBitmapStorage.addStreamOfEmptyWords(boolean,
long)public void addStreamOfNegatedLiteralWords(Buffer buffer, int start, int number)
addStreamOfNegatedLiteralWords in interface BitmapStoragebuffer - the buffer wrapping the literal wordsstart - the starting point in the arraynumber - the number of literal words to addpublic void clear()
BitmapStorageclear in interface BitmapStoragepublic void setSizeInBitsWithinLastWord(int bits)
setSizeInBitsWithinLastWord in interface BitmapStoragebits - the size in bitsBitmapStorage.setSizeInBitsWithinLastWord(int)