public class TreeUtils extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
TreeUtils.Consumer<T> |
| Constructor and Description |
|---|
TreeUtils() |
| Modifier and Type | Method and Description |
|---|---|
static <T extends TreeNode<T>> |
forEach(Forest<T> forest,
TreeUtils.Consumer<T> op)
Call
TreeUtils.Consumer.accept(Object) on op for every node in the forest. |
static <T extends TreeNode<T>> |
getLeafs(Forest<T> forest)
Find all leaf nodes of a forest.
|
public static <T extends TreeNode<T>> ArrayList<T> getLeafs(Forest<T> forest)
forest - the forestpublic static <T extends TreeNode<T>> void forEach(Forest<T> forest, TreeUtils.Consumer<T> op)
TreeUtils.Consumer.accept(Object) on op for every node in the forest.forest - the forestop - the consumerCopyright © 2015–2022 ImgLib2. All rights reserved.