Package com.github.mike10004.xvfbmanager
Class TreeNode.Utils
- java.lang.Object
-
- com.github.mike10004.xvfbmanager.TreeNode.Utils
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <E> Function<TreeNode<E>,Iterable<TreeNode<E>>>childrenFunction()Creates and returns a new function that gets a node's children.static <E> Function<TreeNode<E>,E>labelFunction()Creates and returns a new function that returns the label of a tree nodestatic <E> com.google.common.graph.Traverser<TreeNode<E>>traverser()Creates and returns a new traverser instance.
-
-
-
Method Detail
-
traverser
public static <E> com.google.common.graph.Traverser<TreeNode<E>> traverser()
Creates and returns a new traverser instance.- Type Parameters:
E- the tree node label type- Returns:
- a traverser
-
childrenFunction
public static <E> Function<TreeNode<E>,Iterable<TreeNode<E>>> childrenFunction()
Creates and returns a new function that gets a node's children.- Type Parameters:
E- the tree node label type- Returns:
- a new function
-
-