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

org.hisp.dhis.rules.AutoValue_RuleExpression Maven / Gradle / Ivy


package org.hisp.dhis.rules;

import java.util.Set;
import javax.annotation.Generated;
import javax.annotation.Nonnull;

@Generated("com.google.auto.value.processor.AutoValueProcessor")
 final class AutoValue_RuleExpression extends RuleExpression {

  private final Set variables;

  AutoValue_RuleExpression(
      Set variables) {
    if (variables == null) {
      throw new NullPointerException("Null variables");
    }
    this.variables = variables;
  }

  @Nonnull
  @Override
  public Set variables() {
    return variables;
  }

  @Override
  public String toString() {
    return "RuleExpression{"
        + "variables=" + variables
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof RuleExpression) {
      RuleExpression that = (RuleExpression) o;
      return (this.variables.equals(that.variables()));
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h = 1;
    h *= 1000003;
    h ^= this.variables.hashCode();
    return h;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy