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>
|Constructor and Description|
Creates a new conjunction matcher.
|Modifier and Type||Method and Description|
Matches a target against this element matcher.
public Conjunction(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 constituted 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.