@FunctionalInterface
public interface NodeFilter
| Modifier and Type | Method and Description |
|---|---|
default @NonNull NodeFilter |
and(@NonNull NodeFilter that)
Logical and with
this with that. |
default @NonNull NodeFilter |
or(@NonNull NodeFilter that)
Logical and with
this with that. |
boolean |
test(@NonNull Node node,
int depth)
Tests if this filter allows
node at a depth of depth. |
boolean test(@NonNull Node node, int depth)
node at a depth of depth.node - the nodedepth - the depthtrue if the filter allows the nodedefault @NonNull NodeFilter and(@NonNull NodeFilter that)
this with that.that - the other node depth filterdefault @NonNull NodeFilter or(@NonNull NodeFilter that)
this with that.that - the other node depth filter