public class NonEmptyVirtualStorage32 extends java.lang.Object implements BitmapStorage32
| Modifier and Type | Class and Description |
|---|---|
(package private) static class |
NonEmptyVirtualStorage32.NonEmptyException |
| Modifier and Type | Field and Description |
|---|---|
private static NonEmptyVirtualStorage32.NonEmptyException |
nonEmptyException |
| Constructor and Description |
|---|
NonEmptyVirtualStorage32() |
| Modifier and Type | Method and Description |
|---|---|
void |
addLiteralWord(int newData)
If the word to be added is non-zero, a NonEmptyException exception is
thrown.
|
void |
addStreamOfEmptyWords(boolean v,
int number)
If the boolean value is true and number is greater than 0, then it
throws a NonEmptyException exception, otherwise, nothing happens.
|
void |
addStreamOfLiteralWords(Buffer32 buffer,
int start,
int number)
throws a NonEmptyException exception when number is greater than 0
|
void |
addStreamOfNegatedLiteralWords(Buffer32 buffer,
int start,
int number)
throws a NonEmptyException exception when number is greater than 0
|
void |
addWord(int 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 NonEmptyVirtualStorage32.NonEmptyException nonEmptyException
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 void setSizeInBitsWithinLastWord(int bits)
setSizeInBitsWithinLastWord in interface BitmapStorage32bits - the size in bitsBitmapStorage.setSizeInBitsWithinLastWord(int)