com.google.gerrit.server.update.AutoValue_RetryHelper_Options Maven / Gradle / Ivy
package com.google.gerrit.server.update;
import com.github.rholder.retry.RetryListener;
import com.google.gerrit.common.Nullable;
import java.time.Duration;
import javax.annotation.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_RetryHelper_Options extends RetryHelper.Options {
private final RetryListener listener;
private final Duration timeout;
private AutoValue_RetryHelper_Options(
@Nullable RetryListener listener,
@Nullable Duration timeout) {
this.listener = listener;
this.timeout = timeout;
}
@Nullable
@Override
RetryListener listener() {
return listener;
}
@Nullable
@Override
Duration timeout() {
return timeout;
}
@Override
public String toString() {
return "Options{"
+ "listener=" + listener + ", "
+ "timeout=" + timeout
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof RetryHelper.Options) {
RetryHelper.Options that = (RetryHelper.Options) o;
return ((this.listener == null) ? (that.listener() == null) : this.listener.equals(that.listener()))
&& ((this.timeout == null) ? (that.timeout() == null) : this.timeout.equals(that.timeout()));
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= (listener == null) ? 0 : listener.hashCode();
h$ *= 1000003;
h$ ^= (timeout == null) ? 0 : timeout.hashCode();
return h$;
}
static final class Builder extends RetryHelper.Options.Builder {
private RetryListener listener;
private Duration timeout;
Builder() {
}
@Override
public RetryHelper.Options.Builder listener(RetryListener listener) {
this.listener = listener;
return this;
}
@Override
public RetryHelper.Options.Builder timeout(Duration timeout) {
this.timeout = timeout;
return this;
}
@Override
public RetryHelper.Options build() {
return new AutoValue_RetryHelper_Options(
this.listener,
this.timeout);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy