![JAR search and dependency download from the Maven repository](/logo.png)
com.google.gerrit.server.submit.AutoValue_MergeOp_ChangeProblem Maven / Gradle / Ivy
package com.google.gerrit.server.submit;
import com.google.gerrit.entities.Change;
import javax.annotation.processing.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_MergeOp_ChangeProblem extends MergeOp.ChangeProblem {
private final Change.Id changeId;
private final String problem;
AutoValue_MergeOp_ChangeProblem(
Change.Id changeId,
String problem) {
if (changeId == null) {
throw new NullPointerException("Null changeId");
}
this.changeId = changeId;
if (problem == null) {
throw new NullPointerException("Null problem");
}
this.problem = problem;
}
@Override
public Change.Id getChangeId() {
return changeId;
}
@Override
public String getProblem() {
return problem;
}
@Override
public String toString() {
return "ChangeProblem{"
+ "changeId=" + changeId + ", "
+ "problem=" + problem
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof MergeOp.ChangeProblem) {
MergeOp.ChangeProblem that = (MergeOp.ChangeProblem) o;
return this.changeId.equals(that.getChangeId())
&& this.problem.equals(that.getProblem());
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= changeId.hashCode();
h$ *= 1000003;
h$ ^= problem.hashCode();
return h$;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy