/** * Verifies that there are <b>exactly</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 exact number of times the condition should be 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 assertAreExactly(AssertionInfo info, E[] actual, int n, Condition<? super E> condition) { arrays.assertAreExactly(info, failures, conditions, actual, n, condition); }
/** * Verifies that there are <b>exactly</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 exact number of times the condition should be 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 assertAreExactly(AssertionInfo info, E[] actual, int n, Condition<? super E> condition) { arrays.assertAreExactly(info, failures, conditions, actual, n, condition); }
/** * Verifies that there is <b>exactly</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 exact number of times the condition should be 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 assertAreExactly(AssertionInfo info, E[] actual, int n, Condition<? super E> condition) { arrays.assertAreExactly(info, failures, conditions, actual, n, condition); }