{% setvar book_path %}/reference/kotlin/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}
abstract class BoundedMatcher<T, S : T?> : 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 : T?> |
the subtype of T that your matcher applies safely to. |
Public constructors |
|
|---|---|
BoundedMatcher(expectedType: Class<S!>!) |
|
Public functions |
|
|---|---|
Unit |
describeMismatch(item: Any!, description: Description!) |
Boolean |
|
Protected functions |
|
|---|---|
abstract Boolean |
matchesSafely(item: S!) |
Inherited functions |
||
|---|---|---|
|
||
BoundedMatcher(
expectedType: Class<Any!>!,
interfaceType1: Class<Any!>!,
otherInterfaces: Array<Class<Any!>!>!
)