BitmapOfLong, BitmapOfLongVectorpublic abstract class AbstractBitmap extends java.lang.Object implements Bitmap
| Constructor | Description |
|---|---|
AbstractBitmap() |
| Modifier and Type | Method | Description |
|---|---|---|
protected abstract void |
allocateBitmap() |
Allocates the storage space for bitSize() bits.
|
void |
and(Bitmap other) |
and: bitmap -> bitmap = (bitmap & other).
|
int |
bitCount() |
Returns the number of bits set in the bitmap.
|
Bitmap |
comparableInstance(Bitmap other) |
Returns a bitmap instance with the same number of bits as this bitmap.
|
int |
compareTo(Bitmap other) |
|
Bitmap |
copy() |
Creates an instance-compatible copy of this bitmap.
|
protected void |
copyFrom(byte[] byteBitmap) |
|
protected void |
copyFrom(Bitmap other) |
|
protected void |
copyFrom(java.lang.String strBitmap) |
|
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.
|
protected Bitmap |
createInstance(int capacity) |
|
protected Bitmap |
createInstance(Bitmap other) |
Creates an instance of the implementing class based on the given parameters.
|
void |
dec() |
Decrements the integer value of this bitmap by one: bitmap--.
|
void |
defBit(int bitIndex,
boolean bitValue) |
|
boolean |
equals(java.lang.Object other) |
|
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 |
setBits(boolean value) |
|
java.lang.String |
toNumberString() |
Returns a string for the integer represented by this bitmap
|
java.lang.String |
toString() |
|
void |
xor(Bitmap other) |
Updates this bitmap with the result of the bitwise AND with the other bitmap: bitmap
= (bitmap ^ other).
|
public void and(Bitmap other)
Bitmappublic int bitCount()
Bitmappublic Bitmap comparableInstance(Bitmap other)
BitmapcomparableInstance in interface Bitmappublic int compareTo(Bitmap other)
compareTo in interface java.lang.Comparable<Bitmap>public Bitmap copy()
Bitmappublic Bitmap copyHighest(int numBits)
BitmapcopyHighest in interface Bitmappublic Bitmap copyLowest(int numBits)
BitmapcopyLowest in interface Bitmappublic void dec()
Bitmappublic boolean equals(java.lang.Object other)
equals in class java.lang.Objectpublic void inc()
Bitmappublic void nand(Bitmap other)
Bitmappublic void not()
Bitmappublic void or(Bitmap other)
Bitmappublic java.lang.String toString()
toString in class java.lang.Objectpublic void xor(Bitmap other)
Bitmapprotected abstract void allocateBitmap()
protected void copyFrom(Bitmap other)
protected void copyFrom(java.lang.String strBitmap)
protected void copyFrom(byte[] byteBitmap)
protected Bitmap createInstance(Bitmap other)
protected Bitmap createInstance(int capacity)
public java.lang.String toNumberString()
BitmaptoNumberString in interface Bitmap