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

com.spotify.styx.model.data.AutoValue_EventInfo Maven / Gradle / Ivy

package com.spotify.styx.model.data;

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

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

  private final long timestamp;

  private final String name;

  private final String info;

  AutoValue_EventInfo(
      long timestamp,
      String name,
      String info) {
    this.timestamp = timestamp;
    if (name == null) {
      throw new NullPointerException("Null name");
    }
    this.name = name;
    if (info == null) {
      throw new NullPointerException("Null info");
    }
    this.info = info;
  }

  @JsonProperty
  @Override
  public long timestamp() {
    return timestamp;
  }

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

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

  @Override
  public String toString() {
    return "EventInfo{"
        + "timestamp=" + timestamp + ", "
        + "name=" + name + ", "
        + "info=" + info
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof EventInfo) {
      EventInfo that = (EventInfo) o;
      return this.timestamp == that.timestamp()
          && this.name.equals(that.name())
          && this.info.equals(that.info());
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h$ = 1;
    h$ *= 1000003;
    h$ ^= (int) ((timestamp >>> 32) ^ timestamp);
    h$ *= 1000003;
    h$ ^= name.hashCode();
    h$ *= 1000003;
    h$ ^= info.hashCode();
    return h$;
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy