com.google.gerrit.entities.AutoValue_LegacySubmitRequirement Maven / Gradle / Ivy
The newest version!
package com.google.gerrit.entities;
import javax.annotation.processing.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_LegacySubmitRequirement extends LegacySubmitRequirement {
private final String fallbackText;
private final String type;
private AutoValue_LegacySubmitRequirement(
String fallbackText,
String type) {
this.fallbackText = fallbackText;
this.type = type;
}
@Override
public String fallbackText() {
return fallbackText;
}
@Override
public String type() {
return type;
}
@Override
public String toString() {
return "LegacySubmitRequirement{"
+ "fallbackText=" + fallbackText + ", "
+ "type=" + type
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof LegacySubmitRequirement) {
LegacySubmitRequirement that = (LegacySubmitRequirement) o;
return this.fallbackText.equals(that.fallbackText())
&& this.type.equals(that.type());
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= fallbackText.hashCode();
h$ *= 1000003;
h$ ^= type.hashCode();
return h$;
}
static final class Builder extends LegacySubmitRequirement.Builder {
private String fallbackText;
private String type;
Builder() {
}
@Override
public LegacySubmitRequirement.Builder setFallbackText(String fallbackText) {
if (fallbackText == null) {
throw new NullPointerException("Null fallbackText");
}
this.fallbackText = fallbackText;
return this;
}
@Override
public LegacySubmitRequirement.Builder setType(String type) {
if (type == null) {
throw new NullPointerException("Null type");
}
this.type = type;
return this;
}
@Override
LegacySubmitRequirement autoBuild() {
if (this.fallbackText == null
|| this.type == null) {
StringBuilder missing = new StringBuilder();
if (this.fallbackText == null) {
missing.append(" fallbackText");
}
if (this.type == null) {
missing.append(" type");
}
throw new IllegalStateException("Missing required properties:" + missing);
}
return new AutoValue_LegacySubmitRequirement(
this.fallbackText,
this.type);
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy