Package liquibase.util
Class BooleanUtil
java.lang.Object
liquibase.util.BooleanUtil
- Direct Known Subclasses:
BooleanParser
,BooleanUtils
Various utility methods for working with boolean objects.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
Deprecated.static boolean
parseBoolean
(String booleanStr)
-
Constructor Details
-
BooleanUtil
public BooleanUtil()
-
-
Method Details
-
parseBoolean
- Parameters:
booleanStr
- not trimmed string- Returns:
- true, if represents values "true", "t", "yes", "y", or integer >= 1, false otherwise
-
isTrue
Deprecated.useBooleanUtils.isTrue(Boolean)
insteadChecks if aBoolean
value istrue
, handling null asfalse
. - isTrue(null) = false - isTrue(false) = false - isTrue(true) = true
-
BooleanUtils.isTrue(Boolean)
instead