/** * Assert that there are <b>at most</b> <i>n</i> array elements satisfying the given condition. * * @param <E> element type * @param info contains information about the assertion. * @param actual the given array. * @param n the number of times the condition should be at most verified. * @param condition the given {@code Condition}. * @throws NullPointerException if the given condition is {@code null}. * @throws AssertionError if the number of elements satisfying the given condition is > n. */ public <E> void assertAreAtMost(AssertionInfo info, E[] actual, int n, Condition<? super E> condition) { arrays.assertAreAtMost(info, failures, conditions, actual, n, condition); }
/** * Assert that there are <b>at most</b> <i>n</i> array elements satisfying the given condition. * * @param <E> element type * @param info contains information about the assertion. * @param actual the given array. * @param n the number of times the condition should be at most verified. * @param condition the given {@code Condition}. * @throws NullPointerException if the given condition is {@code null}. * @throws AssertionError if the number of elements satisfying the given condition is > n. */ public <E> void assertAreAtMost(AssertionInfo info, E[] actual, int n, Condition<? super E> condition) { arrays.assertAreAtMost(info, failures, conditions, actual, n, condition); }
/** * Assert that there is <b>at most</b> <i>n</i> array elements satisfying the given condition. * * @param info contains information about the assertion. * @param actual the given array. * @param n the number of times the condition should be at most verified. * @param condition the given {@code Condition}. * @throws NullPointerException if the given condition is {@code null}. * @throws AssertionError if the number of elements satisfying the given condition is > n. */ public <E> void assertAreAtMost(AssertionInfo info, E[] actual, int n, Condition<? super E> condition) { arrays.assertAreAtMost(info, failures, conditions, actual, n, condition); }