Package org.jf.util
Class NibbleUtils
- java.lang.Object
-
- org.jf.util.NibbleUtils
-
public abstract class NibbleUtils extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description NibbleUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static intextractHighSignedNibble(int value)Extracts the high signed 4-bit nibble from the least significant byte of the given valuestatic intextractHighUnsignedNibble(int value)Extracts the high unsigned 4-bit nibble from the least significant byte of the given valuestatic intextractLowSignedNibble(int value)Extracts the low signed 4-bit nibble from the least significant byte of the given valuestatic intextractLowUnsignedNibble(int value)Extracts the low unsigned 4-bit nibble from the least significant byte of the given value
-
-
-
Method Detail
-
extractHighSignedNibble
public static int extractHighSignedNibble(int value)
Extracts the high signed 4-bit nibble from the least significant byte of the given value- Parameters:
value- the value to extract the nibble from- Returns:
- the extracted signed nibble value
-
extractLowSignedNibble
public static int extractLowSignedNibble(int value)
Extracts the low signed 4-bit nibble from the least significant byte of the given value- Parameters:
value- the value to extract the nibble from- Returns:
- the extracted signed nibble value
-
extractHighUnsignedNibble
public static int extractHighUnsignedNibble(int value)
Extracts the high unsigned 4-bit nibble from the least significant byte of the given value- Parameters:
value- the value to extract the nibble from- Returns:
- the extracted unsigned nibble value
-
extractLowUnsignedNibble
public static int extractLowUnsignedNibble(int value)
Extracts the low unsigned 4-bit nibble from the least significant byte of the given value- Parameters:
value- the value to extract the nibble from- Returns:
- the extracted unsigned nibble value
-
-