java.lang.Object |
↳ |
org.hamcrest.BaseMatcher<T> |
|
↳ |
android.support.test.espresso.matcher.BoundedMatcher<T, S extends T> |
Known Direct Subclasses
|
Class Overview
Some matcher sugar that lets you create a matcher for a given type
but only process items of a specific subtype of that matcher.
Summary
Public Constructors |
|
BoundedMatcher(Class<? extends S> expectedType)
|
|
BoundedMatcher(Class<?> expectedType, Class<?> interfaceType1, Class...<?> otherInterfaces)
|
Public Methods |
final
boolean
|
matches(Object item)
|
[Expand]
Inherited Methods |
From class
org.hamcrest.BaseMatcher
final
void
|
_dont_implement_Matcher___instead_extend_BaseMatcher_()
This method simply acts a friendly reminder not to implement Matcher directly and
instead extend BaseMatcher.
|
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()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
|
From interface
org.hamcrest.Matcher
abstract
void
|
_dont_implement_Matcher___instead_extend_BaseMatcher_()
This method simply acts a friendly reminder not to implement Matcher directly and
instead extend BaseMatcher.
|
abstract
boolean
|
matches(Object item)
Evaluates the matcher for argument item.
|
|
From interface
org.hamcrest.SelfDescribing
abstract
void
|
describeTo(Description description)
Generates a description of the object.
|
|
Public Constructors
public
BoundedMatcher
(Class<? extends S> expectedType)
public
BoundedMatcher
(Class<?> expectedType, Class<?> interfaceType1, Class...<?> otherInterfaces)
Public Methods
public
final
boolean
matches
(Object item)
Protected Methods
protected
abstract
boolean
matchesSafely
(S item)