AmbiguousViewMatcherException.Builder

public static class AmbiguousViewMatcherException.Builder
extends Object

java.lang.Object
   ↳ androidx.test.espresso.AmbiguousViewMatcherException.Builder


Builder for AmbiguousViewMatcherException.

Summary

Public constructors

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

Public constructors

Builder

public Builder ()

Public methods

from

public AmbiguousViewMatcherException.Builder from (AmbiguousViewMatcherException exception)

Parameters
exception AmbiguousViewMatcherException

Returns
AmbiguousViewMatcherException.Builder

includeViewHierarchy

public AmbiguousViewMatcherException.Builder includeViewHierarchy (boolean includeViewHierarchy)

Parameters
includeViewHierarchy boolean

Returns
AmbiguousViewMatcherException.Builder

withOtherAmbiguousViews

public AmbiguousViewMatcherException.Builder withOtherAmbiguousViews (View... others)

Parameters
others View

Returns
AmbiguousViewMatcherException.Builder

withRootView

public AmbiguousViewMatcherException.Builder withRootView (View rootView)

Parameters
rootView View

Returns
AmbiguousViewMatcherException.Builder

withView1

public AmbiguousViewMatcherException.Builder withView1 (View view1)

Parameters
view1 View

Returns
AmbiguousViewMatcherException.Builder

withView2

public AmbiguousViewMatcherException.Builder withView2 (View view2)

Parameters
view2 View

Returns
AmbiguousViewMatcherException.Builder

withViewMatcher

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

Parameters
viewMatcher Matcher

Returns
AmbiguousViewMatcherException.Builder