Package com.helger.commons.lang
Class BooleanHelper
java.lang.Object
com.helger.commons.lang.BooleanHelper
Misc helper methods for handling booleans.
- Author:
- Philip Helger
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleangetBooleanValue(Boolean aObj, boolean bDefault) Get the primitive value of the passed object value.
-
Method Details
-
getBooleanValue
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
-