com.google.gerrit.entities.AutoValue_SubmitRequirementExpressionResult_PredicateResult Maven / Gradle / Ivy
The newest version!
package com.google.gerrit.entities;
import com.google.common.collect.ImmutableList;
import javax.annotation.processing.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_SubmitRequirementExpressionResult_PredicateResult extends SubmitRequirementExpressionResult.PredicateResult {
private final ImmutableList childPredicateResults;
private final String predicateString;
private final boolean status;
private AutoValue_SubmitRequirementExpressionResult_PredicateResult(
ImmutableList childPredicateResults,
String predicateString,
boolean status) {
this.childPredicateResults = childPredicateResults;
this.predicateString = predicateString;
this.status = status;
}
@Override
ImmutableList childPredicateResults() {
return childPredicateResults;
}
@Override
public String predicateString() {
return predicateString;
}
@Override
boolean status() {
return status;
}
@Override
public String toString() {
return "PredicateResult{"
+ "childPredicateResults=" + childPredicateResults + ", "
+ "predicateString=" + predicateString + ", "
+ "status=" + status
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof SubmitRequirementExpressionResult.PredicateResult) {
SubmitRequirementExpressionResult.PredicateResult that = (SubmitRequirementExpressionResult.PredicateResult) o;
return this.childPredicateResults.equals(that.childPredicateResults())
&& this.predicateString.equals(that.predicateString())
&& this.status == that.status();
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= childPredicateResults.hashCode();
h$ *= 1000003;
h$ ^= predicateString.hashCode();
h$ *= 1000003;
h$ ^= status ? 1231 : 1237;
return h$;
}
static final class Builder extends SubmitRequirementExpressionResult.PredicateResult.Builder {
private ImmutableList.Builder childPredicateResultsBuilder$;
private ImmutableList childPredicateResults;
private String predicateString;
private boolean status;
private byte set$0;
Builder() {
}
@Override
protected ImmutableList.Builder childPredicateResultsBuilder() {
if (childPredicateResultsBuilder$ == null) {
childPredicateResultsBuilder$ = ImmutableList.builder();
}
return childPredicateResultsBuilder$;
}
@Override
public SubmitRequirementExpressionResult.PredicateResult.Builder predicateString(String predicateString) {
if (predicateString == null) {
throw new NullPointerException("Null predicateString");
}
this.predicateString = predicateString;
return this;
}
@Override
public SubmitRequirementExpressionResult.PredicateResult.Builder status(boolean status) {
this.status = status;
set$0 |= (byte) 1;
return this;
}
@Override
public SubmitRequirementExpressionResult.PredicateResult build() {
if (childPredicateResultsBuilder$ != null) {
this.childPredicateResults = childPredicateResultsBuilder$.build();
} else if (this.childPredicateResults == null) {
this.childPredicateResults = ImmutableList.of();
}
if (set$0 != 1
|| this.predicateString == null) {
StringBuilder missing = new StringBuilder();
if (this.predicateString == null) {
missing.append(" predicateString");
}
if ((set$0 & 1) == 0) {
missing.append(" status");
}
throw new IllegalStateException("Missing required properties:" + missing);
}
return new AutoValue_SubmitRequirementExpressionResult_PredicateResult(
this.childPredicateResults,
this.predicateString,
this.status);
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy