V
- The type of the object that is being matched.public abstract static class ElementMatcher.Junction.AbstractBase<V> extends Object implements ElementMatcher.Junction<V>
ElementMatcher.Junction
.ElementMatcher.Junction.AbstractBase<V>, ElementMatcher.Junction.Conjunction<W>, ElementMatcher.Junction.Disjunction<W>, ElementMatcher.Junction.ForNonNullValues<W>
ElementMatcher.Junction<S>
Constructor and Description |
---|
AbstractBase() |
Modifier and Type | Method and Description |
---|---|
<U extends V> |
and(ElementMatcher<? super U> other)
Creates a conjunction where this matcher and the
other matcher must both be matched in order
to constitute a successful match. |
<U extends V> |
or(ElementMatcher<? super U> other)
Creates a disjunction where either this matcher or the
other matcher must be matched in order
to constitute a successful match. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
matches
public <U extends V> ElementMatcher.Junction<U> and(ElementMatcher<? super U> other)
other
matcher must both be matched in order
to constitute a successful match. The other matcher is only invoked if this matcher constitutes a successful
match.and
in interface ElementMatcher.Junction<V>
U
- The type of the object that is being matched. Note that Java's type inference might not
be able to infer the common subtype of this instance and the other
matcher such that
this type must need to be named explicitly.other
- The second matcher to consult.public <U extends V> ElementMatcher.Junction<U> or(ElementMatcher<? super U> other)
other
matcher must be matched in order
to constitute a successful match. The other matcher is only invoked if this matcher constitutes an
unsuccessful match.or
in interface ElementMatcher.Junction<V>
U
- The type of the object that is being matched. Note that Java's type inference might not
be able to infer the common subtype of this instance and the other
matcher such that
this type must need to be named explicitly.other
- The second matcher to consult.Copyright © 2014–2024. All rights reserved.