Java Byte Create toByte(byte[] value)

Here you can find the source of toByte(byte[] value)

Description

byte[] -> byte

License

Open Source License

Parameter

Parameter Description
value a parameter

Declaration

public static byte toByte(byte[] value) 

Method Source Code

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

public class Main {
    /**/*from  w w w . j a v a  2s .c  om*/
     * byte[] -> byte
     * 
     * @param value
     * @return
     */
    public static byte toByte(byte[] value) {
        return (value == null || value.length == 0) ? 0x0 : value[0];
    }
}

Related

  1. toByte(boolean value)
  2. toByte(boolean... values)
  3. toByte(byte[] data)
  4. toByte(byte[] src)
  5. toByte(char c)
  6. toByte(char c)
  7. toByte(char c)
  8. toByte(char c)