com.google.gerrit.server.restapi.change.AutoValue_PostReviewOp_Result Maven / Gradle / Ivy
package com.google.gerrit.server.restapi.change;
import javax.annotation.processing.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_PostReviewOp_Result extends PostReviewOp.Result {
private final boolean updatedAnyVoteOnCurrentPatchSet;
private final boolean updatedAnyNegativeVoteOnCurrentPatchSet;
private final boolean appliedVotesOnOutdatedPatchSetThatWereNotCopiedToCurrentPatchSet;
private final boolean postedChangeMessage;
AutoValue_PostReviewOp_Result(
boolean updatedAnyVoteOnCurrentPatchSet,
boolean updatedAnyNegativeVoteOnCurrentPatchSet,
boolean appliedVotesOnOutdatedPatchSetThatWereNotCopiedToCurrentPatchSet,
boolean postedChangeMessage) {
this.updatedAnyVoteOnCurrentPatchSet = updatedAnyVoteOnCurrentPatchSet;
this.updatedAnyNegativeVoteOnCurrentPatchSet = updatedAnyNegativeVoteOnCurrentPatchSet;
this.appliedVotesOnOutdatedPatchSetThatWereNotCopiedToCurrentPatchSet = appliedVotesOnOutdatedPatchSetThatWereNotCopiedToCurrentPatchSet;
this.postedChangeMessage = postedChangeMessage;
}
@Override
boolean updatedAnyVoteOnCurrentPatchSet() {
return updatedAnyVoteOnCurrentPatchSet;
}
@Override
boolean updatedAnyNegativeVoteOnCurrentPatchSet() {
return updatedAnyNegativeVoteOnCurrentPatchSet;
}
@Override
boolean appliedVotesOnOutdatedPatchSetThatWereNotCopiedToCurrentPatchSet() {
return appliedVotesOnOutdatedPatchSetThatWereNotCopiedToCurrentPatchSet;
}
@Override
boolean postedChangeMessage() {
return postedChangeMessage;
}
@Override
public String toString() {
return "Result{"
+ "updatedAnyVoteOnCurrentPatchSet=" + updatedAnyVoteOnCurrentPatchSet + ", "
+ "updatedAnyNegativeVoteOnCurrentPatchSet=" + updatedAnyNegativeVoteOnCurrentPatchSet + ", "
+ "appliedVotesOnOutdatedPatchSetThatWereNotCopiedToCurrentPatchSet=" + appliedVotesOnOutdatedPatchSetThatWereNotCopiedToCurrentPatchSet + ", "
+ "postedChangeMessage=" + postedChangeMessage
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof PostReviewOp.Result) {
PostReviewOp.Result that = (PostReviewOp.Result) o;
return this.updatedAnyVoteOnCurrentPatchSet == that.updatedAnyVoteOnCurrentPatchSet()
&& this.updatedAnyNegativeVoteOnCurrentPatchSet == that.updatedAnyNegativeVoteOnCurrentPatchSet()
&& this.appliedVotesOnOutdatedPatchSetThatWereNotCopiedToCurrentPatchSet == that.appliedVotesOnOutdatedPatchSetThatWereNotCopiedToCurrentPatchSet()
&& this.postedChangeMessage == that.postedChangeMessage();
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= updatedAnyVoteOnCurrentPatchSet ? 1231 : 1237;
h$ *= 1000003;
h$ ^= updatedAnyNegativeVoteOnCurrentPatchSet ? 1231 : 1237;
h$ *= 1000003;
h$ ^= appliedVotesOnOutdatedPatchSetThatWereNotCopiedToCurrentPatchSet ? 1231 : 1237;
h$ *= 1000003;
h$ ^= postedChangeMessage ? 1231 : 1237;
return h$;
}
}