Package alpine.common.util
Class BooleanUtil
java.lang.Object
alpine.common.util.BooleanUtil
A collection of useful Boolean utilities.
- Since:
- 1.0.0
- Author:
- Steve Springett
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanDetermines if the specified object is null or not.static booleanDetermines if the specified object is null or not.static booleanDetermines if the specified string contains 'true' or '1'
-
Method Details
-
valueOf
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
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
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
-