Java Boolean From toBoolean(byte[] value)

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

Description

byte[] -> boolean

License

Open Source License

Parameter

Parameter Description
value a parameter

Declaration

public static boolean toBoolean(byte[] value) 

Method Source Code

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

public class Main {
    /**//  w  ww.jav a 2s .c  om
     * byte[] -> boolean
     * 
     * @param value
     * @return
     */
    public static boolean toBoolean(byte[] value) {
        return (value == null || value.length == 0) ? false
                : value[0] != 0x00;
    }
}

Related

  1. toBoolean(byte t_logical)
  2. toBoolean(byte[] b)
  3. toBoolean(byte[] byteArray)
  4. toBoolean(byte[] bytes, int offset)
  5. toBoolean(byte[] data, int offset)
  6. toBoolean(char c)
  7. toBoolean(double value)
  8. toBoolean(final Boolean bool)
  9. toBoolean(final Boolean bool)