com.google.gerrit.server.git.AutoValue_SearchingChangeCacheImpl_CachedChange Maven / Gradle / Ivy
package com.google.gerrit.server.git;
import com.google.gerrit.common.Nullable;
import com.google.gerrit.reviewdb.client.Change;
import com.google.gerrit.server.ReviewerSet;
import javax.annotation.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_SearchingChangeCacheImpl_CachedChange extends SearchingChangeCacheImpl.CachedChange {
private final Change change;
private final ReviewerSet reviewers;
AutoValue_SearchingChangeCacheImpl_CachedChange(
Change change,
@Nullable ReviewerSet reviewers) {
if (change == null) {
throw new NullPointerException("Null change");
}
this.change = change;
this.reviewers = reviewers;
}
@Override
Change change() {
return change;
}
@Nullable
@Override
ReviewerSet reviewers() {
return reviewers;
}
@Override
public String toString() {
return "CachedChange{"
+ "change=" + change + ", "
+ "reviewers=" + reviewers
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof SearchingChangeCacheImpl.CachedChange) {
SearchingChangeCacheImpl.CachedChange that = (SearchingChangeCacheImpl.CachedChange) o;
return (this.change.equals(that.change()))
&& ((this.reviewers == null) ? (that.reviewers() == null) : this.reviewers.equals(that.reviewers()));
}
return false;
}
@Override
public int hashCode() {
int h = 1;
h *= 1000003;
h ^= this.change.hashCode();
h *= 1000003;
h ^= (reviewers == null) ? 0 : this.reviewers.hashCode();
return h;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy