List of utility methods to do Boolean to Byte
byte[] | booleanToBytes(final boolean b) boolean To Bytes return b ? new byte[] { TRUE_BITS } : new byte[] { FALSE_BITS }; |
byte | convertBooleanToByte(boolean inputBool) convert Boolean To Byte int output = (inputBool) ? 1 : 0; return (byte) output; |