Summary: Methods | Inherited Methods | [Expand All]

# BundleMatchers

`public final class BundleMatchers`
`extends Object` ``

java.lang.Object
↳ | android.support.test.espresso.intent.matcher.BundleMatchers

A collection of hamcrest matchers to match `Bundle` objects.

## Summary

### Public methods
`static Matcher<Bundle>` | `hasEntry(String key, Matcher<?> valueMatcher)`
`static <T> Matcher<Bundle>` | `hasEntry(String key, T value)`
`static Matcher<Bundle>` | `hasEntry(Matcher<String> keyMatcher, Matcher<?> valueMatcher)`
`static Matcher<Bundle>` | `hasKey(String key)`
`static Matcher<Bundle>` | `hasKey(Matcher<String> keyMatcher)`
`static <T> Matcher<Bundle>` | `hasValue(T value)`
`static Matcher<Bundle>` | `hasValue(Matcher<?> valueMatcher)`

### 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

### hasEntry

    Matcher<Bundle> hasEntry (String key,
                    Matcher<?> valueMatcher)

Parameters
`key` | `String`
`valueMatcher` | `Matcher`

Returns
`Matcher<Bundle>` |

### hasEntry

    Matcher<Bundle> hasEntry (String key,
                    T value)

Parameters
`key` | `String`
`value` | `T`

Returns
`Matcher<Bundle>` |

### hasEntry

    Matcher<Bundle> hasEntry (Matcher<String> keyMatcher,
                    Matcher<?> valueMatcher)

Parameters
`keyMatcher` | `Matcher`
`valueMatcher` | `Matcher`

Returns
`Matcher<Bundle>` |

### hasKey

    Matcher<Bundle> hasKey (String key)

Parameters
`key` | `String`

Returns
`Matcher<Bundle>` |

### hasKey

    Matcher<Bundle> hasKey (Matcher<String> keyMatcher)

Parameters
`keyMatcher` | `Matcher`

Returns
`Matcher<Bundle>` |

### hasValue

    Matcher<Bundle> hasValue (T value)

Parameters
`value` | `T`

Returns
`Matcher<Bundle>` |

### hasValue

    Matcher<Bundle> hasValue (Matcher<?> valueMatcher)

Parameters
`valueMatcher` | `Matcher`

Returns
`Matcher<Bundle>` |

- ## Classes

  - BundleMatchers
  - ComponentNameMatchers
  - IntentMatchers
  - UriMatchers