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

public static final class TreeVisit.TreeVisitParams<Node,Id> extends Object
Parameters for TreeVisit.
Since:
8.2.0
Author:
XIMA MEDIA GmbH
  • 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.