T - public abstract class QuickResultMatcherBase<T> extends QuickDiagnosingMatcherBase<T> implements QuickDiagnosingMatcher<T>
MatchResult.
It is recommended that matches(java.lang.Object) will be overridden
for better performance, but it is not necessary.NestedResultMatcher,
TypesafeQuickResultMatcher| Constructor and Description |
|---|
QuickResultMatcherBase() |
| Modifier and Type | Method and Description |
|---|---|
void |
describeMismatch(Object item,
org.hamcrest.Description description) |
boolean |
matches(Object o) |
boolean |
matches(Object item,
org.hamcrest.Description description)
Evaluates the matcher for argument
item. |
abstract <I> MatchResult<I> |
matchResult(I item)
Returns a
MatchResult that caches the mismatch descripton. |
quickMatch, quickMatch, quickMatchResult_dont_implement_Matcher___instead_extend_BaseMatcher_, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic boolean matches(Object o)
matches in interface org.hamcrest.Matcher<T>matches in class QuickDiagnosingMatcherBase<T>public void describeMismatch(Object item, org.hamcrest.Description description)
describeMismatch in interface org.hamcrest.Matcher<T>describeMismatch in class QuickDiagnosingMatcherBase<T>public boolean matches(Object item, org.hamcrest.Description description)
item.
A mismatch description is appended to mismatch
if and only if the match fails.
matches in interface QuickDiagnosingMatcher<T>matches in class QuickDiagnosingMatcherBase<T>item - The object against which the matcher is evaluated.description - The description to be built or appended to.true if item matches, otherwise false.public abstract <I> MatchResult<I> matchResult(I item)
QuickDiagnosingMatcherBaseMatchResult that caches the mismatch descripton.matchResult in interface QuickDiagnosingMatcher<T>matchResult in class QuickDiagnosingMatcherBase<T>Copyright © 2015. All rights reserved.