List of utility methods to do Number to Byte
Byte | NumberToByte(final Number value) Number To Byte return value == null ? null : value.byteValue();
|
byte[] | numberToByte(long l, int length) number To Byte byte[] bts = new byte[length]; for (int i = 0; i < length; i++) { bts[i] = (byte) (l >> ((length - i - 1) * 8)); return bts; |
Byte | numberToByte(Object obj) number To Byte return obj instanceof Number ? newByte(obj) : null; |