- Type Parameters:
T- type of object to be visited
R- type of value the visitor should return as the result of the visit/traversal
- 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 interface IVisitor<T,R>Generic visitor interface for traversals.