package io.grpc.internal; import com.google.common.base.MoreObjects; import com.google.common.base.Objects; import com.google.common.collect.ImmutableSet; import io.grpc.Status; import java.util.Collection; import java.util.Set; /* JADX INFO: Access modifiers changed from: package-private */ /* loaded from: classes6.dex */ public final class HedgingPolicy { final long hedgingDelayNanos; final int maxAttempts; final Set nonFatalStatusCodes; /* JADX INFO: Access modifiers changed from: package-private */ public HedgingPolicy(int i, long j, Set set) { this.maxAttempts = i; this.hedgingDelayNanos = j; this.nonFatalStatusCodes = ImmutableSet.copyOf((Collection) set); } public final boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null || getClass() != obj.getClass()) { return false; } HedgingPolicy hedgingPolicy = (HedgingPolicy) obj; return this.maxAttempts == hedgingPolicy.maxAttempts && this.hedgingDelayNanos == hedgingPolicy.hedgingDelayNanos && Objects.equal(this.nonFatalStatusCodes, hedgingPolicy.nonFatalStatusCodes); } public final int hashCode() { int i = this.maxAttempts; long j = this.hedgingDelayNanos; return Objects.hashCode(Integer.valueOf(i), Long.valueOf(j), this.nonFatalStatusCodes); } public final String toString() { return MoreObjects.toStringHelper(this).add("maxAttempts", this.maxAttempts).add("hedgingDelayNanos", this.hedgingDelayNanos).add("nonFatalStatusCodes", this.nonFatalStatusCodes).toString(); } }