Summary: Methods | Inherited Methods | [Expand All]

# PreferenceMatchers

`public final class PreferenceMatchers`
`extends Object` ``

java.lang.Object
↳ | android.support.test.espresso.matcher.PreferenceMatchers

A collection of hamcrest matchers that match `Preference`s.

## Summary

### Public methods
`static Matcher<Preference>` | `isEnabled()`
`static Matcher<Preference>` | `withKey(Matcher<String> keyMatcher)`
`static Matcher<Preference>` | `withKey(String key)`
`static Matcher<Preference>` | `withSummary(int resourceId)`
`static Matcher<Preference>` | `withSummaryText(Matcher<String> summaryMatcher)`
`static Matcher<Preference>` | `withSummaryText(String summary)`
`static Matcher<Preference>` | `withTitle(int resourceId)`
`static Matcher<Preference>` | `withTitleText(String title)`
`static Matcher<Preference>` | `withTitleText(Matcher<String> titleMatcher)`

### Inherited methods
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()`

## Public methods

### isEnabled

    Matcher<Preference> isEnabled ()

Returns
`Matcher<Preference>` |

### withKey

    Matcher<Preference> withKey (Matcher<String> keyMatcher)

Parameters
`keyMatcher` | `Matcher`

Returns
`Matcher<Preference>` |

### withKey

    Matcher<Preference> withKey (String key)

Parameters
`key` | `String`

Returns
`Matcher<Preference>` |

### withSummary

    Matcher<Preference> withSummary (int resourceId)

Parameters
`resourceId` | `int`

Returns
`Matcher<Preference>` |

### withSummaryText

    Matcher<Preference> withSummaryText (Matcher<String> summaryMatcher)

Parameters
`summaryMatcher` | `Matcher`

Returns
`Matcher<Preference>` |

### withSummaryText

    Matcher<Preference> withSummaryText (String summary)

Parameters
`summary` | `String`

Returns
`Matcher<Preference>` |

### withTitle

    Matcher<Preference> withTitle (int resourceId)

Parameters
`resourceId` | `int`

Returns
`Matcher<Preference>` |

### withTitleText

    Matcher<Preference> withTitleText (String title)

Parameters
`title` | `String`

Returns
`Matcher<Preference>` |

### withTitleText

    Matcher<Preference> withTitleText (Matcher<String> titleMatcher)

Parameters
`titleMatcher` | `Matcher`

Returns
`Matcher<Preference>` |

- ## Classes

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

- ## Enums

  - ViewMatchers.Visibility