public class WrappedBitSetBitmap extends WrappedImmutableBitSetBitmap implements MutableBitmap
bitmap| Constructor and Description |
|---|
WrappedBitSetBitmap() |
WrappedBitSetBitmap(BitSet bitSet) |
WrappedBitSetBitmap(ByteBuffer byteBuffer) |
| 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.
|
protected BitSet |
cloneBitSet() |
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, unionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcompareTo, difference, get, intersection, isEmpty, iterator, size, toBytes, unionpublic WrappedBitSetBitmap()
public WrappedBitSetBitmap(BitSet bitSet)
public WrappedBitSetBitmap(ByteBuffer byteBuffer)
protected BitSet cloneBitSet()
public void clear()
MutableBitmapclear in interface MutableBitmappublic void or(MutableBitmap mutableBitmap)
MutableBitmapor in interface MutableBitmapmutableBitmap - other bitmappublic void and(MutableBitmap mutableBitmap)
MutableBitmapand in interface MutableBitmapmutableBitmap - other bitmappublic void xor(MutableBitmap mutableBitmap)
MutableBitmapxor in interface MutableBitmapmutableBitmap - other bitmappublic void andNot(MutableBitmap mutableBitmap)
MutableBitmapandNot in interface MutableBitmapmutableBitmap - other bitmappublic int getSizeInBytes()
MutableBitmapgetSizeInBytes in interface MutableBitmappublic void add(int entry)
MutableBitmapadd in interface MutableBitmapentry - integer to be addedpublic void remove(int entry)
MutableBitmapremove in interface MutableBitmapentry - integer to be removepublic void serialize(ByteBuffer buffer)
MutableBitmapserialize in interface MutableBitmapbuffer - where we writeCopyright © 2011–2017. All rights reserved.