com.google.gerrit.server.config.AutoValue_ScheduleConfig_Schedule Maven / Gradle / Ivy
The newest version!
package com.google.gerrit.server.config;
import javax.annotation.processing.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_ScheduleConfig_Schedule extends ScheduleConfig.Schedule {
private final long interval;
private final long initialDelay;
AutoValue_ScheduleConfig_Schedule(
long interval,
long initialDelay) {
this.interval = interval;
this.initialDelay = initialDelay;
}
@Override
public long interval() {
return interval;
}
@Override
public long initialDelay() {
return initialDelay;
}
@Override
public String toString() {
return "Schedule{"
+ "interval=" + interval + ", "
+ "initialDelay=" + initialDelay
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof ScheduleConfig.Schedule) {
ScheduleConfig.Schedule that = (ScheduleConfig.Schedule) o;
return this.interval == that.interval()
&& this.initialDelay == that.initialDelay();
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= (int) ((interval >>> 32) ^ interval);
h$ *= 1000003;
h$ ^= (int) ((initialDelay >>> 32) ^ initialDelay);
return h$;
}
}