public final class BitmapOfLongVector extends AbstractBitmap
| Constructor | Description |
|---|---|
BitmapOfLongVector(byte[] byteBitmap) |
|
BitmapOfLongVector(int bitSize) |
|
BitmapOfLongVector(int bitSize,
boolean isSet) |
|
BitmapOfLongVector(Bitmap other) |
|
BitmapOfLongVector(java.lang.String strBitmap) |
| Modifier and Type | Method | Description |
|---|---|---|
protected void |
allocateBitmap() |
Allocates the storage space for bitSize() bits.
|
void |
and(Bitmap other) |
and: bitmap -> bitmap = (bitmap & other).
|
protected int |
bitCount(int longIndex) |
Returns the number of valid bits in the long with the given index.
|
protected int |
bitOffset(int bitIndex) |
The highest order bit is at bit 0 of bitmap[0], and the lowest order bit is at bit
bitSize() - 1 of bitmap[size()-1].
|
int |
bitSize() |
Returns the length in bits of the bitmap.
|
void |
clearBit(int bitIndex) |
The highest order bit is at bit 0 of bitmap[0], and the lowest order bit is at bit
bitSize() - 1 of bitmap[size()-1].
|
protected void |
copyFrom(Bitmap other) |
|
protected Bitmap |
createInstance(int bitSize) |
|
protected Bitmap |
createInstance(Bitmap other) |
Creates an instance of the implementing class based on the given parameters.
|
boolean |
equals(java.lang.Object other) |
|
int |
hashCode() |
|
protected int |
longOffset(int bitIndex) |
The highest order bit is at bit 0 of bitmap[0], and the lowest order bit is at bit
bitSize() - 1 of bitmap[size()-1].
|
protected long |
maskSingleBit(int bitIndex) |
Returns a long with a single bit set, corresponding to the bit offset of the given
bit index.
|
protected long |
maskSingleLong(int longIndex) |
Returns a bitmask corresponding to the valid bits of the long with the given index.
|
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) |
The highest order bit is at bit 0 of bitmap[0], and the lowest order bit is at bit
bitSize() - 1 of bitmap[size()-1].
|
void |
setBits(boolean value) |
|
protected void |
setBitSize(int bitSize) |
|
protected int |
size() |
|
boolean |
testBit(int bitIndex) |
|
void |
xor(Bitmap other) |
Updates this bitmap with the result of the bitwise AND with the other bitmap: bitmap
= (bitmap ^ other).
|
bitCount, comparableInstance, compareTo, copy, copyFrom, copyFrom, copyHighest, copyLowest, dec, defBit, flipBit, hsb, hub, inc, lsb, lub, toNumberString, toStringpublic BitmapOfLongVector(Bitmap other)
public BitmapOfLongVector(int bitSize)
public BitmapOfLongVector(int bitSize,
boolean isSet)
public BitmapOfLongVector(java.lang.String strBitmap)
public BitmapOfLongVector(byte[] byteBitmap)
public void and(Bitmap other)
Bitmapand in interface Bitmapand in class AbstractBitmappublic int bitSize()
Bitmappublic void clearBit(int bitIndex)
public boolean equals(java.lang.Object other)
equals in class AbstractBitmappublic int hashCode()
hashCode in class java.lang.Objectpublic void nand(Bitmap other)
Bitmapnand in interface Bitmapnand in class AbstractBitmappublic void not()
Bitmapnot in interface Bitmapnot in class AbstractBitmappublic void or(Bitmap other)
Bitmapor in interface Bitmapor in class AbstractBitmappublic void setBit(int bitIndex)
public void setBits(boolean value)
setBits in interface BitmapsetBits in class AbstractBitmappublic boolean testBit(int bitIndex)
public void xor(Bitmap other)
Bitmapxor in interface Bitmapxor in class AbstractBitmapprotected void allocateBitmap()
AbstractBitmapallocateBitmap in class AbstractBitmapprotected int bitCount(int longIndex)
protected int bitOffset(int bitIndex)
protected void copyFrom(Bitmap other)
copyFrom in class AbstractBitmapprotected Bitmap createInstance(Bitmap other)
AbstractBitmapcreateInstance in class AbstractBitmapprotected Bitmap createInstance(int bitSize)
createInstance in class AbstractBitmapprotected int longOffset(int bitIndex)
protected long maskSingleBit(int bitIndex)
protected long maskSingleLong(int longIndex)
protected int size()
protected void setBitSize(int bitSize)