Package com.illumon.iris.db.util
Class BooleanUtils
java.lang.Object
com.illumon.util.BooleanUtils
com.illumon.iris.db.util.BooleanUtils
public class BooleanUtils extends BooleanUtils
Utilities for translating boxed
Boolean
s to/from primitive bytes.-
Field Summary
Fields inherited from class com.illumon.util.BooleanUtils
FALSE_BOOLEAN_AS_BYTE, NULL_BOOLEAN_AS_BYTE, NULL_BOOLEAN_AS_BYTE_BOXED, TRUE_BOOLEAN_AS_BYTE
-
Constructor Summary
Constructors Constructor Description BooleanUtils()
-
Method Summary
Modifier and Type Method Description static byte
booleanAsByte(Boolean booleanValue)
ConvertbooleanValue
to a byte.static Boolean
byteAsBoolean(byte byteValue)
ConvertbyteValue
to a Boolean.
-
Constructor Details
-
BooleanUtils
public BooleanUtils()
-
-
Method Details
-
byteAsBoolean
ConvertbyteValue
to a Boolean.- Parameters:
byteValue
- the byte to convert to a boxed boolean- Returns:
- the boxed boolean represented by byteValue
-
booleanAsByte
ConvertbooleanValue
to a byte.- Parameters:
booleanValue
- the boxed boolean value to convert to a byte- Returns:
- booleanValue represented as a byte
-