/** * Creates a matcher that matches if the examined object matches <b>ANY</b> of the specified matchers. * <p/> * For example: * <pre>assertThat("myValue", anyOf(startsWith("foo"), containsString("Val")))</pre> */ @Factory public static <T> AnyOf<T> anyOf(Iterable<Matcher<? super T>> matchers) { return new AnyOf<T>(matchers); }
/** * Creates a matcher that matches if the examined object matches <b>ANY</b> of the specified matchers. * For example: * <pre>assertThat("myValue", anyOf(startsWith("foo"), containsString("Val")))</pre> */ public static <T> AnyOf<T> anyOf(Iterable<Matcher<? super T>> matchers) { return new AnyOf<>(matchers); }
/** * Creates a matcher that matches if the examined object matches <b>ANY</b> of the specified matchers. * <p/> * For example: * <pre>assertThat("myValue", anyOf(startsWith("foo"), containsString("Val")))</pre> */ @Factory public static <T> AnyOf<T> anyOf(Iterable<Matcher<? super T>> matchers) { return new AnyOf<T>(matchers); }
public CombinableMatcher<T> or(Matcher<? super T> other) { return new CombinableMatcher<T>(new AnyOf<T>(templatedListWith(other))); }
public CombinableMatcher<T> or(Matcher<? super T> other) { return new CombinableMatcher<T>(new AnyOf<T>(templatedListWith(other))); }
public CombinableMatcher<T> or(Matcher<? super T> other) { return new CombinableMatcher<>(new AnyOf<>(templatedListWith(other))); }
/** * Creates a matcher that matches if the examined object matches <b>ANY</b> of the specified matchers. * For example: * <pre>assertThat("myValue", anyOf(startsWith("foo"), containsString("Val")))</pre> */ public static <T> AnyOf<T> anyOf(Iterable<Matcher<? super T>> matchers) { return new AnyOf<>(matchers); }
/** * Creates a matcher that matches if the examined object matches <b>ANY</b> of the specified matchers. * <p/> * For example: * <pre>assertThat("myValue", anyOf(startsWith("foo"), containsString("Val")))</pre> */ @Factory public static <T> AnyOf<T> anyOf(Iterable<Matcher<? super T>> matchers) { return new AnyOf<T>(matchers); }
public CombinableMatcher<T> or(Matcher<? super T> other) { return new CombinableMatcher<T>(new AnyOf<T>(templatedListWith(other))); }
public CombinableMatcher<T> or(Matcher<? super T> other) { return new CombinableMatcher<T>(new AnyOf<T>(templatedListWith(other))); }
/** * Creates a matcher that matches if the examined object matches <b>ANY</b> of the specified matchers. * For example: * <pre>assertThat("myValue", anyOf(startsWith("foo"), containsString("Val")))</pre> */ public static <T> AnyOf<T> anyOf(Iterable<Matcher<? super T>> matchers) { return new AnyOf<>(matchers); }
/** * Creates a matcher that matches if the examined object matches <b>ANY</b> of the specified matchers. * <p/> * For example: * <pre>assertThat("myValue", anyOf(startsWith("foo"), containsString("Val")))</pre> */ @Factory public static <T> AnyOf<T> anyOf(Iterable<Matcher<? super T>> matchers) { return new AnyOf<T>(matchers); }
/** * Creates a matcher that matches if the examined object matches <b>ANY</b> of the specified matchers. * <p/> * For example: * <pre>assertThat("myValue", anyOf(startsWith("foo"), containsString("Val")))</pre> */ @Factory public static <T> AnyOf<T> anyOf(Iterable<Matcher<? super T>> matchers) { return new AnyOf<T>(matchers); }
/** * Evaluates to true if ANY of the passed in matchers evaluate to true. */ @Factory public static <T> Matcher<T> anyOf(Iterable<Matcher<? extends T>> matchers) { return new AnyOf<T>(matchers); } }
/** * Creates a matcher that matches if the examined object matches <b>ANY</b> of the specified matchers. * <p/> * For example: * <pre>assertThat("myValue", anyOf(startsWith("foo"), containsString("Val")))</pre> */ @Factory public static <T> AnyOf<T> anyOf(Iterable<Matcher<? super T>> matchers) { return new AnyOf<T>(matchers); }
/** * Creates a matcher that matches if the examined object matches <b>ANY</b> of the specified matchers. * <p/> * For example: * <pre>assertThat("myValue", anyOf(startsWith("foo"), containsString("Val")))</pre> */ @Factory public static <T> AnyOf<T> anyOf(Iterable<Matcher<? super T>> matchers) { return new AnyOf<T>(matchers); }
/** * Creates a matcher that matches if the examined object matches <b>ANY</b> of the specified matchers. * <p/> * For example: * <pre>assertThat("myValue", anyOf(startsWith("foo"), containsString("Val")))</pre> */ @Factory public static <T> AnyOf<T> anyOf(Iterable<Matcher<? super T>> matchers) { return new AnyOf<T>(matchers); }
/** * Creates a matcher that matches if the examined object matches <b>ANY</b> of the specified matchers. * <p/> * For example: * <pre>assertThat("myValue", anyOf(startsWith("foo"), containsString("Val")))</pre> */ @Factory public static <T> AnyOf<T> anyOf(Iterable<Matcher<? super T>> matchers) { return new AnyOf<T>(matchers); }
/** * Creates a matcher that matches if the examined object matches <b>ANY</b> of the specified matchers. * <p/> * For example: * <pre>assertThat("myValue", anyOf(startsWith("foo"), containsString("Val")))</pre> */ @Factory public static <T> AnyOf<T> anyOf(Iterable<Matcher<? super T>> matchers) { return new AnyOf<T>(matchers); }
public CombinableMatcher<T> or(Matcher<? super T> other) { return new CombinableMatcher<T>(new AnyOf<T>(templatedListWith(other))); }