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

dev.cel.runtime.AutoValue_CelRuntime_Program Maven / Gradle / Ivy

package dev.cel.runtime;

import dev.cel.common.CelOptions;
import org.jspecify.nullness.Nullable;

// Generated by com.google.auto.value.processor.AutoValueProcessor
final class AutoValue_CelRuntime_Program extends CelRuntime.Program {

  private final Interpretable interpretable;

  private final CelOptions options;

  AutoValue_CelRuntime_Program(
      Interpretable interpretable,
      CelOptions options) {
    if (interpretable == null) {
      throw new NullPointerException("Null interpretable");
    }
    this.interpretable = interpretable;
    if (options == null) {
      throw new NullPointerException("Null options");
    }
    this.options = options;
  }

  @Override
  Interpretable getInterpretable() {
    return interpretable;
  }

  @Override
  CelOptions getOptions() {
    return options;
  }

  @Override
  public String toString() {
    return "Program{"
        + "interpretable=" + interpretable + ", "
        + "options=" + options
        + "}";
  }

  @Override
  public boolean equals(@Nullable Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof CelRuntime.Program) {
      CelRuntime.Program that = (CelRuntime.Program) o;
      return this.interpretable.equals(that.getInterpretable())
          && this.options.equals(that.getOptions());
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h$ = 1;
    h$ *= 1000003;
    h$ ^= interpretable.hashCode();
    h$ *= 1000003;
    h$ ^= options.hashCode();
    return h$;
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy