Summary: Methods | Inherited Methods | [Expand All]

# CursorMatchers.CursorMatcher

`public static class CursorMatchers.CursorMatcher`
`` `` `extends BoundedMatcher<Object, Cursor>` ``

java.lang.Object
↳ | org.hamcrest.BaseMatcher<java.lang.Object>
| ↳ | android.support.test.espresso.matcher.BoundedMatcher<java.lang.Object, android.database.Cursor>
|  | ↳ | android.support.test.espresso.matcher.CursorMatchers.CursorMatcher

A `Matcher` that matches `Cursor`s based on values in their columns.

## Summary

### Public methods
`void` | `describeTo(Description description)`
`boolean` | `matchesSafely(Cursor cursor)`
`CursorMatchers.CursorMatcher` | `withStrictColumnChecks(boolean checkColumns)` Allows test authors to override whether the the matcher should throw an `IllegalArgumentException` if the column name/count is not valid.

### Inherited methods
From class `android.support.test.espresso.matcher.BoundedMatcher`
`final boolean` | `matches(Object item)`
`abstract boolean` | `matchesSafely(Cursor item)`
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 methods

### describeTo

    void describeTo (Description description)

Parameters
`description` | `Description`

### matchesSafely

    boolean matchesSafely (Cursor cursor)

Parameters
`cursor` | `Cursor`

Returns
`boolean` |

### withStrictColumnChecks

    CursorMatchers.CursorMatcher withStrictColumnChecks (boolean checkColumns)

Allows test authors to override whether the the matcher should throw an `IllegalArgumentException` if the column name/count is not valid. This is useful in the case where a cursor may iterates over a data set with variable columns. By default, the checks are on.

Parameters
`checkColumns` | `boolean`

Returns
`CursorMatchers.CursorMatcher` |

- ## Classes

  - BoundedMatcher
  - CursorMatchers
  - CursorMatchers.CursorMatcher
  - LayoutMatchers
  - PreferenceMatchers
  - RootMatchers
  - ViewMatchers

- ## Enums

  - ViewMatchers.Visibility