All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.graylog.events.conditions.AutoValue_Expr_Or Maven / Gradle / Ivy

There is a newer version: 6.0.6
Show newest version
package org.graylog.events.conditions;

import com.fasterxml.jackson.annotation.JsonProperty;
import javax.annotation.Generated;

@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_Expr_Or extends Expr.Or {

  private final String expr;

  private final Expression left;

  private final Expression right;

  AutoValue_Expr_Or(
      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 "Or{"
        + "expr=" + expr + ", "
        + "left=" + left + ", "
        + "right=" + right
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof Expr.Or) {
      Expr.Or that = (Expr.Or) 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