Class CollectionShape

java.lang.Object
software.amazon.smithy.model.shapes.Shape
software.amazon.smithy.model.shapes.CollectionShape
All Implemented Interfaces:
Comparable<Shape>, FromSourceLocation, ToShapeId, Tagged
Direct Known Subclasses:
ListShape, SetShape

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

    • getMember

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

      public 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(Object other)
      Overrides:
      equals in class Shape