Here you can find the source of valueOfBooleanStr(String str)
private static Boolean valueOfBooleanStr(String str)
//package com.java2s; //License from project: Open Source License public class Main { private static Boolean valueOfBooleanStr(String str) { return (Boolean.TRUE.equals(Boolean.valueOf(str)) || str.equalsIgnoreCase("yes")); }//from w w w . ja va 2s. com }