Here you can find the source of byteToBoolean(byte b)
public static boolean byteToBoolean(byte b)
//package com.java2s; //License from project: LGPL public class Main { public static boolean byteToBoolean(byte b) { return b != 0 ? true : false; }/* w ww . j av a 2s.com*/ }