org.graylog.events.conditions.AutoValue_Expr_Not 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_Not extends Expr.Not {
private final String expr;
private final Expression left;
AutoValue_Expr_Not(
String expr,
Expression left) {
if (expr == null) {
throw new NullPointerException("Null expr");
}
this.expr = expr;
if (left == null) {
throw new NullPointerException("Null left");
}
this.left = left;
}
@JsonProperty("expr")
@Override
public String expr() {
return expr;
}
@JsonProperty("left")
@Override
public Expression left() {
return left;
}
@Override
public String toString() {
return "Not{"
+ "expr=" + expr + ", "
+ "left=" + left
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof Expr.Not) {
Expr.Not that = (Expr.Not) o;
return this.expr.equals(that.expr())
&& this.left.equals(that.left());
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= expr.hashCode();
h$ *= 1000003;
h$ ^= left.hashCode();
return h$;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy