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