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