com.google.gerrit.server.quota.AutoValue_QuotaResponse_Aggregated Maven / Gradle / Ivy
The newest version!
package com.google.gerrit.server.quota;
import com.google.common.collect.ImmutableList;
import javax.annotation.processing.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_QuotaResponse_Aggregated extends QuotaResponse.Aggregated {
private final ImmutableList responses;
AutoValue_QuotaResponse_Aggregated(
ImmutableList responses) {
if (responses == null) {
throw new NullPointerException("Null responses");
}
this.responses = responses;
}
@Override
protected ImmutableList responses() {
return responses;
}
@Override
public String toString() {
return "Aggregated{"
+ "responses=" + responses
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof QuotaResponse.Aggregated) {
QuotaResponse.Aggregated that = (QuotaResponse.Aggregated) o;
return this.responses.equals(that.responses());
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= responses.hashCode();
return h$;
}
}