Interface Area.Visitor<R>

Type Parameters:
R - The result type of visiting an area.
Enclosing interface:
Area

public static interface Area.Visitor<R>
Visitor to operate on different shapes of areas.
Since:
5.1.203
  • Method Summary

    Modifier and Type
    Method
    Description
    visit(@NotNull CircleArea circleArea)
    Visit a circular area.
    visit(@NotNull PolyArea polyArea)
    Visit a polygonal area.
    visit(@NotNull RectArea rectArea)
    Visit a rectangular area.
  • Method Details

    • visit

      @Nullable R visit(@NotNull @NotNull RectArea rectArea)
      Visit a rectangular area.
      Parameters:
      rectArea - The area to visit.
      Returns:
      The result of the visit.
      Since:
      5.1.203
    • visit

      @Nullable R visit(@NotNull @NotNull CircleArea circleArea)
      Visit a circular area.
      Parameters:
      circleArea - The area to visit.
      Returns:
      The result of the visit.
      Since:
      5.1.203
    • visit

      @Nullable R visit(@NotNull @NotNull PolyArea polyArea)
      Visit a polygonal area.
      Parameters:
      polyArea - The area to visit.
      Returns:
      The result of the visit.
      Since:
      5.1.203