| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private static <T extends TreeNode | |
| public static <T extends TreeNode | mergeIntoTree(Stream<T> nodes, Function<T, K> keyExtractor)
Merges nodes into a tree using a key to locate equivalent siblings. |
| TreeCollector | back to summary |
|---|---|
| private TreeCollector() | |
| merge | back to summary |
|---|---|
| private static <T extends TreeNode | |
| mergeIntoTree | back to summary |
|---|---|
| public static <T extends TreeNode Merges nodes into a tree using a key to locate equivalent siblings. This avoids repeatedly scanning sibling lists when merging a large number of nodes. The key must have the same equality semantics as the groups being merged. | |