/** * Verifies that the actual AtomicReferenceArray does not contain duplicates. * <p> * Example : * <pre><code class='java'> AtomicReferenceArray<String> abc = new AtomicReferenceArray<>(new String[]{"a", "b", "c"}); * AtomicReferenceArray<String> aaa = new AtomicReferenceArray<>(new String[]{"a", "a", "a"}); * * // assertion will pass * assertThat(abc).doesNotHaveDuplicates(); * * // assertion will fail * assertThat(aaa).doesNotHaveDuplicates();</code></pre> * * @return {@code this} assertion object. * @throws AssertionError if the actual AtomicReferenceArray is {@code null}. * @throws AssertionError if the actual AtomicReferenceArray contains duplicates. */ @Override public AtomicReferenceArrayAssert<T> doesNotHaveDuplicates() { arrays.assertDoesNotHaveDuplicates(info, array); return myself; }
/** * Verifies that the actual array does not contain duplicates. * <p> * Example : * <pre><code class='java'> String[] abc = {"a", "b", "c"}; * String[] lotsOfAs = {"a", "a", "a"}; * * // assertion will pass * assertThat(abc).doesNotHaveDuplicates(); * * // assertion will fail * assertThat(lotsOfAs).doesNotHaveDuplicates();</code></pre> * * @return {@code this} assertion object. * @throws AssertionError if the actual group is {@code null}. * @throws AssertionError if the actual group contains duplicates. */ @Override public SELF doesNotHaveDuplicates() { arrays.assertDoesNotHaveDuplicates(info, actual); return myself; }
/** * Verifies that the actual array does not contain duplicates. * <p> * Example : * <pre><code class='java'> String[] abc = {"a", "b", "c"}; * String[] lotsOfAs = {"a", "a", "a"}; * * // assertion will pass * assertThat(abc).doesNotHaveDuplicates(); * * // assertion will fail * assertThat(lotsOfAs).doesNotHaveDuplicates();</code></pre> * * @return {@code this} assertion object. * @throws AssertionError if the actual array is {@code null}. * @throws AssertionError if the actual array contains duplicates. */ @Override public SELF doesNotHaveDuplicates() { arrays.assertDoesNotHaveDuplicates(info, actual); return myself; }
/** * Verifies that the actual AtomicReferenceArray does not contain duplicates. * <p> * Example : * <pre><code class='java'> AtomicReferenceArray<String> abc = new AtomicReferenceArray<>(new String[]{"a", "b", "c"}); * AtomicReferenceArray<String> aaa = new AtomicReferenceArray<>(new String[]{"a", "a", "a"}); * * // assertion will pass * assertThat(abc).doesNotHaveDuplicates(); * * // assertion will fail * assertThat(aaa).doesNotHaveDuplicates();</code></pre> * * @return {@code this} assertion object. * @throws AssertionError if the actual AtomicReferenceArray is {@code null}. * @throws AssertionError if the actual AtomicReferenceArray contains duplicates. */ @Override public AtomicReferenceArrayAssert<T> doesNotHaveDuplicates() { arrays.assertDoesNotHaveDuplicates(info, array); return myself; }
/** {@inheritDoc} */ @Override public S doesNotHaveDuplicates() { arrays.assertDoesNotHaveDuplicates(info, actual); return myself; }