com.spotify.styx.model.AutoValue_SequenceEvent Maven / Gradle / Ivy
package com.spotify.styx.model;
import javax.annotation.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_SequenceEvent extends SequenceEvent {
private final Event event;
private final long counter;
private final long timestamp;
AutoValue_SequenceEvent(
Event event,
long counter,
long timestamp) {
if (event == null) {
throw new NullPointerException("Null event");
}
this.event = event;
this.counter = counter;
this.timestamp = timestamp;
}
@Override
public Event event() {
return event;
}
@Override
public long counter() {
return counter;
}
@Override
public long timestamp() {
return timestamp;
}
@Override
public String toString() {
return "SequenceEvent{"
+ "event=" + event + ", "
+ "counter=" + counter + ", "
+ "timestamp=" + timestamp
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof SequenceEvent) {
SequenceEvent that = (SequenceEvent) o;
return (this.event.equals(that.event()))
&& (this.counter == that.counter())
&& (this.timestamp == that.timestamp());
}
return false;
}
@Override
public int hashCode() {
int h = 1;
h *= 1000003;
h ^= event.hashCode();
h *= 1000003;
h ^= (counter >>> 32) ^ counter;
h *= 1000003;
h ^= (timestamp >>> 32) ^ timestamp;
return h;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy