info.magnolia.cms.util
Class BooleanUtil

java.lang.Object
  extended by info.magnolia.cms.util.BooleanUtil

public class BooleanUtil
extends Object

Util to convert strings to booleans.

Version:
$Revision: $ ($Author: $)

Constructor Summary
BooleanUtil()
           
 
Method Summary
static boolean toBoolean(String s, boolean defaultValue)
          Behaves much like org.apache.commons.lang.BooleanUtils but returns the defaultValue if the input string is null, empty, or unrecognized.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BooleanUtil

public BooleanUtil()
Method Detail

toBoolean

public static boolean toBoolean(String s,
                                boolean defaultValue)
Behaves much like org.apache.commons.lang.BooleanUtils but returns the defaultValue if the input string is null, empty, or unrecognized.



Copyright © 2003-2013 Magnolia International Ltd.. All Rights Reserved.