BoundedMatcher
public abstract class BoundedMatcher
extends BaseMatcher<T>
java.lang.Object |
↳ |
org.hamcrest.BaseMatcher<T> |
|
↳ |
android.support.test.espresso.matcher.BoundedMatcher<T, S extends T> |
Known Direct Subclasses
|
一些matcher糖,可以让您为给定类型创建匹配器,但只处理该匹配器的特定子类型的项目。
Summary
Public constructors |
BoundedMatcher(Class<? extends S> expectedType) |
BoundedMatcher(Class<?> expectedType, Class<?> interfaceType1, Class...<?> otherInterfaces) |
Public methods |
final boolean |
matches(Object item) |
Inherited methods |
From class org.hamcrest.BaseMatcher
final void |
_dont_implement_Matcher___instead_extend_BaseMatcher_() |
void |
describeMismatch(Object arg0, Description arg1) |
String |
toString() |
|
From class java.lang.Object
Object |
clone() |
boolean |
equals(Object arg0) |
void |
finalize() |
final Class<?> |
getClass() |
int |
hashCode() |
final void |
notify() |
final void |
notifyAll() |
String |
toString() |
final void |
wait(long arg0, int arg1) |
final void |
wait(long arg0) |
final void |
wait() |
|
From interface org.hamcrest.Matcher
abstract void |
_dont_implement_Matcher___instead_extend_BaseMatcher_() |
abstract void |
describeMismatch(Object arg0, Description arg1) |
abstract boolean |
matches(Object arg0) |
|
From interface org.hamcrest.SelfDescribing
abstract void |
describeTo(Description arg0) |
|
Public constructors
BoundedMatcher
BoundedMatcher (Class<? extends S> expectedType)
Parameters |
expectedType |
Class
|
BoundedMatcher
BoundedMatcher (Class<?> expectedType,
Class<?> interfaceType1,
Class...<?> otherInterfaces)
Parameters |
expectedType |
Class
|
interfaceType1 |
Class
|
otherInterfaces |
Class
|
Public methods
matches
boolean matches (Object item)
Protected methods
matchesSafely
boolean matchesSafely (S item)