Package io.sundr.utils
Class Dependencies
java.lang.Object
io.sundr.utils.Dependencies
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.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA dependency tree that tracks relationships between items and can render them in a visual tree format. -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> Dependencies.DependencyTree<T>newTree()Creates a new dependency tree with default formatting.static <T> Dependencies.DependencyTree<T>Creates a new dependency tree with a custom formatter.
-
Method Details
-
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
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
-