All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.gerrit.server.project.AutoValue_SubmitRuleOptions Maven / Gradle / Ivy

There is a newer version: 3.11.0
Show newest version
package com.google.gerrit.server.project;

import javax.annotation.Generated;

@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_SubmitRuleOptions extends SubmitRuleOptions {

  private final boolean allowClosed;

  private AutoValue_SubmitRuleOptions(
      boolean allowClosed) {
    this.allowClosed = allowClosed;
  }

  @Override
  public boolean allowClosed() {
    return allowClosed;
  }

  @Override
  public String toString() {
    return "SubmitRuleOptions{"
         + "allowClosed=" + allowClosed
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof SubmitRuleOptions) {
      SubmitRuleOptions that = (SubmitRuleOptions) o;
      return this.allowClosed == that.allowClosed();
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h$ = 1;
    h$ *= 1000003;
    h$ ^= allowClosed ? 1231 : 1237;
    return h$;
  }

  @Override
  public SubmitRuleOptions.Builder toBuilder() {
    return new Builder(this);
  }

  static final class Builder extends SubmitRuleOptions.Builder {
    private Boolean allowClosed;
    Builder() {
    }
    private Builder(SubmitRuleOptions source) {
      this.allowClosed = source.allowClosed();
    }
    @Override
    public SubmitRuleOptions.Builder allowClosed(boolean allowClosed) {
      this.allowClosed = allowClosed;
      return this;
    }
    @Override
    public SubmitRuleOptions build() {
      String missing = "";
      if (this.allowClosed == null) {
        missing += " allowClosed";
      }
      if (!missing.isEmpty()) {
        throw new IllegalStateException("Missing required properties:" + missing);
      }
      return new AutoValue_SubmitRuleOptions(
          this.allowClosed);
    }
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy