Class SetShape

  • All Implemented Interfaces:
    java.lang.Comparable<Shape>, FromSourceLocation, ToShapeId, Tagged, ToSmithyBuilder<ListShape>

    @Deprecated
    public final class SetShape
    extends ListShape
    Deprecated.
    Represents a set shape.

    Sets are deprecated. Use list shapes with the uniqueItems trait instead. When serialized using IDL v2, sets are converted to lists with the uniqueItems trait.

    • Method Detail

      • accept

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

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

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