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

public final class BuilderWithBuilderClassNameOnConstructor {
  private final String name;
  private final int age;

  public BuilderWithBuilderClassNameOnConstructor(String name, int age) {
    this.name = name;
    this.age = age;
  }


  @java.lang.SuppressWarnings("all")
  public static class Builder {
    @java.lang.SuppressWarnings("all")
    private String name;
    @java.lang.SuppressWarnings("all")
    private int age;

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

    /**
     * @return {@code this}.
     */
    @java.lang.SuppressWarnings("all")
    public BuilderWithBuilderClassNameOnConstructor.Builder name(final String name) {
      this.name = name;
      return this;
    }

    /**
     * @return {@code this}.
     */
    @java.lang.SuppressWarnings("all")
    public BuilderWithBuilderClassNameOnConstructor.Builder age(final int age) {
      this.age = age;
      return this;
    }

    @java.lang.SuppressWarnings("all")
    public BuilderWithBuilderClassNameOnConstructor build() {
      return new BuilderWithBuilderClassNameOnConstructor(this.name, this.age);
    }

    @java.lang.Override
    @java.lang.SuppressWarnings("all")
    public java.lang.String toString() {
      return "BuilderWithBuilderClassNameOnConstructor.Builder(name=" + this.name + ", age=" + this.age + ")";
    }
  }

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

  @java.lang.SuppressWarnings("all")
  public String getName() {
    return this.name;
  }

  @java.lang.SuppressWarnings("all")
  public int getAge() {
    return this.age;
  }

  @java.lang.Override
  @java.lang.SuppressWarnings("all")
  public boolean equals(final java.lang.Object o) {
    if (o == this) return true;
    if (!(o instanceof BuilderWithBuilderClassNameOnConstructor)) return false;
    final BuilderWithBuilderClassNameOnConstructor other = (BuilderWithBuilderClassNameOnConstructor)o;
    final Object this$name = this.getName();
    final Object other$name = other.getName();
    if (this$name == null ? other$name != null : !this$name.equals(other$name)) return false;
    if (this.getAge() != other.getAge()) return false;
    return true;
  }

  @java.lang.Override
  @java.lang.SuppressWarnings("all")
  public int hashCode() {
    final int PRIME = 59;
    int result = 1;
    final Object $name = this.getName();
    result = result * PRIME + ($name == null ? 43 : $name.hashCode());
    result = result * PRIME + this.getAge();
    return result;
  }

  @java.lang.Override
  @java.lang.SuppressWarnings("all")
  public java.lang.String toString() {
    return "BuilderWithBuilderClassNameOnConstructor(name=" + this.getName() + ", age=" + this.getAge() + ")";
  }
}
