Java Byte Create toByte(String value)

Here you can find the source of toByte(String value)

Description

to Byte

License

Open Source License

Declaration

public static Byte toByte(String value) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    public static Byte toByte(String value) {
        if (null == value) {
            return null;
        }//  w ww  .j a  v a2 s. c o m
        value = value.trim();
        if ("null".equals(value)) {
            return null;
        }
        return Byte.parseByte(value);
    }

    public static Byte toByte(Object value) {
        if (null == value) {
            return null;
        }
        return toByte(String.valueOf(value));
    }
}

Related

  1. toByte(String hexString)
  2. toByte(String str)
  3. toByte(String string)
  4. toByte(String string)
  5. toByte(String string)
  6. toByte(String value)
  7. toByte(T value)
  8. toByteBE(int value, byte[] dst, int offset)
  9. toByteByAddress(String address)