Modifier and Type | Field and Description |
---|---|
private int | |
private int[] | |
private int | |
pack-priv int | |
private int | |
private int | |
pack-priv int | |
private int | |
private static final int[] | |
private int | |
private int | _pos
This method returns the Nth bit that is set in the bit array. |
private static final boolean | |
pack-priv static final long |
Access | Constructor and Description |
---|---|
public | |
public | |
public |
Modifier and Type | Method and Description |
---|---|
public BitArray | |
public final int[] | |
public final boolean | |
public final int | |
public int | |
public final int | |
public final BitArray | |
public void | readExternal(ObjectInput
the stream to read data from in order to restore the object in)Implements java. Read the whole tree from a file (serialized) |
public final void | |
public final void | |
public void | |
public final int | |
public void | writeExternal(ObjectOutput
the stream to write the object to out)Implements java. The object implements the writeExternal method to save its contents by calling the methods of DataOutput for its primitive values or calling the writeObject method of ObjectOutput for objects, strings, and arrays. |
_bit | back to summary |
---|---|
private int _bit |
_bits | back to summary |
---|---|
private int[] _bits |
_bitSize | back to summary |
---|---|
private int _bitSize |
_first | back to summary |
---|---|
pack-priv int _first |
_int | back to summary |
---|---|
private int _int |
_intSize | back to summary |
---|---|
private int _intSize |
_last | back to summary |
---|---|
pack-priv int _last |
_mask | back to summary |
---|---|
private int _mask |
_masks | back to summary |
---|---|
private static final int[] _masks |
_node | back to summary |
---|---|
private int _node |
_pos | back to summary |
---|---|
private int _pos This method returns the Nth bit that is set in the bit array. The current position is cached in the following 4 variables and will help speed up a sequence of next() call in an index iterator. This method is a mess, but it is fast and it works, so don't change it. |
DEBUG_ASSERTIONS | back to summary |
---|---|
private static final boolean DEBUG_ASSERTIONS |
serialVersionUID | back to summary |
---|---|
pack-priv static final long serialVersionUID |
BitArray | back to summary |
---|---|
public BitArray() Constructor. Defines the initial size of the bit array (in bits). |
BitArray | back to summary |
---|---|
public BitArray(int size) |
BitArray | back to summary |
---|---|
public BitArray(int size, int[] bits) |
cloneArray | back to summary |
---|---|
public BitArray cloneArray() |
data | back to summary |
---|---|
public final int[] data() Returns the integer array in which the bit array is contained |
getBit | back to summary |
---|---|
public final boolean getBit(int bit) Returns true if the given bit is set |
getBitNumber | back to summary |
---|---|
public final int getBitNumber(int pos) |
getMask | back to summary |
---|---|
public int getMask() See setMask() |
getNextBit | back to summary |
---|---|
public final int getNextBit(int startBit) Returns the next set bit from a given position |
merge | back to summary |
---|---|
public final BitArray merge(BitArray other) Merge two bit arrays. This currently only works for nodes from a single DOM (because there is only one _mask per array). |
readExternal | back to summary |
---|---|
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException Implements java. Read the whole tree from a file (serialized)
|
resize | back to summary |
---|---|
public final void resize(int newSize) Resizes the bit array - try to avoid using this method!!! |
setBit | back to summary |
---|---|
public final void setBit(int bit) Sets a given bit |
setMask | back to summary |
---|---|
public void setMask(int mask) Set the mask for this bit array. The upper 8 bits of this mask indicate the DOM in which the nodes in this array belong. |
size | back to summary |
---|---|
public final int size() Returns the size of this bit array (in bits). |
writeExternal | back to summary |
---|---|
public void writeExternal(ObjectOutput out) throws IOException Implements java. Doc from java. The object implements the writeExternal method to save its contents by calling the methods of DataOutput for its primitive values or calling the writeObject method of ObjectOutput for objects, strings, and arrays.
|