BoundedMatcher

public abstract class BoundedMatcher
extends BaseMatcher

java.lang.Object
   ↳ org.hamcrest.BaseMatcher
     ↳ android.support.test.espresso.matcher.BoundedMatcher
Known Direct Subclasses


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 expectedType)
BoundedMatcher(Class expectedType, Class interfaceType1, Class... otherInterfaces)

Public methods

final boolean matches(Object item)

Protected methods

abstract boolean matchesSafely(S item)

Inherited methods

From class org.hamcrest.BaseMatcher
From class java.lang.Object
From interface org.hamcrest.Matcher
From interface org.hamcrest.SelfDescribing

Public constructors

BoundedMatcher

BoundedMatcher (Class 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)

Parameters
item Object
Returns
boolean

Protected methods

matchesSafely

boolean matchesSafely (S item)

Parameters
item S
Returns
boolean