com.google.gerrit.server.AutoValue_DeadlineChecker_ServerDeadline Maven / Gradle / Ivy
The newest version!
package com.google.gerrit.server;
import javax.annotation.processing.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_DeadlineChecker_ServerDeadline extends DeadlineChecker.ServerDeadline {
private final String id;
private final long timeout;
private final boolean isAdvisory;
AutoValue_DeadlineChecker_ServerDeadline(
String id,
long timeout,
boolean isAdvisory) {
if (id == null) {
throw new NullPointerException("Null id");
}
this.id = id;
this.timeout = timeout;
this.isAdvisory = isAdvisory;
}
@Override
String id() {
return id;
}
@Override
long timeout() {
return timeout;
}
@Override
boolean isAdvisory() {
return isAdvisory;
}
@Override
public String toString() {
return "ServerDeadline{"
+ "id=" + id + ", "
+ "timeout=" + timeout + ", "
+ "isAdvisory=" + isAdvisory
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof DeadlineChecker.ServerDeadline) {
DeadlineChecker.ServerDeadline that = (DeadlineChecker.ServerDeadline) o;
return this.id.equals(that.id())
&& this.timeout == that.timeout()
&& this.isAdvisory == that.isAdvisory();
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= id.hashCode();
h$ *= 1000003;
h$ ^= (int) ((timeout >>> 32) ^ timeout);
h$ *= 1000003;
h$ ^= isAdvisory ? 1231 : 1237;
return h$;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy