Class CollectionShape

  • All Implemented Interfaces:
    java.lang.Comparable<Shape>, FromSourceLocation, ToShapeId, software.amazon.smithy.utils.Tagged
    Direct Known Subclasses:
    ListShape, SetShape

    public abstract class CollectionShape
    extends Shape
    Abstract class representing Set and List shapes.
    • Method Detail

      • getMember

        public final MemberShape getMember()
        Get the member shape of the collection.
        Returns:
        Returns the member shape.
      • members

        public java.util.Collection<MemberShape> members()
        Description copied from class: Shape
        Gets all of the members contained in the shape.
        Overrides:
        members in class Shape
        Returns:
        Returns the members contained in the shape (if any).
      • equals

        public boolean equals​(java.lang.Object other)
        Overrides:
        equals in class Shape