public abstract class TypesafeQuickDiagnoseMatcher<T> extends QuickDiagnosingMatcherBase<T>
matches(java.lang.Object, org.hamcrest.Description) has to be implemented.| Constructor and Description |
|---|
TypesafeQuickDiagnoseMatcher() |
TypesafeQuickDiagnoseMatcher(Class<?> expectedType) |
TypesafeQuickDiagnoseMatcher(org.hamcrest.internal.ReflectiveTypeFinder typeFinder) |
| Modifier and Type | Method and Description |
|---|---|
void |
describeMismatch(Object item,
org.hamcrest.Description description) |
protected void |
describeMismatchSafely(T item,
org.hamcrest.Description mismatch) |
boolean |
matches(Object item) |
boolean |
matches(Object item,
org.hamcrest.Description description)
Evaluates the matcher for argument
item. |
protected boolean |
matchesSafely(T item) |
protected abstract boolean |
matchesSafely(T item,
org.hamcrest.Description mismatch) |
<I> MatchResult<I> |
matchResult(I item)
Returns a
MatchResult that caches the mismatch descripton. |
protected <I extends T> |
matchResultSafely(I item) |
quickMatch, quickMatch, quickMatchResult_dont_implement_Matcher___instead_extend_BaseMatcher_, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic TypesafeQuickDiagnoseMatcher(Class<?> expectedType)
public TypesafeQuickDiagnoseMatcher(org.hamcrest.internal.ReflectiveTypeFinder typeFinder)
public TypesafeQuickDiagnoseMatcher()
protected boolean matchesSafely(T item)
protected void describeMismatchSafely(T item, org.hamcrest.Description mismatch)
protected abstract boolean matchesSafely(T item, org.hamcrest.Description mismatch)
protected <I extends T> MatchResult<I> matchResultSafely(I item)
public final boolean matches(Object item)
QuickDiagnosingMatcherBasematches in interface org.hamcrest.Matcher<T>matches in class QuickDiagnosingMatcherBase<T>public final boolean matches(Object item, org.hamcrest.Description description)
QuickDiagnosingMatcherBaseitem.
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 final void describeMismatch(Object item, org.hamcrest.Description description)
QuickDiagnosingMatcherBasedescribeMismatch in interface org.hamcrest.Matcher<T>describeMismatch in class QuickDiagnosingMatcherBase<T>public final <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.