Package lib.aide.paths
Class PathsVisuals
java.lang.Object
lib.aide.paths.PathsVisuals
This class provides visual representation utilities for the Paths class.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<C,
P> String asciiTree
(Paths<C, P> paths, Optional<PathsVisuals.PayloadContentSupplier<C, P>> payloadRenderer) Generates an ASCII tree representation of the given Paths object.
-
Constructor Details
-
PathsVisuals
public PathsVisuals()
-
-
Method Details
-
asciiTree
public <C,P> String asciiTree(Paths<C, P> paths, Optional<PathsVisuals.PayloadContentSupplier<C, P>> payloadRenderer) Generates an ASCII tree representation of the given Paths object.- Type Parameters:
C
- the type of the path componentsP
- the type of the payload- Parameters:
paths
- the Paths object to visualize- Returns:
- a string representing the ASCII tree
-