W
- The type of the object that is being matched.@HashCodeAndEqualsPlugin.Enhance public abstract static class ElementMatcher.Junction.ForNonNullValues<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 |
---|
ForNonNullValues() |
Modifier and Type | Method and Description |
---|---|
protected abstract boolean |
doMatch(W target)
Matches the supplied value if it was found not to be
null . |
boolean |
matches(W target)
Matches a target against this element matcher.
|
and, or
public boolean matches(@MaybeNull W target)
target
- The instance to be matched or null
.true
if the given element is matched by this matcher or false
otherwise.protected abstract boolean doMatch(W target)
null
.target
- The instance to be matched.true
if the given element is matched by this matcher or false
otherwise.Copyright © 2014–2022. All rights reserved.