Class Dependencies

java.lang.Object
io.sundr.utils.Dependencies

public final class Dependencies extends Object
Utility class for building and rendering dependency trees. Provides functionality to track dependencies between items and visualize them in a tree format with support for cycle detection.
  • Method Details

    • newTree

      public static <T> Dependencies.DependencyTree<T> newTree()
      Creates a new dependency tree with default formatting.
      Type Parameters:
      T - the type of items in the dependency tree
      Returns:
      a new DependencyTree instance
    • newTree

      public static <T> Dependencies.DependencyTree<T> newTree(Function<T,String> formatter)
      Creates a new dependency tree with a custom formatter.
      Type Parameters:
      T - the type of items in the dependency tree
      Parameters:
      formatter - function to convert items to string representation
      Returns:
      a new DependencyTree instance with the specified formatter