Modifier and Type | Method and Description |
---|---|
static <T> Stream<T> |
breadthFirst(TreeDef<T> treeDef,
T node)
Creates a
Stream that starts at node and iterates deeper into the tree in a bread-first order. |
static <T> Stream<T> |
depthFirst(TreeDef<T> treeDef,
T node)
Creates a
Stream that starts at node and iterates deeper into the tree in a depth-first order. |
static <T> Stream<T> |
toParent(TreeDef.Parented<T> treeDef,
T node)
Creates a
Stream that starts at node and ends at its root parent. |
public static <T> Stream<T> toParent(TreeDef.Parented<T> treeDef, T node)
Creates a Stream
that starts at node
and ends at its root parent.
public static <T> Stream<T> breadthFirst(TreeDef<T> treeDef, T node)
Creates a Stream
that starts at node
and iterates deeper into the tree in a bread-first order.