BitmapOfLong
, BitmapOfLongVector
public 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)
Bitmap
public int bitCount()
Bitmap
public Bitmap comparableInstance(Bitmap other)
Bitmap
comparableInstance
in interface Bitmap
public int compareTo(Bitmap other)
compareTo
in interface java.lang.Comparable<Bitmap>
public Bitmap copy()
Bitmap
public Bitmap copyHighest(int numBits)
Bitmap
copyHighest
in interface Bitmap
public Bitmap copyLowest(int numBits)
Bitmap
copyLowest
in interface Bitmap
public void dec()
Bitmap
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public void inc()
Bitmap
public void nand(Bitmap other)
Bitmap
public void not()
Bitmap
public void or(Bitmap other)
Bitmap
public java.lang.String toString()
toString
in class java.lang.Object
public void xor(Bitmap other)
Bitmap
protected 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()
Bitmap
toNumberString
in interface Bitmap