com.google.gerrit.server.patch.AutoValue_DiffOptions Maven / Gradle / Ivy
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