/** * Creates an or matcher combining this matcher and the given one * @param matcher The matcher to be put in or with this one * @return A matcher that return true if this matcher or the passed one return true */ @SuppressWarnings("unchecked") public final LambdaJMatcher<T> or(Matcher<T> matcher) { return OrMatcher.or(this, matcher); }
/** * Creates an or matcher combining all the passed matchers * @param matchers The matchers to be put in or * @return A matcher that return true if at least one of the matchers return true */ @Factory public static <T> OrMatcher<T> or(Matcher<T>... matchers) { return new OrMatcher<T>(matchers); } }