com.google.gerrit.server.notedb.AutoValue_NoteDbUpdateManager_Result Maven / Gradle / Ivy
package com.google.gerrit.server.notedb;
import com.google.gerrit.common.Nullable;
import javax.annotation.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_NoteDbUpdateManager_Result extends NoteDbUpdateManager.Result {
private final NoteDbChangeState newState;
private final NoteDbUpdateManager.StagedResult staged;
AutoValue_NoteDbUpdateManager_Result(
@Nullable NoteDbChangeState newState,
@Nullable NoteDbUpdateManager.StagedResult staged) {
this.newState = newState;
this.staged = staged;
}
@Nullable
@Override
public NoteDbChangeState newState() {
return newState;
}
@Nullable
@Override
NoteDbUpdateManager.StagedResult staged() {
return staged;
}
@Override
public String toString() {
return "Result{"
+ "newState=" + newState + ", "
+ "staged=" + staged
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof NoteDbUpdateManager.Result) {
NoteDbUpdateManager.Result that = (NoteDbUpdateManager.Result) o;
return ((this.newState == null) ? (that.newState() == null) : this.newState.equals(that.newState()))
&& ((this.staged == null) ? (that.staged() == null) : this.staged.equals(that.staged()));
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= (newState == null) ? 0 : newState.hashCode();
h$ *= 1000003;
h$ ^= (staged == null) ? 0 : staged.hashCode();
return h$;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy