Summary: Ctors | Methods | Inherited Methods | [Expand All]

# AmbiguousViewMatcherException.Builder

`public static class AmbiguousViewMatcherException.Builder`
`extends Object` ``

java.lang.Object
↳ | android.support.test.espresso.AmbiguousViewMatcherException.Builder

Builder for `AmbiguousViewMatcherException`.

## Summary

### Public constructors
`AmbiguousViewMatcherException.Builder()`

### Public methods
`AmbiguousViewMatcherException` | `build()`
`AmbiguousViewMatcherException.Builder` | `from(AmbiguousViewMatcherException exception)`
`AmbiguousViewMatcherException.Builder` | `includeViewHierarchy(boolean includeViewHierarchy)`
`AmbiguousViewMatcherException.Builder` | `withOtherAmbiguousViews(View... others)`
`AmbiguousViewMatcherException.Builder` | `withRootView(View rootView)`
`AmbiguousViewMatcherException.Builder` | `withView1(View view1)`
`AmbiguousViewMatcherException.Builder` | `withView2(View view2)`
`AmbiguousViewMatcherException.Builder` | `withViewMatcher(Matcher<? super View> viewMatcher)`

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

### AmbiguousViewMatcherException.Builder

    AmbiguousViewMatcherException.Builder ()

## Public methods

### build

    AmbiguousViewMatcherException build ()

Returns
`AmbiguousViewMatcherException` |

### from

    AmbiguousViewMatcherException.Builder from (AmbiguousViewMatcherException exception)

Parameters
`exception` | `AmbiguousViewMatcherException`

Returns
`AmbiguousViewMatcherException.Builder` |

### includeViewHierarchy

    AmbiguousViewMatcherException.Builder includeViewHierarchy (boolean includeViewHierarchy)

Parameters
`includeViewHierarchy` | `boolean`

Returns
`AmbiguousViewMatcherException.Builder` |

### withOtherAmbiguousViews

    AmbiguousViewMatcherException.Builder withOtherAmbiguousViews (View... others)

Parameters
`others` | `View`

Returns
`AmbiguousViewMatcherException.Builder` |

### withRootView

    AmbiguousViewMatcherException.Builder withRootView (View rootView)

Parameters
`rootView` | `View`

Returns
`AmbiguousViewMatcherException.Builder` |

### withView1

    AmbiguousViewMatcherException.Builder withView1 (View view1)

Parameters
`view1` | `View`

Returns
`AmbiguousViewMatcherException.Builder` |

### withView2

    AmbiguousViewMatcherException.Builder withView2 (View view2)

Parameters
`view2` | `View`

Returns
`AmbiguousViewMatcherException.Builder` |

### withViewMatcher

    AmbiguousViewMatcherException.Builder withViewMatcher (Matcher<? super View> viewMatcher)

Parameters
`viewMatcher` | `Matcher`

Returns
`AmbiguousViewMatcherException.Builder` |

- ## Interfaces

  - BaseLayerComponent
  - EspressoException
  - FailureHandler
  - IdlingResource
  - IdlingResource.ResourceCallback
  - UiController
  - ViewAction
  - ViewAssertion
  - ViewFinder
  - ViewInteractionComponent

- ## Classes

  - AmbiguousViewMatcherException.Builder
  - DataInteraction
  - Espresso
  - GraphHolder
  - IdlingPolicies
  - IdlingPolicy
  - NoMatchingViewException.Builder
  - PerformException.Builder
  - Root
  - Root.Builder
  - ViewInteraction

- ## Exceptions

  - AmbiguousViewMatcherException
  - AppNotIdleException
  - IdlingResourceTimeoutException
  - InjectEventSecurityException
  - NoActivityResumedException
  - NoMatchingRootException
  - NoMatchingViewException
  - PerformException