Interface DependencyTreeWalker.Callback

Enclosing class:
DependencyTreeWalker
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface DependencyTreeWalker.Callback
Callback interface for handling dependencies during tree traversal.
  • Method Details

    • accept

      void accept(ResolvedDependency dependency, Deque<ResolvedDependency> path)
      Called when a dependency is visited or matches a pattern.

      The path is in leaf-to-root order: path.getFirst() returns the current dependency, path.getLast() returns the direct (root) dependency.

      Parameters:
      dependency - the current dependency being visited/matched
      path - the path from this dependency to direct dependency (leaf-to-root order); use getLast() for the direct dependency, iterate normally for leaf-to-root