Class BooleanHelper


  • @Immutable
    public final class BooleanHelper
    extends Object
    Misc helper methods for handling booleans.
    Author:
    Philip Helger
    • 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 converted
        bDefault - The default value to be returned, if the passed obj is null.
        Returns:
        Either the primitive boolean value or the default value