Class ShortShape

All Implemented Interfaces:
Comparable<Shape>, FromSourceLocation, ToShapeId, Tagged, ToSmithyBuilder<ShortShape>

public final class ShortShape extends NumberShape implements ToSmithyBuilder<ShortShape>
Represents a short shape.
  • Method Details

    • builder

      public static ShortShape.Builder builder()
    • toBuilder

      public ShortShape.Builder toBuilder()
      Description copied from interface: ToSmithyBuilder
      Take this object and create a builder that contains all of the current property values of this object.
      Specified by:
      toBuilder in interface ToSmithyBuilder<ShortShape>
      a builder for type T
    • accept

      public <R> R accept(ShapeVisitor<R> visitor)
      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.
      visitor - ShapeVisitor to use.
      Returns the result.
    • asShortShape

      public Optional<ShortShape> asShortShape()
      asShortShape in class Shape
      Optionally returns the shape as a ShortShape.
    • getType

      public ShapeType getType()
      Description copied from class: Shape
      Gets the type of the shape.
      Specified by:
      getType in class Shape
      Returns the type;