|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.h2.dev.hash.IntPerfectHash.BitArray
public static class IntPerfectHash.BitArray
A helper class for bit arrays.
| Constructor Summary | |
|---|---|
IntPerfectHash.BitArray()
|
|
| Method Summary | |
|---|---|
static int |
countBits(byte[] data)
Count the number of set bits. |
static boolean |
getBit(byte[] data,
int x)
Get a bit in a bit array. |
static byte[] |
setBit(byte[] data,
int x,
boolean value)
Set a bit in the array. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IntPerfectHash.BitArray()
| Method Detail |
|---|
public static byte[] setBit(byte[] data,
int x,
boolean value)
data - the arrayx - the bit indexvalue - the new value
public static boolean getBit(byte[] data,
int x)
data - the arrayx - the bit index
public static int countBits(byte[] data)
data - the array
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||