com.google.gerrit.server.account.AutoValue_ExternalIdsUpdate_OpenRepo Maven / Gradle / Ivy
package com.google.gerrit.server.account;
import javax.annotation.Generated;
import org.eclipse.jgit.lib.ObjectInserter;
import org.eclipse.jgit.lib.Repository;
import org.eclipse.jgit.notes.NoteMap;
import org.eclipse.jgit.revwalk.RevWalk;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_ExternalIdsUpdate_OpenRepo extends ExternalIdsUpdate.OpenRepo {
private final Repository repo;
private final RevWalk rw;
private final ObjectInserter ins;
private final NoteMap noteMap;
AutoValue_ExternalIdsUpdate_OpenRepo(
Repository repo,
RevWalk rw,
ObjectInserter ins,
NoteMap noteMap) {
if (repo == null) {
throw new NullPointerException("Null repo");
}
this.repo = repo;
if (rw == null) {
throw new NullPointerException("Null rw");
}
this.rw = rw;
if (ins == null) {
throw new NullPointerException("Null ins");
}
this.ins = ins;
if (noteMap == null) {
throw new NullPointerException("Null noteMap");
}
this.noteMap = noteMap;
}
@Override
Repository repo() {
return repo;
}
@Override
RevWalk rw() {
return rw;
}
@Override
ObjectInserter ins() {
return ins;
}
@Override
NoteMap noteMap() {
return noteMap;
}
@Override
public String toString() {
return "OpenRepo{"
+ "repo=" + repo + ", "
+ "rw=" + rw + ", "
+ "ins=" + ins + ", "
+ "noteMap=" + noteMap
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof ExternalIdsUpdate.OpenRepo) {
ExternalIdsUpdate.OpenRepo that = (ExternalIdsUpdate.OpenRepo) o;
return (this.repo.equals(that.repo()))
&& (this.rw.equals(that.rw()))
&& (this.ins.equals(that.ins()))
&& (this.noteMap.equals(that.noteMap()));
}
return false;
}
@Override
public int hashCode() {
int h = 1;
h *= 1000003;
h ^= this.repo.hashCode();
h *= 1000003;
h ^= this.rw.hashCode();
h *= 1000003;
h ^= this.ins.hashCode();
h *= 1000003;
h ^= this.noteMap.hashCode();
return h;
}
}