com.google.gerrit.server.notedb.AutoValue_NoteDbChangeState_RefState Maven / Gradle / Ivy
package com.google.gerrit.server.notedb;
import com.google.common.collect.ImmutableMap;
import com.google.gerrit.reviewdb.client.Account;
import javax.annotation.Generated;
import org.eclipse.jgit.lib.ObjectId;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_NoteDbChangeState_RefState extends NoteDbChangeState.RefState {
private final ObjectId changeMetaId;
private final ImmutableMap draftIds;
AutoValue_NoteDbChangeState_RefState(
ObjectId changeMetaId,
ImmutableMap draftIds) {
if (changeMetaId == null) {
throw new NullPointerException("Null changeMetaId");
}
this.changeMetaId = changeMetaId;
if (draftIds == null) {
throw new NullPointerException("Null draftIds");
}
this.draftIds = draftIds;
}
@Override
ObjectId changeMetaId() {
return changeMetaId;
}
@Override
ImmutableMap draftIds() {
return draftIds;
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof NoteDbChangeState.RefState) {
NoteDbChangeState.RefState that = (NoteDbChangeState.RefState) o;
return (this.changeMetaId.equals(that.changeMetaId()))
&& (this.draftIds.equals(that.draftIds()));
}
return false;
}
@Override
public int hashCode() {
int h = 1;
h *= 1000003;
h ^= this.changeMetaId.hashCode();
h *= 1000003;
h ^= this.draftIds.hashCode();
return h;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy