com.google.gerrit.entities.AutoValue_PatchSet_Id Maven / Gradle / Ivy
package com.google.gerrit.entities;
import javax.annotation.processing.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_PatchSet_Id extends PatchSet.Id {
private final Change.Id changeId;
private final int id;
AutoValue_PatchSet_Id(
Change.Id changeId,
int id) {
if (changeId == null) {
throw new NullPointerException("Null changeId");
}
this.changeId = changeId;
this.id = id;
}
@Override
public Change.Id changeId() {
return changeId;
}
@Override
int id() {
return id;
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof PatchSet.Id) {
PatchSet.Id that = (PatchSet.Id) o;
return this.changeId.equals(that.changeId())
&& this.id == that.id();
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= changeId.hashCode();
h$ *= 1000003;
h$ ^= id;
return h$;
}
}