public static boolean[] unbox(final Boolean[] a, final boolean valueForNull) {
        if (a == null) {
            return null;
        }

        return unbox(a, 0, a.length, valueForNull);
    }
public static boolean [ ] unbox ( final Boolean [ ] a , final boolean valueForNull ) { if ( a == null ) { return null ; } return unbox ( a , 0 , a . length , valueForNull ) ; }
<p>
Converts an array of object Booleans to primitives handling {@code null}.
</p>

<p>
This method returns {@code null} for a {@code null} input array.
</p>

@param a
a {@code Boolean} array, may be {@code null}
@param valueForNull
the value to insert if {@code null} found
@return a {@code boolean} array, {@code null} if null array input