com.google.gerrit.extensions.validators.AutoValue_CommentForValidation Maven / Gradle / Ivy
package com.google.gerrit.extensions.validators;
import javax.annotation.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_CommentForValidation extends CommentForValidation {
private final CommentForValidation.CommentType type;
private final String text;
AutoValue_CommentForValidation(
CommentForValidation.CommentType type,
String text) {
if (type == null) {
throw new NullPointerException("Null type");
}
this.type = type;
if (text == null) {
throw new NullPointerException("Null text");
}
this.text = text;
}
@Override
public CommentForValidation.CommentType getType() {
return type;
}
@Override
public String getText() {
return text;
}
@Override
public String toString() {
return "CommentForValidation{"
+ "type=" + type + ", "
+ "text=" + text
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof CommentForValidation) {
CommentForValidation that = (CommentForValidation) o;
return this.type.equals(that.getType())
&& this.text.equals(that.getText());
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= type.hashCode();
h$ *= 1000003;
h$ ^= text.hashCode();
return h$;
}
}