W - The type of the object that is being matched.@HashCodeAndEqualsPlugin.Enhance public static class ElementMatcher.Junction.Conjunction<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 |
|---|
Conjunction(ElementMatcher<? super W>... matcher)
Creates a new conjunction matcher.
|
Conjunction(List<ElementMatcher<? super W>> matchers)
Creates a new conjunction matcher.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
matches(W target)
Matches a target against this element matcher.
|
String |
toString() |
and, or@SafeVarargsPlugin.Enhance public Conjunction(ElementMatcher<? super W>... matcher)
matcher - The represented matchers in application order.public Conjunction(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.