public final class BitField extends Object implements Serializable
BitSet
and was specifically developed to be used with huge
bit sets in ISnapshot (e.g. needed in virtual GC traces). Out of performance
reasons no method does any parameter checking, i.e. only valid values are
expected.Constructor and Description |
---|
BitField(int size)
Creates a bit field with the given number of bits.
|
Modifier and Type | Method and Description |
---|---|
void |
clear(int index)
Clears the bit on the given index.
|
boolean |
get(int index)
Gets the bit on the given index.
|
void |
set(int index)
Sets the bit on the given index.
|
public BitField(int size)
size
- the maximum size of the BitFieldpublic final void set(int index)
index
- The 0-based index into the BitField.public final void clear(int index)
index
- The 0-based index into the BitField.public final boolean get(int index)
index
- The 0-based index into the BitField.