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

com.spotify.styx.model.AutoValue_WorkflowId Maven / Gradle / Ivy


package com.spotify.styx.model;

import com.fasterxml.jackson.annotation.JsonProperty;
import javax.annotation.Generated;

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

  private final String componentId;
  private final String id;

  AutoValue_WorkflowId(
      String componentId,
      String id) {
    if (componentId == null) {
      throw new NullPointerException("Null componentId");
    }
    this.componentId = componentId;
    if (id == null) {
      throw new NullPointerException("Null id");
    }
    this.id = id;
  }

  @JsonProperty
  @Override
  public String componentId() {
    return componentId;
  }

  @JsonProperty
  @Override
  public String id() {
    return id;
  }

  @Override
  public String toString() {
    return "WorkflowId{"
         + "componentId=" + componentId + ", "
         + "id=" + id
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof WorkflowId) {
      WorkflowId that = (WorkflowId) o;
      return (this.componentId.equals(that.componentId()))
           && (this.id.equals(that.id()));
    }
    return false;
  }

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

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy