smithy-model/src/main/java/software/amazon/smithy/model/traits/LengthTrait.java [59:78]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        return Optional.ofNullable(max);
    }

    @Override
    protected Node createNode() {
        return new ObjectNode(MapUtils.of(), getSourceLocation())
                .withOptionalMember("min", getMin().map(Node::from))
                .withOptionalMember("max", getMax().map(Node::from));
    }

    @Override
    public Builder toBuilder() {
        return builder().min(min).max(max).sourceLocation(getSourceLocation());
    }

    /**
     * @return Returns a builder used to create a length trait.
     */
    public static Builder builder() {
        return new Builder();
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



smithy-model/src/main/java/software/amazon/smithy/model/traits/RangeTrait.java [60:79]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        return Optional.ofNullable(max);
    }

    @Override
    protected Node createNode() {
        return new ObjectNode(MapUtils.of(), getSourceLocation())
                .withOptionalMember("min", getMin().map(Node::from))
                .withOptionalMember("max", getMax().map(Node::from));
    }

    @Override
    public Builder toBuilder() {
        return builder().min(min).max(max).sourceLocation(getSourceLocation());
    }

    /**
     * @return Returns a new RangeTrait builder.
     */
    public static Builder builder() {
        return new Builder();
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



