public static void encodeDesc ( Boolean value , byte [ ] dst , int dstOffset ) { if ( value == null ) { dst [ dstOffset ] = NULL_BYTE_LOW ; } else { dst [ dstOffset ] = value . booleanValue ( ) ? ( byte ) 127 : ( byte ) 128 ; } }
Encodes the given Boolean object into exactly 1 byte for descending order .