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

org.flyte.jflyte.utils.AutoValue_TaskSpec Maven / Gradle / Ivy

Go to download

Primarily used by jflyte, but can also be used to extend or build a jflyte alternative

There is a newer version: 0.4.60
Show newest version
package org.flyte.jflyte.utils;

import javax.annotation.processing.Generated;
import org.flyte.api.v1.TaskTemplate;

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

  private final TaskTemplate taskTemplate;

  AutoValue_TaskSpec(
      TaskTemplate taskTemplate) {
    if (taskTemplate == null) {
      throw new NullPointerException("Null taskTemplate");
    }
    this.taskTemplate = taskTemplate;
  }

  @Override
  public TaskTemplate taskTemplate() {
    return taskTemplate;
  }

  @Override
  public String toString() {
    return "TaskSpec{"
        + "taskTemplate=" + taskTemplate
        + "}";
  }

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

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

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy