W
- The type of the object that is being matched.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<S>
Constructor and Description |
---|
Conjunction(ElementMatcher<? super W> left,
ElementMatcher<? super W> right)
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
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 first
matcher constituted a match.public boolean matches(W target)
ElementMatcher
target
- The instance to be matched.true
if the given element is matched by this matcher or false
otherwise.Copyright © 2014–2017. All rights reserved.