|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectchoco.util.BitSet
public class BitSet
Implements utilities for handling bit sets
| Constructor Summary | |
|---|---|
BitSet()
|
|
| Method Summary | |
|---|---|
static boolean |
getBit(int n,
int i)
tests whether the i-th bit of an search is on or off |
static int |
getHeavierBit(int n)
returns the heaviest bit on (-1 if none) |
static int |
setBit(int n,
int i)
sets the i-th bit of an search (does nothing if it is already on) |
static int |
unsetBit(int n,
int i)
sets the i-th bit of an search (does nothing if it is already on) |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BitSet()
| Method Detail |
|---|
public static boolean getBit(int n,
int i)
public static int setBit(int n,
int i)
public static int unsetBit(int n,
int i)
public static int getHeavierBit(int n)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||