Package com.illumon.iris.db.util
Class BooleanUtils
java.lang.Object
com.illumon.util.BooleanUtils
com.illumon.iris.db.util.BooleanUtils
Utilities for translating boxed
Booleans 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 -
Method Summary
Modifier and TypeMethodDescriptionstatic bytebooleanAsByte(Boolean booleanValue) ConvertbooleanValueto a byte.static BooleanbyteAsBoolean(byte byteValue) ConvertbyteValueto a Boolean.
-
Constructor Details
-
BooleanUtils
public BooleanUtils()
-
-
Method Details
-
byteAsBoolean
ConvertbyteValueto a Boolean.- Parameters:
byteValue- the byte to convert to a boxed boolean- Returns:
- the boxed boolean represented by byteValue
-
booleanAsByte
ConvertbooleanValueto a byte.- Parameters:
booleanValue- the boxed boolean value to convert to a byte- Returns:
- booleanValue represented as a byte
-