|
CoherenceTM v3.3 Copyright© 2000-2007 by Oracle Corporation |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.tangosol.util.Base
com.tangosol.util.BitHelper
public class BitHelper
A collection of methods for bit-based operations.
Constructor Summary | |
---|---|
BitHelper()
|
Method Summary | |
---|---|
static int |
countBits(byte b)
Count the number of bits set in the passed integral value. |
static int |
countBits(int n)
Count the number of bits set in the passed integral value. |
static int |
countBits(long l)
Count the number of bits set in the passed integral value. |
static int |
indexOfLSB(byte b)
Determine the least significant bit of the passed integral value. |
static int |
indexOfLSB(int n)
Determine the least significant bit of the passed integral value. |
static int |
indexOfLSB(long l)
Determine the least significant bit of the passed integral value. |
static int |
indexOfMSB(byte b)
Determine the most significant bit of the passed integral value. |
static int |
indexOfMSB(int n)
Determine the most significant bit of the passed integral value. |
static int |
indexOfMSB(long l)
Determine the most significant bit of the passed integral value. |
static String |
toBitString(byte b)
Convert a byte to a String of ones and zeros. |
static String |
toBitString(int n)
Convert an int to a String of ones and zeros. |
static String |
toBitString(long l)
Convert a long to a String of ones and zeros. |
Constructor Detail |
---|
public BitHelper()
Method Detail |
---|
public static int countBits(byte b)
b
- a byte
public static int countBits(int n)
n
- an int
public static int countBits(long l)
l
- a long
public static int indexOfMSB(byte b)
b
- a byte
public static int indexOfMSB(int n)
n
- an int
public static int indexOfMSB(long l)
l
- a long
public static int indexOfLSB(byte b)
b
- a byte
public static int indexOfLSB(int n)
n
- an int
public static int indexOfLSB(long l)
l
- a long
public static String toBitString(byte b)
b
- a byte
public static String toBitString(int n)
n
- an int
public static String toBitString(long l)
l
- a long
|
CoherenceTM v3.3 Copyright© 2000-2007 by Oracle Corporation |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |