Class SetShape

    • Method Detail

      • accept

        public <R> R accept​(ShapeVisitor<R> cases)
        Description copied from class: Shape
        Dispatches the shape to the appropriate ShapeVisitor method.
        Specified by:
        accept in class Shape
        Type Parameters:
        R - Return type of the accept.
        Parameters:
        cases - NeighborVisitor to use.
        Returns:
        Returns the result.
      • asSetShape

        public java.util.Optional<SetShape> asSetShape()
        Overrides:
        asSetShape in class Shape
        Returns:
        Optionally returns the shape as a SetShape.