org.apache.logging.log4j.core.helpers
Class Booleans
java.lang.Object
org.apache.logging.log4j.core.helpers.Booleans
public class Booleans
- extends Object
Boolean helpers.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Booleans
public Booleans()
parseBoolean
public static boolean parseBoolean(String s,
boolean defaultValue)
- Parameters:
s
- a String
containing the boolean
representation to parse, may be null
or
""
defaultValue
- the return value, use defaultValue
if s
is null
or ""
- Returns:
- the boolean value represented by the argument.
Copyright © 1999-2013 Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.