com.google.gerrit.server.change.AutoValue_LabelNormalizer_Result Maven / Gradle / Ivy
package com.google.gerrit.server.change;
import com.google.common.collect.ImmutableList;
import com.google.gerrit.entities.PatchSetApproval;
import javax.annotation.processing.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_LabelNormalizer_Result extends LabelNormalizer.Result {
private final ImmutableList unchanged;
private final ImmutableList updated;
private final ImmutableList deleted;
AutoValue_LabelNormalizer_Result(
ImmutableList unchanged,
ImmutableList updated,
ImmutableList deleted) {
if (unchanged == null) {
throw new NullPointerException("Null unchanged");
}
this.unchanged = unchanged;
if (updated == null) {
throw new NullPointerException("Null updated");
}
this.updated = updated;
if (deleted == null) {
throw new NullPointerException("Null deleted");
}
this.deleted = deleted;
}
@Override
public ImmutableList unchanged() {
return unchanged;
}
@Override
public ImmutableList updated() {
return updated;
}
@Override
public ImmutableList deleted() {
return deleted;
}
@Override
public String toString() {
return "Result{"
+ "unchanged=" + unchanged + ", "
+ "updated=" + updated + ", "
+ "deleted=" + deleted
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof LabelNormalizer.Result) {
LabelNormalizer.Result that = (LabelNormalizer.Result) o;
return this.unchanged.equals(that.unchanged())
&& this.updated.equals(that.updated())
&& this.deleted.equals(that.deleted());
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= unchanged.hashCode();
h$ *= 1000003;
h$ ^= updated.hashCode();
h$ *= 1000003;
h$ ^= deleted.hashCode();
return h$;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy