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, union
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
compareTo, difference, get, intersection, isEmpty, iterator, size, toBytes, union
public WrappedBitSetBitmap()
public WrappedBitSetBitmap(BitSet bitSet)
public WrappedBitSetBitmap(ByteBuffer byteBuffer)
protected BitSet cloneBitSet()
public void clear()
MutableBitmap
clear
in interface MutableBitmap
public void or(MutableBitmap mutableBitmap)
MutableBitmap
or
in interface MutableBitmap
mutableBitmap
- other bitmappublic void and(MutableBitmap mutableBitmap)
MutableBitmap
and
in interface MutableBitmap
mutableBitmap
- other bitmappublic void xor(MutableBitmap mutableBitmap)
MutableBitmap
xor
in interface MutableBitmap
mutableBitmap
- other bitmappublic void andNot(MutableBitmap mutableBitmap)
MutableBitmap
andNot
in interface MutableBitmap
mutableBitmap
- other bitmappublic int getSizeInBytes()
MutableBitmap
getSizeInBytes
in interface MutableBitmap
public void add(int entry)
MutableBitmap
add
in interface MutableBitmap
entry
- integer to be addedpublic void remove(int entry)
MutableBitmap
remove
in interface MutableBitmap
entry
- integer to be removepublic void serialize(ByteBuffer buffer)
MutableBitmap
serialize
in interface MutableBitmap
buffer
- where we writeCopyright © 2011–2017. All rights reserved.