public abstract class TypesafeQuickMatcher<T> extends QuickMatcherBase<T>
QuickDiagnosingMatcher interface,
but matches and describes in separate steps.| Constructor and Description |
|---|
TypesafeQuickMatcher() |
TypesafeQuickMatcher(Class<?> expectedType) |
TypesafeQuickMatcher(org.hamcrest.internal.ReflectiveTypeFinder typeFinder) |
| Modifier and Type | Method and Description |
|---|---|
void |
describeMismatch(Object item,
org.hamcrest.Description description) |
protected abstract void |
describeMismatchSafely(T item,
org.hamcrest.Description mismatch) |
boolean |
matches(Object item) |
protected abstract boolean |
matchesSafely(T item) |
matches, matchResult_dont_implement_Matcher___instead_extend_BaseMatcher_, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic TypesafeQuickMatcher(Class<?> expectedType)
public TypesafeQuickMatcher(org.hamcrest.internal.ReflectiveTypeFinder typeFinder)
public TypesafeQuickMatcher()
protected abstract boolean matchesSafely(T item)
protected abstract void describeMismatchSafely(T item, org.hamcrest.Description mismatch)
public final boolean matches(Object item)
QuickMatcherBasematches in interface org.hamcrest.Matcher<T>matches in class QuickMatcherBase<T>public final void describeMismatch(Object item, org.hamcrest.Description description)
QuickMatcherBasedescribeMismatch in interface org.hamcrest.Matcher<T>describeMismatch in class QuickMatcherBase<T>Copyright © 2015. All rights reserved.