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.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 ^= (this.timestamp >>> 32) ^ this.timestamp;
h *= 1000003;
h ^= this.name.hashCode();
h *= 1000003;
h ^= this.info.hashCode();
return h;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy