{% setvar book_path %}/reference/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}
public abstract class BoundedMatcher<T, S extends T> extends BaseMatcher
CursorMatchers.CursorMatcher |
A |
Some matcher sugar that lets you create a matcher for a given type but only process items of a specific subtype of that matcher.
Use BoundedDiagnosingMatcher for better diagnostic messages when a mismatch happens.
| Parameters | |
|---|---|
<T> |
The desired type of the Matcher. |
<S extends T> |
the subtype of T that your matcher applies safely to. |
Public constructors |
|
|---|---|
BoundedMatcher(Class<S> expectedType) |
|
BoundedMatcher( |
|
Public methods |
|
|---|---|
void |
describeMismatch(Object item, Description description) |
final boolean |
|
Protected methods |
|
|---|---|
abstract boolean |
matchesSafely(S item) |
public BoundedMatcher(
Class<Object> expectedType,
Class<Object> interfaceType1,
Class[] otherInterfaces
)