Here you can find the source of boolean2long(boolean b)
public static long boolean2long(boolean b)
//package com.java2s; //License from project: Apache License public class Main { public static long boolean2long(boolean b) { return b ? -1L : 0L; }//from w ww. j a v a 2 s. c om }