public interface MutableBitmap extends ImmutableBitmap
Modifier and Type | Method and Description |
---|---|
void |
add(int entry)
Add the specified integer to the bitmap.
|
void |
and(MutableBitmap mutableBitmap)
Compute the bitwise-and of this bitmap with another bitmap.
|
void |
andNot(MutableBitmap mutableBitmap)
Compute the bitwise-andNot of this bitmap with another bitmap.
|
void |
clear()
Empties the content of this bitmap.
|
int |
getSizeInBytes()
Return the size in bytes for the purpose of serialization to a ByteBuffer.
|
void |
or(MutableBitmap mutableBitmap)
Compute the bitwise-or of this bitmap with another bitmap.
|
void |
remove(int entry)
Remove the specified integer to the bitmap.
|
void |
serialize(ByteBuffer buffer)
Write out a serialized (Immutable) version of the bitmap to the ByteBuffer.
|
void |
xor(MutableBitmap mutableBitmap)
Compute the bitwise-xor of this bitmap with another bitmap.
|
compareTo, difference, get, intersection, isEmpty, iterator, size, toBytes, union
void clear()
void or(MutableBitmap mutableBitmap)
mutableBitmap
- other bitmapvoid and(MutableBitmap mutableBitmap)
mutableBitmap
- other bitmapvoid xor(MutableBitmap mutableBitmap)
mutableBitmap
- other bitmapvoid andNot(MutableBitmap mutableBitmap)
mutableBitmap
- other bitmapint getSizeInBytes()
void add(int entry)
entry
- integer to be addedvoid remove(int entry)
entry
- integer to be removevoid serialize(ByteBuffer buffer)
buffer
- where we writeCopyright © 2011–2017. All rights reserved.