Class BooleanUtils


  • public class BooleanUtils
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      BooleanUtils()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.util.Optional<java.lang.Boolean> extract​(java.lang.String value)
      Extracts an optional boolean from a String value.
      • Methods inherited from class java.lang.Object

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

      • BooleanUtils

        public BooleanUtils()
    • Method Detail

      • extract

        public static java.util.Optional<java.lang.Boolean> extract​(java.lang.String value)
        Extracts an optional boolean from a String value.
        Parameters:
        value - the value to extract the boolean from
        Returns:
        an Optional instance wrapping a Boolean instance, if value isn't null, empty or a non-boolean string. Otherwise, returns Optional.empty().