Here you can find the source of toBooleanObject(String str)
public static Boolean toBooleanObject(String str)
//package com.java2s; //License from project: Apache License public class Main { public static Boolean toBooleanObject(String str) { return str != null ? Boolean.valueOf(str) : null; }// w ww . ja va 2 s.co m public static Boolean toBooleanObject(String str, Boolean defaultValue) { return str != null ? Boolean.valueOf(str) : defaultValue; } }