Interface Visitor<T>

  • Type Parameters:
    T - type of the visited element
    All Known Subinterfaces:
    EdgeVisitor<V,​E>, VertexVisitor<V,​E>
    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 Visitor<T>

    Functional Interface as Basis for the Visitor Pattern

    Since:
    1.0
    Author:
    Andreas Schuler
    • Method Detail

      • visit

        void visit​(T element)
        Parameters:
        element - element