org.graylog.events.conditions.AutoValue_Expr_Group Maven / Gradle / Ivy
package org.graylog.events.conditions;
import com.fasterxml.jackson.annotation.JsonProperty;
import javax.annotation.processing.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_Expr_Group extends Expr.Group {
private final String expr;
private final Expression child;
private final String operator;
AutoValue_Expr_Group(
String expr,
Expression child,
String operator) {
if (expr == null) {
throw new NullPointerException("Null expr");
}
this.expr = expr;
if (child == null) {
throw new NullPointerException("Null child");
}
this.child = child;
if (operator == null) {
throw new NullPointerException("Null operator");
}
this.operator = operator;
}
@JsonProperty("expr")
@Override
public String expr() {
return expr;
}
@JsonProperty("child")
@Override
public Expression child() {
return child;
}
@JsonProperty("operator")
@Override
public String operator() {
return operator;
}
@Override
public String toString() {
return "Group{"
+ "expr=" + expr + ", "
+ "child=" + child + ", "
+ "operator=" + operator
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof Expr.Group) {
Expr.Group that = (Expr.Group) o;
return this.expr.equals(that.expr())
&& this.child.equals(that.child())
&& this.operator.equals(that.operator());
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= expr.hashCode();
h$ *= 1000003;
h$ ^= child.hashCode();
h$ *= 1000003;
h$ ^= operator.hashCode();
return h$;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy