| Modifier and Type | Field and Description |
|---|---|
| private BiConsumer | |
| private BiPredicate | |
| private Function |
| Access | Constructor and Description |
|---|---|
| private | TreeCollector(Function<T, List<T>>
a function that returns a list of children of the specified node getChildren, BiConsumer<T, T> a function that adds the second argument as a child to the first-specified node addChild, BiPredicate<T, T> a function that tells us whether two nodes are equivalent equivalence)
|
| Modifier and Type | Method and Description |
|---|---|
| public BiConsumer | accumulator()
Implements java. A function that folds a value into a mutable result container. |
| public Set | characteristics()
Implements java. Returns a |
| public BinaryOperator | combiner()
Implements java. A function that accepts two partial results and merges them. |
| public Function | finisher()
Implements java. Perform the final transformation from the intermediate accumulation type
|
| private void | |
| public static <T extends TreeNode | |
| public Supplier | supplier()
Implements java. A function that creates and returns a new mutable result container. |
| addChild | back to summary |
|---|---|
| private BiConsumer<T, T> addChild | |
| equivalence | back to summary |
|---|---|
| private BiPredicate<T, T> equivalence | |
| getChildren | back to summary |
|---|---|
| private Function<T, List<T>> getChildren | |
| TreeCollector | back to summary |
|---|---|
private TreeCollector(Function<T, List<T>> getChildren, BiConsumer<T, T> addChild, BiPredicate<T, T> equivalence)
| |
| accumulator | back to summary |
|---|---|
| public BiConsumer Implements java. Doc from java. A function that folds a value into a mutable result container.
| |
| characteristics | back to summary |
|---|---|
| public Set Implements java. Doc from java. Returns a
| |
| combiner | back to summary |
|---|---|
| public BinaryOperator Implements java. Doc from java. A function that accepts two partial results and merges them. The combiner function may fold state from one argument into the other and return that, or may return a new result container.
| |
| finisher | back to summary |
|---|---|
| public Function Implements java. Doc from java. Perform the final transformation from the intermediate accumulation type
If the characteristic
| |
| merge | back to summary |
|---|---|
| private void merge(T target, T node) | |
| mergeIntoTree | back to summary |
|---|---|
| public static <T extends TreeNode | |
| supplier | back to summary |
|---|---|
| public Supplier Implements java. Doc from java. A function that creates and returns a new mutable result container.
| |