com.google.gerrit.server.change.AutoValue_AccountPatchReviewStore_PatchSetWithReviewedFiles Maven / Gradle / Ivy
package com.google.gerrit.server.change;
import com.google.common.collect.ImmutableSet;
import com.google.gerrit.entities.PatchSet;
import javax.annotation.processing.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_AccountPatchReviewStore_PatchSetWithReviewedFiles extends AccountPatchReviewStore.PatchSetWithReviewedFiles {
private final PatchSet.Id patchSetId;
private final ImmutableSet files;
AutoValue_AccountPatchReviewStore_PatchSetWithReviewedFiles(
PatchSet.Id patchSetId,
ImmutableSet files) {
if (patchSetId == null) {
throw new NullPointerException("Null patchSetId");
}
this.patchSetId = patchSetId;
if (files == null) {
throw new NullPointerException("Null files");
}
this.files = files;
}
@Override
public PatchSet.Id patchSetId() {
return patchSetId;
}
@Override
public ImmutableSet files() {
return files;
}
@Override
public String toString() {
return "PatchSetWithReviewedFiles{"
+ "patchSetId=" + patchSetId + ", "
+ "files=" + files
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof AccountPatchReviewStore.PatchSetWithReviewedFiles) {
AccountPatchReviewStore.PatchSetWithReviewedFiles that = (AccountPatchReviewStore.PatchSetWithReviewedFiles) o;
return this.patchSetId.equals(that.patchSetId())
&& this.files.equals(that.files());
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= patchSetId.hashCode();
h$ *= 1000003;
h$ ^= files.hashCode();
return h$;
}
}