public abstract class TypesafeQuickDiagnoseMatcherBase<T> extends QuickDiagnosingMatcherBase<T>
| Constructor and Description |
|---|
TypesafeQuickDiagnoseMatcherBase() |
TypesafeQuickDiagnoseMatcherBase(Class<?> expectedType) |
TypesafeQuickDiagnoseMatcherBase(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) |
quickMatch, quickMatch_dont_implement_Matcher___instead_extend_BaseMatcher_, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic TypesafeQuickDiagnoseMatcherBase(Class<?> expectedType)
public TypesafeQuickDiagnoseMatcherBase(org.hamcrest.internal.ReflectiveTypeFinder typeFinder)
public TypesafeQuickDiagnoseMatcherBase()
protected boolean matchesSafely(T item)
protected void describeMismatchSafely(T item, org.hamcrest.Description mismatch)
protected abstract boolean matchesSafely(T item, org.hamcrest.Description mismatch)
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>Copyright © 2013. All Rights Reserved.