Class BooleanUtil

java.lang.Object
alpine.common.util.BooleanUtil

public final class BooleanUtil extends Object
A collection of useful Boolean utilities.
Since:
1.0.0
Author:
Steve Springett
  • Method Details

    • valueOf

      public static boolean valueOf(String value)
      Determines if the specified string contains 'true' or '1'
      Parameters:
      value - a String representation of a boolean to convert
      Returns:
      a boolean
      Since:
      1.0.0
    • isNull

      public static boolean isNull(Object o)
      Determines if the specified object is null or not.
      Parameters:
      o - the object to evaluate
      Returns:
      true if null, false if not null
      Since:
      1.0.0
    • isNotNull

      public static boolean isNotNull(Object o)
      Determines if the specified object is null or not.
      Parameters:
      o - the object to evaluate
      Returns:
      true if not null, false if null
      Since:
      1.0.0