public static boolean[] intersection(final boolean[] a, final boolean[] b) {
        if (N.isNullOrEmpty(a) || N.isNullOrEmpty(b)) {
            return N.isNullOrEmpty(a) ? a : N.EMPTY_BOOLEAN_ARRAY;
        }

        return BooleanList.of(a).intersection(BooleanList.of(b)).trimToSize().array();
    }
public static boolean [ ] intersection ( final boolean [ ] a , final boolean [ ] b ) { if ( N . isNullOrEmpty ( a ) || N . isNullOrEmpty ( b ) ) { return N . isNullOrEmpty ( a ) ? a : N . EMPTY_BOOLEAN_ARRAY ; } return BooleanList . of ( a ) . intersection ( BooleanList . of ( b ) ) . trimToSize ( ) . array ( ) ; }
@param a
@param b
@return
@see IntList#intersection(IntList)