Schnittstelle VoidVisitor


public interface VoidVisitor
An interface for implementing the Visitor pattern for different types of elements in the Battleship model without returning any result.
  • Methodenübersicht

    Modifizierer und Typ
    Methode
    Beschreibung
    void
    Visits a Battleship element.
    void
    visit(Shot shot)
    Visits a Shot element.
  • Methodendetails

    • visit

      void visit(Shot shot)
      Visits a Shot element.
      Parameter:
      shot - the Shot element to visit
    • visit

      void visit(Battleship ship)
      Visits a Battleship element.
      Parameter:
      ship - the Battleship element to visit