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

com.google.gerrit.server.patch.AutoValue_DiffOptions Maven / Gradle / Ivy

There is a newer version: 3.10.1
Show newest version
package com.google.gerrit.server.patch;

import javax.annotation.processing.Generated;

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

  private final boolean skipFilesWithAllEditsDueToRebase;

  private AutoValue_DiffOptions(
      boolean skipFilesWithAllEditsDueToRebase) {
    this.skipFilesWithAllEditsDueToRebase = skipFilesWithAllEditsDueToRebase;
  }

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

  @Override
  public String toString() {
    return "DiffOptions{"
        + "skipFilesWithAllEditsDueToRebase=" + skipFilesWithAllEditsDueToRebase
        + "}";
  }

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

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

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy