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, toString
public 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)
Bitmap
and
in interface Bitmap
and
in class AbstractBitmap
public int bitSize()
Bitmap
public void clearBit(int bitIndex)
public boolean equals(java.lang.Object other)
equals
in class AbstractBitmap
public int hashCode()
hashCode
in class java.lang.Object
public void nand(Bitmap other)
Bitmap
nand
in interface Bitmap
nand
in class AbstractBitmap
public void not()
Bitmap
not
in interface Bitmap
not
in class AbstractBitmap
public void or(Bitmap other)
Bitmap
or
in interface Bitmap
or
in class AbstractBitmap
public void setBit(int bitIndex)
public void setBits(boolean value)
setBits
in interface Bitmap
setBits
in class AbstractBitmap
public boolean testBit(int bitIndex)
public void xor(Bitmap other)
Bitmap
xor
in interface Bitmap
xor
in class AbstractBitmap
protected void allocateBitmap()
AbstractBitmap
allocateBitmap
in class AbstractBitmap
protected int bitCount(int longIndex)
protected int bitOffset(int bitIndex)
protected void copyFrom(Bitmap other)
copyFrom
in class AbstractBitmap
protected Bitmap createInstance(Bitmap other)
AbstractBitmap
createInstance
in class AbstractBitmap
protected Bitmap createInstance(int bitSize)
createInstance
in class AbstractBitmap
protected int longOffset(int bitIndex)
protected long maskSingleBit(int bitIndex)
protected long maskSingleLong(int longIndex)
protected int size()
protected void setBitSize(int bitSize)