java.lang.Comparable<Bitmap>
AbstractBitmap
, BitmapOfLong
, BitmapOfLongVector
public interface Bitmap extends java.lang.Comparable<Bitmap>
Modifier and Type | Field | Description |
---|---|---|
static char |
CH_ONE |
|
static char |
CH_ZERO |
|
static long |
LONG_MASK |
|
static long |
LONG_ONE |
|
static long |
LONG_ZERO |
|
static byte |
SZ_LONG |
Modifier and Type | Method | Description |
---|---|---|
void |
and(Bitmap other) |
and: bitmap -> bitmap = (bitmap & other).
|
int |
bitCount() |
Returns the number of bits set in the bitmap.
|
int |
bitSize() |
Returns the length in bits of the bitmap.
|
void |
clearBit(int bitIndex) |
|
Bitmap |
comparableInstance(Bitmap other) |
Returns a bitmap instance with the same number of bits as this bitmap.
|
Bitmap |
copy() |
Creates an instance-compatible copy of this bitmap.
|
Bitmap |
copyHighest(int numBits) |
Creates an instance-compatible copy of highest numBits bits of this bitmap.
|
Bitmap |
copyLowest(int numBits) |
Creates an instance-compatible copy of lowest numBits bits of this bitmap.
|
void |
dec() |
Decrements the integer value of this bitmap by one: bitmap--.
|
void |
defBit(int bitIndex,
boolean value) |
|
void |
flipBit(int bitIndex) |
|
int |
hsb() |
|
int |
hub() |
|
void |
inc() |
Increments the integer value of this bitmap by one: bitmap++.
|
int |
lsb() |
|
int |
lub() |
|
void |
nand(Bitmap other) |
Updates this bitmap with the result of the bitwise AND with the other bitmap: bitmap
= ~(bitmap & other).
|
void |
not() |
Inverts the bits of this bitmap: bitmap = ~bitmap.
|
void |
or(Bitmap other) |
Updates this bitmap with the result of the bitwise AND with the other bitmap: bitmap
= (bitmap | other).
|
void |
setBit(int bitIndex) |
|
void |
setBits(boolean value) |
|
boolean |
testBit(int bitIndex) |
|
java.lang.String |
toNumberString() |
Returns a string for the integer represented by this bitmap
|
void |
xor(Bitmap other) |
Updates this bitmap with the result of the bitwise AND with the other bitmap: bitmap
= (bitmap ^ other).
|
static final char CH_ONE
static final char CH_ZERO
static final long LONG_MASK
static final long LONG_ONE
static final long LONG_ZERO
static final byte SZ_LONG
void and(Bitmap other)
int bitCount()
int bitSize()
void clearBit(int bitIndex)
Bitmap comparableInstance(Bitmap other)
Bitmap copy()
Bitmap copyHighest(int numBits)
Bitmap copyLowest(int numBits)
void dec()
void defBit(int bitIndex, boolean value)
void flipBit(int bitIndex)
int hsb()
int hub()
void inc()
int lsb()
int lub()
void nand(Bitmap other)
void not()
void or(Bitmap other)
void setBit(int bitIndex)
void setBits(boolean value)
boolean testBit(int bitIndex)
void xor(Bitmap other)
java.lang.String toNumberString()