com.google.gerrit.server.index.change.AutoValue_AllChangesIndexer_ProjectSlice Maven / Gradle / Ivy
package com.google.gerrit.server.index.change;
import com.google.gerrit.entities.Project;
import com.google.gerrit.server.notedb.ChangeNotes;
import javax.annotation.processing.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_AllChangesIndexer_ProjectSlice extends AllChangesIndexer.ProjectSlice {
private final Project.NameKey name;
private final int slice;
private final int slices;
private final ChangeNotes.Factory.ScanResult scanResult;
AutoValue_AllChangesIndexer_ProjectSlice(
Project.NameKey name,
int slice,
int slices,
ChangeNotes.Factory.ScanResult scanResult) {
if (name == null) {
throw new NullPointerException("Null name");
}
this.name = name;
this.slice = slice;
this.slices = slices;
if (scanResult == null) {
throw new NullPointerException("Null scanResult");
}
this.scanResult = scanResult;
}
@Override
public Project.NameKey name() {
return name;
}
@Override
public int slice() {
return slice;
}
@Override
public int slices() {
return slices;
}
@Override
public ChangeNotes.Factory.ScanResult scanResult() {
return scanResult;
}
@Override
public String toString() {
return "ProjectSlice{"
+ "name=" + name + ", "
+ "slice=" + slice + ", "
+ "slices=" + slices + ", "
+ "scanResult=" + scanResult
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof AllChangesIndexer.ProjectSlice) {
AllChangesIndexer.ProjectSlice that = (AllChangesIndexer.ProjectSlice) o;
return this.name.equals(that.name())
&& this.slice == that.slice()
&& this.slices == that.slices()
&& this.scanResult.equals(that.scanResult());
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= name.hashCode();
h$ *= 1000003;
h$ ^= slice;
h$ *= 1000003;
h$ ^= slices;
h$ *= 1000003;
h$ ^= scanResult.hashCode();
return h$;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy