Here you can find the source of longToBoolean(long l)
public static boolean longToBoolean(long l)
//package com.java2s; //License from project: LGPL public class Main { public static boolean longToBoolean(long l) { return l != 0 ? true : false; }/*from w ww. jav a 2 s. c om*/ }