Here you can find the source of boolean2integer(boolean b)
public static int boolean2integer(boolean b)
//package com.java2s; //License from project: Apache License public class Main { public static int boolean2integer(boolean b) { return b ? -1 : 0; }/*w w w. j a va 2s. co m*/ }