|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.mat.collect.BitField
public final class BitField
This class manages huge bit fields. It is much faster than
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 Summary | |
---|---|
BitField(int size)
Creates a bit field with the given number of bits. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BitField(int size)
Method Detail |
---|
public final void set(int index)
public final void clear(int index)
public final boolean get(int index)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |