|
Lvg Java 2006p Version |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgov.nih.nlm.nls.lvg.Util.Bit
public class Bit
This class provides methods of bit operations.
History:
| Constructor Summary | |
|---|---|
Bit()
|
|
| Method Summary | |
|---|---|
static int |
Add(int b1,
int b2)
Add two integers bitwise. |
static long |
Add(long b1,
long b2)
Add two long bitwise. |
static boolean |
Contain(long container,
long item)
Determine if a long (container) contains another long (item). |
static long |
Minus(long b1,
long b2)
Minus two long bitwise. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Bit()
| Method Detail |
|---|
public static int Add(int b1,
int b2)
b1 - the first integer to be addedb2 - the second integer to be added
public static long Minus(long b1,
long b2)
b1 - the first long to be deductedb2 - the second long to deduct
public static long Add(long b1,
long b2)
b1 - the first long to be addedb2 - the second long to be added
public static boolean Contain(long container,
long item)
container - the long containeritem - the long containee
|
Lvg Java 2006p Version |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||