com.google.gerrit.entities.AutoValue_Patch_Key Maven / Gradle / Ivy
The newest version!
package com.google.gerrit.entities;
import javax.annotation.processing.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_Patch_Key extends Patch.Key {
private final PatchSet.Id patchSetId;
private final String fileName;
AutoValue_Patch_Key(
PatchSet.Id patchSetId,
String fileName) {
if (patchSetId == null) {
throw new NullPointerException("Null patchSetId");
}
this.patchSetId = patchSetId;
if (fileName == null) {
throw new NullPointerException("Null fileName");
}
this.fileName = fileName;
}
@Override
public PatchSet.Id patchSetId() {
return patchSetId;
}
@Override
public String fileName() {
return fileName;
}
@Override
public String toString() {
return "Key{"
+ "patchSetId=" + patchSetId + ", "
+ "fileName=" + fileName
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof Patch.Key) {
Patch.Key that = (Patch.Key) o;
return this.patchSetId.equals(that.patchSetId())
&& this.fileName.equals(that.fileName());
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= patchSetId.hashCode();
h$ *= 1000003;
h$ ^= fileName.hashCode();
return h$;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy