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.ForNonNullValues<W>
ElementMatcher.Junction<S>
Constructor and Description |
---|
Disjunction(ElementMatcher<? super W>... matcher)
Creates a new disjunction matcher.
|
Disjunction(List<ElementMatcher<? super W>> matchers)
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, or
public Disjunction(ElementMatcher<? super W>... matcher)
matcher
- The represented matchers in application order.public Disjunction(List<ElementMatcher<? super W>> matchers)
matchers
- The represented matchers in application order.public boolean matches(@UnknownNull W target)
target
- The instance to be matched or null
.true
if the given element is matched by this matcher or false
otherwise.Copyright © 2014–2025. All rights reserved.