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

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

There is a newer version: 6.1.4
Show newest version
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_Equal extends Expr.Equal {

  private final String expr;

  private final Expression left;

  private final Expression right;

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

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