Class BooleanUtil

java.lang.Object
liquibase.util.BooleanUtil
Direct Known Subclasses:
BooleanParser, BooleanUtils

public class BooleanUtil extends Object
Various utility methods for working with boolean objects.
  • Constructor Details

    • BooleanUtil

      public BooleanUtil()
  • Method Details

    • parseBoolean

      public static boolean parseBoolean(String booleanStr)
      Parameters:
      booleanStr - not trimmed string
      Returns:
      true, if represents values "true", "t", "yes", "y", or integer >= 1, false otherwise
    • isTrue

      @Deprecated public static boolean isTrue(Boolean value)
      Deprecated.
      use BooleanUtils.isTrue(Boolean) instead
      Checks if a Boolean value is true, handling null as false. - isTrue(null) = false - isTrue(false) = false - isTrue(true) = true