Package de.xima.fc.common.tree
Class TreeVisit.TreeVisitParams<Node,Id>
- java.lang.Object
-
- de.xima.fc.common.tree.TreeVisit.TreeVisitParams<Node,Id>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TreeVisit.TreeVisitParams.Builder<Node,Id>
A builder for configuring the parameters forTreeVisit
.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <Node,Id>
TreeVisit.TreeVisitParams.Builder<Node,Id>builder(ITreeAccessor<Node,Id> treeAccessor)
A new builder for the given tree accessor.static <Node,Id>
TreeVisit.TreeVisitParams<Node,Id>defaults(ITreeAccessor<Node,Id> treeAccessor)
A new params instance with the given tree accessor and the default settings otherwise.
-
-
-
Method Detail
-
builder
public static <Node,Id> TreeVisit.TreeVisitParams.Builder<Node,Id> builder(ITreeAccessor<Node,Id> treeAccessor)
A new builder for the given tree accessor.- Type Parameters:
Node
- Type of the tree nodes.Id
- Type of the identifier for a node.- Parameters:
treeAccessor
- Adapter for the tree data structure.- Returns:
- A builder for configuring additional settings.
-
defaults
public static <Node,Id> TreeVisit.TreeVisitParams<Node,Id> defaults(ITreeAccessor<Node,Id> treeAccessor)
A new params instance with the given tree accessor and the default settings otherwise.- Type Parameters:
Node
- Type of the tree nodes.Id
- Type of the identifier for a node.- Parameters:
treeAccessor
- Adapter for the tree data structure.- Returns:
- A tree visit params instance.
-
-