Package alpine.util
Class BooleanUtil
- java.lang.Object
-
- alpine.util.BooleanUtil
-
public final class BooleanUtil extends Object
A collection of useful Boolean utilities.- Since:
- 1.0.0
- Author:
- Steve Springett
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleanisNotNull(Object o)Determines if the specified object is null or not.static booleanisNull(Object o)Determines if the specified object is null or not.static booleanvalueOf(String value)Determines if the specified string contains 'true' or '1'
-
-
-
Method Detail
-
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
-
-