public class TreeIterable
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static <T> java.lang.Iterable<T> |
breadthFirst(TreeDef<T> treeDef,
T node)
Returns a breadth-first search of the given tree, not including root.
|
static <T> java.lang.Iterable<T> |
depthFirst(TreeDef<T> treeDef,
T node)
Returns a breadth-first traversal of the given tree, not including root.
|
static <T> java.lang.Iterable<T> |
toParent(TreeDef.Parented<T> treeDef,
T node)
Returns a breadth-first traversal of the given tree, including the current node.
|
public static <T> java.lang.Iterable<T> toParent(TreeDef.Parented<T> treeDef, T node)
public static <T> java.lang.Iterable<T> breadthFirst(TreeDef<T> treeDef, T node)
public static <T> java.lang.Iterable<T> depthFirst(TreeDef<T> treeDef, T node)