Class TreeVisit.TreeVisitParams<Node,Id>
java.lang.Object
de.xima.fc.common.tree.TreeVisit.TreeVisitParams<Node,Id>
- Type Parameters:
Node- Type of the nodes in the tree.Id- Type of the identifier for a node.
- Enclosing class:
TreeVisit
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA builder for configuring the parameters forTreeVisit. -
Method Summary
Modifier and TypeMethodDescriptionstatic <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.Builder <Node, Id> builder(ITreeAccessor<Node, Id> treeAccessor) Deprecated.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.static <Node,Id> TreeVisit.TreeVisitParams <Node, Id> defaults(ITreeAccessor<Node, Id> treeAccessor) Deprecated.static <Node,Id> TreeVisit.TreeVisitParams <Node, Id> pathless(ITreeAccessor<Node, Id> treeAccessor) A new params instance with the given tree accessor that does not keep track of the path and the default settings otherwise.
-
Method Details
-
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.
-
builder
@Deprecated public static <Node,Id> TreeVisit.TreeVisitParams.Builder<Node,Id> builder(ITreeAccessor<Node, Id> treeAccessor) Deprecated.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.
-
defaults
@Deprecated public static <Node,Id> TreeVisit.TreeVisitParams<Node,Id> defaults(ITreeAccessor<Node, Id> treeAccessor) Deprecated.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.
-
pathless
public static <Node,Id> TreeVisit.TreeVisitParams<Node,Id> pathless(ITreeAccessor<Node, Id> treeAccessor) A new params instance with the given tree accessor that does not keep track of the path 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.
-
builder(ITreeAccessor).