com.google.gerrit.server.notedb.AutoValue_AbstractChangeNotes_LoadHandle Maven / Gradle / Ivy
package com.google.gerrit.server.notedb;
import com.google.gerrit.common.Nullable;
import javax.annotation.Generated;
import org.eclipse.jgit.lib.ObjectId;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_AbstractChangeNotes_LoadHandle extends AbstractChangeNotes.LoadHandle {
private final ChangeNotesCommit.ChangeNotesRevWalk walk;
private final ObjectId id;
AutoValue_AbstractChangeNotes_LoadHandle(
@Nullable ChangeNotesCommit.ChangeNotesRevWalk walk,
@Nullable ObjectId id) {
this.walk = walk;
this.id = id;
}
@Nullable
@Override
public ChangeNotesCommit.ChangeNotesRevWalk walk() {
return walk;
}
@Nullable
@Override
public ObjectId id() {
return id;
}
@Override
public String toString() {
return "LoadHandle{"
+ "walk=" + walk + ", "
+ "id=" + id
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof AbstractChangeNotes.LoadHandle) {
AbstractChangeNotes.LoadHandle that = (AbstractChangeNotes.LoadHandle) o;
return ((this.walk == null) ? (that.walk() == null) : this.walk.equals(that.walk()))
&& ((this.id == null) ? (that.id() == null) : this.id.equals(that.id()));
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= (walk == null) ? 0 : walk.hashCode();
h$ *= 1000003;
h$ ^= (id == null) ? 0 : id.hashCode();
return h$;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy