/** * Verifies that each element value does not satisfy the given condition * <p> * Example : * <pre><code class='java'> AtomicReferenceArray<String> abc = new AtomicReferenceArray<>(new String[]{"a", "b", "c"}); * AtomicReferenceArray<String> abcc = new AtomicReferenceArray<>(new String[]{"a", "b", "cc"}); * * Condition<String> moreThanOneCharacter = * = new Condition<>(s -> s.length() > 1, "more than one character"); * * // assertion will pass * assertThat(abc).areNot(moreThanOneCharacter); * * // assertion will fail * assertThat(abcc).areNot(moreThanOneCharacter);</code></pre> * * @param condition the given condition. * @return {@code this} object. * @throws NullPointerException if the given condition is {@code null}. * @throws AssertionError if an element cannot be cast to T. * @throws AssertionError if one or more elements satisfy the given condition. */ @Override public AtomicReferenceArrayAssert<T> areNot(Condition<? super T> condition) { arrays.assertAreNot(info, array, condition); return myself; }
/** * Verifies that each element value does not satisfy the given condition * <p> * Example : * <pre><code class='java'> String[] abc = {"a", "b", "c"}; * String[] abcc = {"a", "b", "cc"}; * * Condition<String> moreThanOneCharacter = * = new Condition<>(s -> s.length() > 1, "more than one character"); * * // assertion will pass * assertThat(abc).areNot(moreThanOneCharacter); * * // assertion will fail * assertThat(abcc).areNot(moreThanOneCharacter);</code></pre> * * @param condition the given condition. * @return {@code this} object. * @throws NullPointerException if the given condition is {@code null}. * @throws AssertionError if an element cannot be cast to ELEMENT. * @throws AssertionError if one or more elements satisfy the given condition. */ @Override public SELF areNot(Condition<? super ELEMENT> condition) { arrays.assertAreNot(info, actual, condition); return myself; }
/** * Verifies that each element value does not satisfy the given condition * <p> * Example : * <pre><code class='java'> AtomicReferenceArray<String> abc = new AtomicReferenceArray<>(new String[]{"a", "b", "c"}); * AtomicReferenceArray<String> abcc = new AtomicReferenceArray<>(new String[]{"a", "b", "cc"}); * * Condition<String> moreThanOneCharacter = * = new Condition<>(s -> s.length() > 1, "more than one character"); * * // assertion will pass * assertThat(abc).areNot(moreThanOneCharacter); * * // assertion will fail * assertThat(abcc).areNot(moreThanOneCharacter);</code></pre> * * @param condition the given condition. * @return {@code this} object. * @throws NullPointerException if the given condition is {@code null}. * @throws AssertionError if an element cannot be cast to T. * @throws AssertionError if one or more elements satisfy the given condition. */ @Override public AtomicReferenceArrayAssert<T> areNot(Condition<? super T> condition) { arrays.assertAreNot(info, array, condition); return myself; }
/** * Verifies that each element value does not satisfy the given condition * <p> * Example : * <pre><code class='java'> String[] abc = {"a", "b", "c"}; * String[] abcc = {"a", "b", "cc"}; * * Condition<String> moreThanOneCharacter = * = new Condition<>(s -> s.length() > 1, "more than one character"); * * // assertion will pass * assertThat(abc).areNot(moreThanOneCharacter); * * // assertion will fail * assertThat(abcc).areNot(moreThanOneCharacter);</code></pre> * * @param condition the given condition. * @return {@code this} object. * @throws NullPointerException if the given condition is {@code null}. * @throws AssertionError if an element cannot be cast to ELEMENT. * @throws AssertionError if one or more elements satisfy the given condition. */ @Override public SELF areNot(Condition<? super ELEMENT> condition) { arrays.assertAreNot(info, actual, condition); return myself; }
/** {@inheritDoc} */ @Override public S areNot(Condition<? super T> condition) { arrays.assertAreNot(info, actual, condition); return myself; }