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, toString
public 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 Bitmap
and
in class AbstractBitmap
public int bitSize()
Bitmap
public void clearBit(int bitIndex)
public int compareTo(Bitmap other)
compareTo
in interface java.lang.Comparable<Bitmap>
compareTo
in class AbstractBitmap
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)
nand
in interface Bitmap
nand
in class AbstractBitmap
public void not()
not
in interface Bitmap
not
in class AbstractBitmap
public void or(Bitmap other)
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)
xor
in interface Bitmap
xor
in class AbstractBitmap
protected void allocateBitmap()
AbstractBitmap
allocateBitmap
in class AbstractBitmap
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 long maskSingleBit(int bitIndex)
protected long maskSingleLong()
protected void setBitSize(int bitSize)