Here you can find the source of toBoolean(byte[] value)
Parameter | Description |
---|---|
value | a parameter |
public static boolean toBoolean(byte[] value)
//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; } }