/** * Verifies that the actual AtomicReferenceArray contains all the elements of given {@code Iterable}, in any order. * <p> * Example : * <pre><code class='java'> AtomicReferenceArray<String> abc = new AtomicReferenceArray<>(new String[]{"a", "b", "c"}); * * // assertion will pass * assertThat(abc).containsAll(Arrays.asList("b", "c")); * * // assertions will fail * assertThat(abc).containsAll(Arrays.asList("d")); * assertThat(abc).containsAll(Arrays.asList("a", "b", "c", "d"));</code></pre> * * @param iterable the given {@code Iterable} we will get elements from. * @return {@code this} assertion object. * @throws NullPointerException if the given argument is {@code null}. * @throws AssertionError if the actual AtomicReferenceArray is {@code null}. * @throws AssertionError if the actual AtomicReferenceArray does not contain all the elements of given {@code Iterable}. */ @Override public AtomicReferenceArrayAssert<T> containsAll(Iterable<? extends T> iterable) { arrays.assertContainsAll(info, array, iterable); return myself; }
/** * Verifies that the actual array contains all the elements of given {@code Iterable}, in any order. * <p> * Example : * <pre><code class='java'> String[] abc = {"a", "b", "c"}; * * // assertion will pass * assertThat(abc).containsAll(Arrays.asList("b", "c")); * * // assertions will fail * assertThat(abc).containsAll(Arrays.asList("d")); * assertThat(abc).containsAll(Arrays.asList("a", "b", "c", "d"));</code></pre> * * @param iterable the given {@code Iterable} we will get elements from. * @return {@code this} assertion object. * @throws NullPointerException if the given argument is {@code null}. * @throws AssertionError if the actual group is {@code null}. * @throws AssertionError if the actual group does not contain all the elements of given {@code Iterable}. */ @Override public SELF containsAll(Iterable<? extends ELEMENT> iterable) { arrays.assertContainsAll(info, actual, iterable); return myself; }
/** * Verifies that the actual AtomicReferenceArray contains all the elements of given {@code Iterable}, in any order. * <p> * Example : * <pre><code class='java'> AtomicReferenceArray<String> abc = new AtomicReferenceArray<>(new String[]{"a", "b", "c"}); * * // assertion will pass * assertThat(abc).containsAll(Arrays.asList("b", "c")); * * // assertions will fail * assertThat(abc).containsAll(Arrays.asList("d")); * assertThat(abc).containsAll(Arrays.asList("a", "b", "c", "d"));</code></pre> * * @param iterable the given {@code Iterable} we will get elements from. * @return {@code this} assertion object. * @throws NullPointerException if the given argument is {@code null}. * @throws AssertionError if the actual AtomicReferenceArray is {@code null}. * @throws AssertionError if the actual AtomicReferenceArray does not contain all the elements of given {@code Iterable}. */ @Override public AtomicReferenceArrayAssert<T> containsAll(Iterable<? extends T> iterable) { arrays.assertContainsAll(info, array, iterable); return myself; }
/** * Verifies that the actual array contains all the elements of given {@code Iterable}, in any order. * <p> * Example : * <pre><code class='java'> String[] abc = {"a", "b", "c"}; * * // assertion will pass * assertThat(abc).containsAll(Arrays.asList("b", "c")); * * // assertions will fail * assertThat(abc).containsAll(Arrays.asList("d")); * assertThat(abc).containsAll(Arrays.asList("a", "b", "c", "d"));</code></pre> * * @param iterable the given {@code Iterable} we will get elements from. * @return {@code this} assertion object. * @throws NullPointerException if the given argument is {@code null}. * @throws AssertionError if the actual array is {@code null}. * @throws AssertionError if the actual array does not contain all the elements of given {@code Iterable}. */ @Override public SELF containsAll(Iterable<? extends ELEMENT> iterable) { arrays.assertContainsAll(info, actual, iterable); return myself; }
/** {@inheritDoc} */ @Override public S containsAll(Iterable<? extends T> iterable) { arrays.assertContainsAll(info, actual, iterable); return myself; }