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

org.flyte.api.v1.AutoValue_Parameter Maven / Gradle / Ivy

There is a newer version: 0.4.60
Show newest version
package org.flyte.api.v1;

import javax.annotation.Nullable;
import javax.annotation.processing.Generated;

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

  private final Variable var;

  @Nullable
  private final Literal defaultValue;

  AutoValue_Parameter(
      Variable var,
      @Nullable Literal defaultValue) {
    if (var == null) {
      throw new NullPointerException("Null var");
    }
    this.var = var;
    this.defaultValue = defaultValue;
  }

  @Override
  public Variable var() {
    return var;
  }

  @Nullable
  @Override
  public Literal defaultValue() {
    return defaultValue;
  }

  @Override
  public String toString() {
    return "Parameter{"
        + "var=" + var + ", "
        + "defaultValue=" + defaultValue
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof Parameter) {
      Parameter that = (Parameter) o;
      return this.var.equals(that.var())
          && (this.defaultValue == null ? that.defaultValue() == null : this.defaultValue.equals(that.defaultValue()));
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h$ = 1;
    h$ *= 1000003;
    h$ ^= var.hashCode();
    h$ *= 1000003;
    h$ ^= (defaultValue == null) ? 0 : defaultValue.hashCode();
    return h$;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy