public class TreeStream
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static <T> java.util.stream.Stream<T> |
breadthFirst(TreeDef<T> treeDef,
T node)
Creates a Stream
|
static <T> java.util.stream.Stream<T> |
depthFirst(TreeDef<T> treeDef,
T node)
Creates a Stream
|
static <T> java.util.stream.Stream<T> |
toParent(TreeDef.Parented<T> treeDef,
T node)
Creates a Stream
|
public static <T> java.util.stream.Stream<T> toParent(TreeDef.Parented<T> treeDef, T node)
public static <T> java.util.stream.Stream<T> breadthFirst(TreeDef<T> treeDef, T node)
public static <T> java.util.stream.Stream<T> depthFirst(TreeDef<T> treeDef, T node)