
com.spotify.styx.util.AutoValue_TriggerInstantSpec Maven / Gradle / Ivy
package com.spotify.styx.util;
import java.time.Instant;
import javax.annotation.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_TriggerInstantSpec extends TriggerInstantSpec {
private final Instant instant;
private final Instant offsetInstant;
AutoValue_TriggerInstantSpec(
Instant instant,
Instant offsetInstant) {
if (instant == null) {
throw new NullPointerException("Null instant");
}
this.instant = instant;
if (offsetInstant == null) {
throw new NullPointerException("Null offsetInstant");
}
this.offsetInstant = offsetInstant;
}
@Override
public Instant instant() {
return instant;
}
@Override
public Instant offsetInstant() {
return offsetInstant;
}
@Override
public String toString() {
return "TriggerInstantSpec{"
+ "instant=" + instant + ", "
+ "offsetInstant=" + offsetInstant
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof TriggerInstantSpec) {
TriggerInstantSpec that = (TriggerInstantSpec) o;
return (this.instant.equals(that.instant()))
&& (this.offsetInstant.equals(that.offsetInstant()));
}
return false;
}
@Override
public int hashCode() {
int h = 1;
h *= 1000003;
h ^= this.instant.hashCode();
h *= 1000003;
h ^= this.offsetInstant.hashCode();
return h;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy