Java Utililty Methods Object to Byte

List of utility methods to do Object to Byte

Description

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

Method

BytecastByte(Object o)
cast Byte
if (o instanceof Number) {
    return ((Number) o).byteValue();
return null;
byte[]castBytes(Object o)
Casts a value to a byte array.
if (o == null) {
    return null;
if (o instanceof byte[]) {
    return (byte[]) o;
return null;
BytecastToByte(Object val)
cast To Byte
if (val == null) {
    return null;
if (val instanceof Byte) {
    return (Byte) val;
if (val instanceof String) {
    return Byte.parseByte((String) val);
...
BytecastToByte(Object value)
cast To Byte
if (value == null) {
    return null;
if (value instanceof Number) {
    return ((Number) value).byteValue();
if (value instanceof String) {
    String strVal = (String) value;
...
BytecastToByte(Object value)
cast To Byte
return (Byte) value;