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
Abstract class representing Set and List shapes.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
CollectionShape.Builder<B extends CollectionShape.Builder<?,
?>, S extends CollectionShape> Builder used to create a List or Set shape. -
Method Summary
Modifier and TypeMethodDescriptionboolean
final MemberShape
Get the member shape of the collection.members()
Gets all of the members contained in the shape.Methods inherited from class software.amazon.smithy.model.shapes.Shape
accept, asBigDecimalShape, asBigIntegerShape, asBlobShape, asBooleanShape, asByteShape, asDocumentShape, asDoubleShape, asFloatShape, asIntegerShape, asListShape, asLongShape, asMapShape, asMemberShape, asOperationShape, asResourceShape, asServiceShape, asSetShape, asShortShape, asStringShape, asStructureShape, asTimestampShape, asUnionShape, compareTo, expectTrait, findMemberTrait, findTrait, findTrait, getAllTraits, getId, getMemberTrait, getSourceLocation, getTags, getTrait, getType, hashCode, hasTrait, hasTrait, hasTrait, isBigDecimalShape, isBigIntegerShape, isBlobShape, isBooleanShape, isByteShape, isDocumentShape, isDoubleShape, isFloatShape, isIntegerShape, isListShape, isLongShape, isMapShape, isMemberShape, isOperationShape, isResourceShape, isServiceShape, isSetShape, isShortShape, isStringShape, isStructureShape, isTimestampShape, isUnionShape, shapeToBuilder, toShapeId, toString
-
Method Details
-
getMember
Get the member shape of the collection.- Returns:
- Returns the member shape.
-
members
Description copied from class:Shape
Gets all of the members contained in the shape. -
equals
-