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