T - public class OrChainMatcher<T> extends MatcherChainBase<T>
| Modifier and Type | Class and Description |
|---|---|
static class |
OrChainMatcher.Builder<T> |
NestedResultMatcher.NestedMatch<T,M extends org.hamcrest.Matcher<?>>, NestedResultMatcher.NestedMismatch<T,M extends org.hamcrest.Matcher<?>>, NestedResultMatcher.NestedResult<T,M extends org.hamcrest.Matcher<?>>| Modifier and Type | Field and Description |
|---|---|
static ChainFactory |
FACTORY |
matchersP_AND, P_ATOMIC, P_COMPLEX, P_NONE, P_OR, P_UNARY, P_UNARY_NO_PAREN| Constructor and Description |
|---|
OrChainMatcher(Collection<? extends org.hamcrest.Matcher<? super T>> matchers) |
OrChainMatcher(org.hamcrest.Matcher<? super T>... matchers) |
| Modifier and Type | Method and Description |
|---|---|
static ChainFactory |
any() |
static <T> org.hamcrest.Matcher<T> |
any(Collection<? extends org.hamcrest.Matcher<? super T>> matchers) |
static <T> org.hamcrest.Matcher<T> |
any(org.hamcrest.Matcher<? super T>... matchers) |
void |
describeTo(org.hamcrest.Description description) |
static <T> OrChainMatcher.Builder<T> |
either(org.hamcrest.Matcher<? super T>... m) |
static <T> OrChainMatcher.Builder<T> |
either(org.hamcrest.Matcher<? super T> m) |
int |
getDescriptionPrecedence() |
boolean |
matches(Object item) |
<I> MatchResult<I> |
matchResult(I item)
Returns a
MatchResult that caches the mismatch descripton. |
static <T> org.hamcrest.Matcher<T> |
or(Collection<? extends org.hamcrest.Matcher<? super T>> matchers) |
static <T> org.hamcrest.Matcher<T> |
or(org.hamcrest.Matcher<? super T>... matchers) |
matchersListnestedDescribe, nestedDescribeTo, nestedMatch, nestedMatchdescribeMismatch, matchesquickMatch, quickMatch, quickMatchResult_dont_implement_Matcher___instead_extend_BaseMatcher_, toStringpublic static final ChainFactory FACTORY
public OrChainMatcher(Collection<? extends org.hamcrest.Matcher<? super T>> matchers)
public OrChainMatcher(org.hamcrest.Matcher<? super T>... matchers)
public int getDescriptionPrecedence()
public void describeTo(org.hamcrest.Description description)
public boolean matches(Object item)
matches in interface org.hamcrest.Matcher<T>matches in class QuickResultMatcherBase<T>public <I> MatchResult<I> matchResult(I item)
QuickDiagnosingMatcherBaseMatchResult that caches the mismatch descripton.matchResult in interface QuickDiagnosingMatcher<T>matchResult in class QuickResultMatcherBase<T>public static <T> org.hamcrest.Matcher<T> any(org.hamcrest.Matcher<? super T>... matchers)
public static <T> org.hamcrest.Matcher<T> any(Collection<? extends org.hamcrest.Matcher<? super T>> matchers)
public static <T> org.hamcrest.Matcher<T> or(org.hamcrest.Matcher<? super T>... matchers)
public static <T> org.hamcrest.Matcher<T> or(Collection<? extends org.hamcrest.Matcher<? super T>> matchers)
public static <T> OrChainMatcher.Builder<T> either(org.hamcrest.Matcher<? super T> m)
public static <T> OrChainMatcher.Builder<T> either(org.hamcrest.Matcher<? super T>... m)
public static ChainFactory any()
Copyright © 2015. All rights reserved.