Package com.qfs.bitmap
Interface IClearableBitmap
- All Superinterfaces:
Cloneable,IBitmap,IClone<IBitmap>,Serializable
- All Known Implementing Classes:
Bitmap,ChunkedBitmap
- Author:
- ActiveViam
-
Method Summary
Modifier and TypeMethodDescriptionPerforms a logical AND operation between two bitmaps.Performs a logical AND NOT operation between two bitmaps.voidbulkSet(IClearableBitmap bitmap) Sets all the bits of the given bitmap in this bitmap.voidclear(int index) Clears the bit at the given position, i.e.clone()This method is very similar to the one used by Object except that it returns the real class.Performs a logical OR operation between two bitmaps.voidset(int index) Sets the bit at a given position totrue.voidsetRange(int first, int last) Sets all the bits fromfirst(included) tolast(included) totrue.Performs a logical XOR operation between two bitmaps.Methods inherited from interface com.qfs.bitmap.IBitmap
and, andNot, cardinality, clear, dataSizeInBytes, forEachBit, get, getIterator, getLast, isEmpty, not, or, sizeInBytes, stream, xor
-
Method Details
-
set
void set(int index) Sets the bit at a given position totrue.The bits can be set in random order.
-
setRange
void setRange(int first, int last) Sets all the bits fromfirst(included) tolast(included) totrue.- Parameters:
first- the position of the first bit to set (included)last- the position of the last bit to set (included)
-
clear
void clear(int index) Clears the bit at the given position, i.e. sets it tofalse.- Parameters:
index- the position of the bit to clear
-
bulkSet
Sets all the bits of the given bitmap in this bitmap. This is equivalent to a logical OR operation to this bitmap and the given other bitmap.The bitmaps must have the same implementation.
- Parameters:
bitmap- the bitmap
-
clone
IClearableBitmap clone()Description copied from interface:ICloneThis method is very similar to the one used by Object except that it returns the real class. -
and
Description copied from interface:IBitmapPerforms a logical AND operation between two bitmaps. -
or
Description copied from interface:IBitmapPerforms a logical OR operation between two bitmaps. -
xor
Description copied from interface:IBitmapPerforms a logical XOR operation between two bitmaps. -
andNot
Description copied from interface:IBitmapPerforms a logical AND NOT operation between two bitmaps.
-