Here you can find the source of longToBoolean(final Long b)
public static boolean longToBoolean(final Long b)
//package com.java2s; //License from project: Open Source License public class Main { public static boolean longToBoolean(final Long b) { if (b == null) { return false; }//ww w .j av a 2 s . c o m return b != 0; } }