org.graylog.events.conditions.AutoValue_Expr_Or Maven / Gradle / Ivy
package org.graylog.events.conditions;
import com.fasterxml.jackson.annotation.JsonProperty;
import javax.annotation.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_Expr_Or extends Expr.Or {
private final String expr;
private final Expression left;
private final Expression right;
AutoValue_Expr_Or(
String expr,
Expression left,
Expression right) {
if (expr == null) {
throw new NullPointerException("Null expr");
}
this.expr = expr;
if (left == null) {
throw new NullPointerException("Null left");
}
this.left = left;
if (right == null) {
throw new NullPointerException("Null right");
}
this.right = right;
}
@JsonProperty("expr")
@Override
public String expr() {
return expr;
}
@JsonProperty("left")
@Override
public Expression left() {
return left;
}
@JsonProperty("right")
@Override
public Expression right() {
return right;
}
@Override
public String toString() {
return "Or{"
+ "expr=" + expr + ", "
+ "left=" + left + ", "
+ "right=" + right
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof Expr.Or) {
Expr.Or that = (Expr.Or) o;
return this.expr.equals(that.expr())
&& this.left.equals(that.left())
&& this.right.equals(that.right());
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= expr.hashCode();
h$ *= 1000003;
h$ ^= left.hashCode();
h$ *= 1000003;
h$ ^= right.hashCode();
return h$;
}
}