org.graylog.events.conditions.AutoValue_Expr_Lesser 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_Lesser extends Expr.Lesser {
private final String expr;
private final Expression left;
private final Expression right;
AutoValue_Expr_Lesser(
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 "Lesser{"
+ "expr=" + expr + ", "
+ "left=" + left + ", "
+ "right=" + right
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof Expr.Lesser) {
Expr.Lesser that = (Expr.Lesser) 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$;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy