B - Concrete builder type.S - Shape type being created.public abstract static class CollectionShape.Builder<B extends CollectionShape.Builder<?,?>,S extends CollectionShape> extends AbstractShapeBuilder<B,S>
| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
B |
addMember(MemberShape member)
Adds a member to the shape IFF the shape supports members.
|
B |
id(ShapeId shapeId)
Sets the shape ID of the shape.
|
B |
member(MemberShape member)
Sets the member of the collection.
|
B |
member(ShapeId target)
Sets the member of the collection.
|
B |
member(ShapeId target,
java.util.function.Consumer<MemberShape.Builder> memberUpdater)
Sets the member of the collection.
|
addTrait, addTraits, clearTraits, getId, getShapeType, getSourceLocation, id, removeTrait, removeTrait, source, source, traitsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbuild, requiredStatepublic final B id(ShapeId shapeId)
AbstractShapeBuilderid in class AbstractShapeBuilder<B extends CollectionShape.Builder<?,?>,S extends CollectionShape>shapeId - Shape ID to set.public B member(MemberShape member)
member - Member of the collection to set.public B member(ShapeId target)
target - Target of the member.public B member(ShapeId target, java.util.function.Consumer<MemberShape.Builder> memberUpdater)
target - Target of the member.memberUpdater - Consumer that can update the created member shape.public final B addMember(MemberShape member)
AbstractShapeBuilderaddMember in class AbstractShapeBuilder<B extends CollectionShape.Builder<?,?>,S extends CollectionShape>member - Member to add to the shape.