Interface SmartVisitation<T extends SmartVisitable<T>>

All Known Implementing Classes:
SmartVisitationImpl

public interface SmartVisitation<T extends SmartVisitable<T>>
Keeps the state of the visitation in order to avoid visiting one object multiple times.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    alreadyVisited(T visitable)
     
    void
    registerVisit(T visitable)
     
  • Method Details

    • alreadyVisited

      boolean alreadyVisited(T visitable)
    • registerVisit

      void registerVisit(T visitable)