// Generated by delombok at Sun Nov 06 21:21:45 CET 2022

public class BuilderWithDeprecatedParam {
  private static java.util.Collection<String> creator(String bar, @Deprecated String foo) {
    return java.util.Arrays.asList(bar, foo);
  }


  @java.lang.SuppressWarnings("all")
  public static class CollectionBuilder {
    @java.lang.SuppressWarnings("all")
    private String bar;
    @java.lang.SuppressWarnings("all")
    private String foo;

    @java.lang.SuppressWarnings("all")
    CollectionBuilder() {
    }

    /**
     * @return {@code this}.
     */
    @java.lang.SuppressWarnings("all")
    public BuilderWithDeprecatedParam.CollectionBuilder bar(final String bar) {
      this.bar = bar;
      return this;
    }

    /**
     * @return {@code this}.
     */
    @java.lang.Deprecated
    @java.lang.SuppressWarnings("all")
    public BuilderWithDeprecatedParam.CollectionBuilder foo(final String foo) {
      this.foo = foo;
      return this;
    }

    @java.lang.SuppressWarnings("all")
    public java.util.Collection<String> build() {
      return BuilderWithDeprecatedParam.creator(this.bar, this.foo);
    }

    @java.lang.Override
    @java.lang.SuppressWarnings("all")
    public java.lang.String toString() {
      return "BuilderWithDeprecatedParam.CollectionBuilder(bar=" + this.bar + ", foo=" + this.foo + ")";
    }
  }

  @java.lang.SuppressWarnings("all")
  public static BuilderWithDeprecatedParam.CollectionBuilder builder() {
    return new BuilderWithDeprecatedParam.CollectionBuilder();
  }
}
