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>ElementMatcher.Junction<S>| Constructor and Description |
|---|
Disjunction(ElementMatcher<? super W> left,
ElementMatcher<? super W> right)
Creates a new disjunction matcher.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
matches(W target)
Matches a target against this element matcher.
|
String |
toString() |
and, orpublic 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 first matcher did not already constitute a match.public boolean matches(W target)
target - The instance to be matched.true if the given element is matched by this matcher or false otherwise.Copyright © 2014–2019. All rights reserved.