Class BooleanUtils

java.lang.Object
org.apache.commons.lang3.BooleanUtils
org.craftercms.search.commons.utils.BooleanUtils

public class BooleanUtils extends org.apache.commons.lang3.BooleanUtils
Extension of Apache Common's BooleanUtils thats adds some new methods.
Author:
Alfonso Vásquez
  • Field Summary

    Fields inherited from class org.apache.commons.lang3.BooleanUtils

    FALSE, NO, OFF, ON, TRUE, YES
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static final boolean
    toBoolean(String str, boolean trueIfNull)
    Just as BooleanUtils.toBoolean(String), except that true will be returned if str = null when trueIfNull is true, false otherwise.

    Methods inherited from class org.apache.commons.lang3.BooleanUtils

    and, and, booleanValues, compare, forEach, isFalse, isNotFalse, isNotTrue, isTrue, negate, oneHot, oneHot, or, or, primitiveValues, toBoolean, toBoolean, toBoolean, toBoolean, toBoolean, toBoolean, toBooleanDefaultIfNull, toBooleanObject, toBooleanObject, toBooleanObject, toBooleanObject, toBooleanObject, toBooleanObject, toInteger, toInteger, toInteger, toIntegerObject, toIntegerObject, toIntegerObject, toIntegerObject, toString, toString, toStringOnOff, toStringOnOff, toStringTrueFalse, toStringTrueFalse, toStringYesNo, toStringYesNo, values, xor, xor

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • BooleanUtils

      public BooleanUtils()
  • Method Details

    • toBoolean

      public static final boolean toBoolean(String str, boolean trueIfNull)
      Just as BooleanUtils.toBoolean(String), except that true will be returned if str = null when trueIfNull is true, false otherwise.