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

com.spotify.styx.api.AutoValue_EventsPayload_TimestampedEvent Maven / Gradle / Ivy

There is a newer version: 2.1.179
Show newest version

package com.spotify.styx.api;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.spotify.styx.model.Event;
import javax.annotation.processing.Generated;

@Generated("com.google.auto.value.processor.AutoValueProcessor")
 final class AutoValue_EventsPayload_TimestampedEvent extends EventsPayload.TimestampedEvent {

  private final Event event;
  private final long timestamp;

  AutoValue_EventsPayload_TimestampedEvent(
      Event event,
      long timestamp) {
    if (event == null) {
      throw new NullPointerException("Null event");
    }
    this.event = event;
    this.timestamp = timestamp;
  }

  @JsonProperty
  @Override
  public Event event() {
    return event;
  }

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

  @Override
  public String toString() {
    return "TimestampedEvent{"
         + "event=" + event + ", "
         + "timestamp=" + timestamp
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof EventsPayload.TimestampedEvent) {
      EventsPayload.TimestampedEvent that = (EventsPayload.TimestampedEvent) o;
      return (this.event.equals(that.event()))
           && (this.timestamp == that.timestamp());
    }
    return false;
  }

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

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy