Here you can find the source of asBoolean(String s)
private static Boolean asBoolean(String s)
//package com.java2s; //License from project: Apache License public class Main { private static Boolean asBoolean(String s) { if (s.equalsIgnoreCase("true")) { return Boolean.TRUE; } else if (s.equalsIgnoreCase("false")) { return Boolean.FALSE; } else {/*from w w w.ja v a 2 s. co m*/ return null; } } }