Interface Visitable<T>

Record Components:
T - the parameterized type of the visitor to accept. This should be the base type of the objects being visited.

public interface Visitable<T>
Interface for classes which wish to implement the visitor pattern.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    accept(Visitor<T> visitor)
    Accept the given visitor.
  • Method Details

    • accept

      void accept(Visitor<T> visitor)
      Accept the given visitor.
      Parameters:
      the - visitor