public class Bit
extends java.lang.Object
History:
| Constructor and Description |
|---|
Bit() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
public static int Add(int b1,
int b2)
b1 - the first integer to be addedb2 - the second integer to be addedpublic static long Minus(long b1,
long b2)
b1 - the first long to be deductedb2 - the second long to deductpublic static long Add(long b1,
long b2)
b1 - the first long to be addedb2 - the second long to be addedpublic static boolean Contain(long container,
long item)
container - the long containeritem - the long containee