Package com.qfs.bitmap
Interface IClearableBitmap
-
- All Superinterfaces:
Cloneable,IBitmap,IClone<IBitmap>,Serializable
- All Known Implementing Classes:
Bitmap,ChunkedBitmap
public interface IClearableBitmap extends IBitmap
- Author:
- ActiveViam
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description IClearableBitmapand(IBitmap other)Performs a logical AND operation between two bitmaps.IClearableBitmapandNot(IBitmap other)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.IClearableBitmapclone()This method is very similar to the one used by Object except that it returns the real class.IClearableBitmapor(IBitmap other)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.IClearableBitmapxor(IBitmap other)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 Detail
-
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
void bulkSet(IClearableBitmap bitmap)
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
IClearableBitmap and(IBitmap other)
Description copied from interface:IBitmapPerforms a logical AND operation between two bitmaps.
-
or
IClearableBitmap or(IBitmap other)
Description copied from interface:IBitmapPerforms a logical OR operation between two bitmaps.
-
xor
IClearableBitmap xor(IBitmap other)
Description copied from interface:IBitmapPerforms a logical XOR operation between two bitmaps.
-
andNot
IClearableBitmap andNot(IBitmap other)
Description copied from interface:IBitmapPerforms a logical AND NOT operation between two bitmaps.
-
-