public static interface TreeDef.Parented<T> extends TreeDef<T>
TreeDef.Parented<T>
Modifier and Type | Method and Description |
---|---|
default TreeDef.Parented<T> |
filter(java.util.function.Predicate<T> predicate)
Returns a new TreeDef which whose childrenOf() and parentOf() methods are filtered by the given predicate.
|
static <T> TreeDef.Parented<T> |
of(java.util.function.Function<T,java.util.List<T>> childFunc,
java.util.function.Function<T,T> parentFunc)
Creates a TreeDef.Parented which is implemented by the given two functions.
|
T |
parentOf(T node)
Returns the parent of the given node.
|
childrenOf, filteredList, of
default TreeDef.Parented<T> filter(java.util.function.Predicate<T> predicate)
static <T> TreeDef.Parented<T> of(java.util.function.Function<T,java.util.List<T>> childFunc, java.util.function.Function<T,T> parentFunc)