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 |
equals(Object other) |
int |
hashCode() |
boolean |
matches(W target)
Matches a target against this element matcher.
|
String |
toString() |
and, orpublic 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)
ElementMatchertarget - The instance to be matched.true if the given element is matched by this matcher or false otherwise.Copyright © 2014–2016. All rights reserved.