public class TreeParallelTraverser<T>
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
DefaultTraverserContext<T> |
newRootContext(java.util.Map<java.lang.Class<?>,java.lang.Object> vars) |
static <T> TreeParallelTraverser<T> |
parallelTraverser(java.util.function.Function<? super T,? extends java.util.List<T>> getChildren) |
static <T> TreeParallelTraverser<T> |
parallelTraverser(java.util.function.Function<? super T,? extends java.util.List<T>> getChildren,
java.lang.Object sharedContextData) |
static <T> TreeParallelTraverser<T> |
parallelTraverser(java.util.function.Function<? super T,? extends java.util.List<T>> getChildren,
java.lang.Object sharedContextData,
java.util.concurrent.ForkJoinPool forkJoinPool) |
static <T> TreeParallelTraverser<T> |
parallelTraverserWithNamedChildren(java.util.function.Function<? super T,java.util.Map<java.lang.String,? extends java.util.List<T>>> getNamedChildren,
java.lang.Object sharedContextData) |
static <T> TreeParallelTraverser<T> |
parallelTraverserWithNamedChildren(java.util.function.Function<? super T,java.util.Map<java.lang.String,? extends java.util.List<T>>> getNamedChildren,
java.lang.Object sharedContextData,
java.util.concurrent.ForkJoinPool forkJoinPool) |
TreeParallelTraverser<T> |
rootVar(java.lang.Class<?> key,
java.lang.Object value) |
TreeParallelTraverser<T> |
rootVars(java.util.Map<java.lang.Class<?>,java.lang.Object> rootVars) |
void |
traverse(java.util.Collection<? extends T> roots,
TraverserVisitor<? super T> visitor) |
void |
traverse(T root,
TraverserVisitor<? super T> visitor) |
void |
traverseImpl(java.util.Collection<? extends T> roots,
TraverserVisitor<? super T> visitor) |
public static <T> TreeParallelTraverser<T> parallelTraverser(java.util.function.Function<? super T,? extends java.util.List<T>> getChildren)
public static <T> TreeParallelTraverser<T> parallelTraverser(java.util.function.Function<? super T,? extends java.util.List<T>> getChildren, java.lang.Object sharedContextData)
public static <T> TreeParallelTraverser<T> parallelTraverser(java.util.function.Function<? super T,? extends java.util.List<T>> getChildren, java.lang.Object sharedContextData, java.util.concurrent.ForkJoinPool forkJoinPool)
public static <T> TreeParallelTraverser<T> parallelTraverserWithNamedChildren(java.util.function.Function<? super T,java.util.Map<java.lang.String,? extends java.util.List<T>>> getNamedChildren, java.lang.Object sharedContextData)
public static <T> TreeParallelTraverser<T> parallelTraverserWithNamedChildren(java.util.function.Function<? super T,java.util.Map<java.lang.String,? extends java.util.List<T>>> getNamedChildren, java.lang.Object sharedContextData, java.util.concurrent.ForkJoinPool forkJoinPool)
public TreeParallelTraverser<T> rootVars(java.util.Map<java.lang.Class<?>,java.lang.Object> rootVars)
public TreeParallelTraverser<T> rootVar(java.lang.Class<?> key, java.lang.Object value)
public void traverse(T root, TraverserVisitor<? super T> visitor)
public void traverse(java.util.Collection<? extends T> roots, TraverserVisitor<? super T> visitor)
public DefaultTraverserContext<T> newRootContext(java.util.Map<java.lang.Class<?>,java.lang.Object> vars)
public void traverseImpl(java.util.Collection<? extends T> roots, TraverserVisitor<? super T> visitor)