phelps.lang
public class Booleans extends Object
Version: $Revision: 1.1 $ $Date: 2003/02/02 11:54:49 $
Method Summary | |
---|---|
static boolean | parseBoolean(Object value, boolean defaultval)
Tries to parse value as an boolean --
true iff (case insensitive) "true", "yes", "on" (not "no"!) |
boolean
--
true
iff (case insensitive) "true", "yes", "on" (not "no"!), "1", Boolean#TRUE --
but if String is null
or can't be parsed as an int
returns defaultval .