W- The type of the object that is being matched.
@HashCodeAndEqualsPlugin.Enhance public static class ElementMatcher.Junction.Disjunction<W> extends ElementMatcher.Junction.AbstractBase<W>
ElementMatcher.Junction.AbstractBase<V>, ElementMatcher.Junction.Conjunction<W>, ElementMatcher.Junction.Disjunction<W>
|Constructor and Description|
Creates a new disjunction matcher.
|Modifier and Type||Method and Description|
Matches a target against this element matcher.
public Disjunction(ElementMatcher<? super W> left, ElementMatcher<? super W> right)
left- The first matcher to consult for a match.
right- The second matcher to consult for a match. This matcher is only consulted if the
firstmatcher did not already constitute a match.
public boolean matches(W target)
target- The instance to be matched.
trueif the given element is matched by this matcher or
Copyright © 2014–2019. All rights reserved.