Java Utililty Methods Boolean to Byte

List of utility methods to do Boolean to Byte

Description

The list of methods to do Boolean to Byte are organized into topic(s).

Method

byte[]booleanToBytes(final boolean b)
boolean To Bytes
return b ? new byte[] { TRUE_BITS } : new byte[] { FALSE_BITS };
byteconvertBooleanToByte(boolean inputBool)
convert Boolean To Byte
int output = (inputBool) ? 1 : 0;
return (byte) output;