Here you can find the source of valueOf(Boolean value)
public static boolean valueOf(Boolean value)
//package com.java2s; //License from project: Apache License public class Main { public static byte valueOf(Byte value) { if (value == null) return 0; return value.byteValue(); }/*from w w w . j a v a 2 s . co m*/ public static short valueOf(Short value) { if (value == null) return 0; return value.shortValue(); } public static int valueOf(Integer value) { if (value == null) return 0; return value.intValue(); } public static long valueOf(Long value) { if (value == null) return 0; return value.longValue(); } public static double valueOf(Double value) { if (value == null) return 0; return value.doubleValue(); } public static float valueOf(Float value) { if (value == null) return 0; return value.floatValue(); } public static boolean valueOf(Boolean value) { if (value == null) return false; return value.booleanValue(); } public static char valueOf(Character value) { if (value == null) return 0; return value.charValue(); } }