public class BitmapOfLong extends AbstractBitmap
| Modifier | Constructor | Description |
|---|---|---|
protected |
BitmapOfLong() |
|
|
BitmapOfLong(byte[] byteBitmap) |
|
|
BitmapOfLong(int bitSize) |
|
|
BitmapOfLong(int bitSize,
boolean isSet) |
|
|
BitmapOfLong(Bitmap other) |
|
|
BitmapOfLong(java.lang.String strBitmap) |
| Modifier and Type | Method | Description |
|---|---|---|
protected void |
allocateBitmap() |
Allocates the storage space for bitSize() bits.
|
void |
and(Bitmap other) |
TIME = O(1) for a compatible instance of other.
|
int |
bitSize() |
Returns the length in bits of the bitmap.
|
void |
clearBit(int bitIndex) |
The highest order bit is at bit 0 of bitmap, and the lowest order bit is at bit
bitSize() - 1 of bitmap.
|
int |
compareTo(Bitmap other) |
|
protected void |
copyFrom(Bitmap other) |
TIME = O(1).
|
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) |
TIME = O(1) for an instance of BitmapOfLong.
|
int |
hashCode() |
TIME = O(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() |
Returns a bitmask corresponding to the valid bits of the long with the given index.
|
void |
nand(Bitmap other) |
TIME = O(1) for a compatible instance.
|
void |
not() |
TIME = O(1).
|
void |
or(Bitmap other) |
TIME = O(1) for a compatible instance.
|
void |
setBit(int bitIndex) |
The highest order bit is at bit 0 of bitmap, and the lowest order bit is at bit
bitSize() - 1 of bitmap.
|
void |
setBits(boolean value) |
TIME = O(1).
|
protected void |
setBitSize(int bitSize) |
|
boolean |
testBit(int bitIndex) |
TIME = O(1).
|
void |
xor(Bitmap other) |
TIME = O(1) for a compatible instance.
|
bitCount, comparableInstance, copy, copyFrom, copyFrom, copyHighest, copyLowest, dec, defBit, flipBit, hsb, hub, inc, lsb, lub, toNumberString, toStringpublic BitmapOfLong(Bitmap other)
public BitmapOfLong(int bitSize)
public BitmapOfLong(int bitSize,
boolean isSet)
public BitmapOfLong(java.lang.String strBitmap)
public BitmapOfLong(byte[] byteBitmap)
protected BitmapOfLong()
public void and(Bitmap other)
and in interface Bitmapand in class AbstractBitmappublic int bitSize()
Bitmappublic void clearBit(int bitIndex)
public int compareTo(Bitmap other)
compareTo in interface java.lang.Comparable<Bitmap>compareTo in class AbstractBitmappublic boolean equals(java.lang.Object other)
equals in class AbstractBitmappublic int hashCode()
hashCode in class java.lang.Objectpublic void nand(Bitmap other)
nand in interface Bitmapnand in class AbstractBitmappublic void not()
not in interface Bitmapnot in class AbstractBitmappublic void or(Bitmap other)
or 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)
xor in interface Bitmapxor in class AbstractBitmapprotected void allocateBitmap()
AbstractBitmapallocateBitmap in class AbstractBitmapprotected void copyFrom(Bitmap other)
copyFrom in class AbstractBitmapprotected Bitmap createInstance(Bitmap other)
AbstractBitmapcreateInstance in class AbstractBitmapprotected Bitmap createInstance(int bitSize)
createInstance in class AbstractBitmapprotected long maskSingleBit(int bitIndex)
protected long maskSingleLong()
protected void setBitSize(int bitSize)