/** * Verifies that there is <b>at least <i>one</i></b> element in the actual array satisfying the given condition. * <p> * This method is an alias for {@code areAtLeast(1, condition)}. * <p> * Example: * <pre><code class='java'> // jedi is a Condition<String> * assertThat(new String[]{"Luke", "Solo", "Leia"}).areAtLeastOne(jedi);</code></pre> * * @see #haveAtLeast(int, Condition) */ @Override public SELF areAtLeastOne(Condition<? super ELEMENT> condition) { areAtLeast(1, condition); return myself; }
/** * Verifies that there is <b>at least <i>one</i></b> element in the actual array satisfying the given condition. * <p> * This method is an alias for {@code areAtLeast(1, condition)}. * <p> * Example: * <pre><code class='java'> // jedi is a Condition<String> * assertThat(new String[]{"Luke", "Solo", "Leia"}).areAtLeastOne(jedi);</code></pre> * * @see #haveAtLeast(int, Condition) */ @Override public SELF areAtLeastOne(Condition<? super ELEMENT> condition) { areAtLeast(1, condition); return myself; }
/** {@inheritDoc} */ @Override public S areAtLeastOne(Condition<? super T> condition) { areAtLeast(1, condition); return myself; }