Package com.helger.commons.lang
Class BooleanHelper
- java.lang.Object
-
- com.helger.commons.lang.BooleanHelper
-
@Immutable public final class BooleanHelper extends Object
Misc helper methods for handling booleans.- Author:
- Philip Helger
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleangetBooleanValue(Boolean aObj, boolean bDefault)Get the primitive value of the passed object value.
-
-
-
Method Detail
-
getBooleanValue
public static boolean getBooleanValue(@Nullable Boolean aObj, boolean bDefault)
Get the primitive value of the passed object value.- Parameters:
aObj- The Boolean value to be convertedbDefault- The default value to be returned, if the passed obj isnull.- Returns:
- Either the primitive boolean value or the default value
-
-