@FunctionalInterface
public interface ElementPredicate
| Modifier and Type | Field | Description |
|---|---|---|
static ElementPredicate |
ANY_ELEMENT |
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
accepts(Parent parent,
Element element) |
Returns true when an element must be kept.
|
static ElementPredicate |
fromNames(java.util.Collection<java.lang.String> names) |
static final ElementPredicate ANY_ELEMENT
boolean accepts(Parent parent, Element element)
Element (and its parents) must have been created before this can be called.
However, its children are not necessarily existing at time of filtering.
parent - The element parent.element - The element.static ElementPredicate fromNames(java.util.Collection<java.lang.String> names)
Copyright © 2018. All rights reserved.