what-the-bank/sources/o/C15061gfu.java

55 lines
1.8 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package o;
import java.util.concurrent.CancellationException;
import java.util.concurrent.Executor;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.RejectedExecutionException;
/* renamed from: o.gfu, reason: case insensitive filesystem */
/* loaded from: classes6.dex */
public final class C15061gfu extends AbstractC15058gfr implements InterfaceC15043gfc {
private final Executor a;
public C15061gfu(Executor executor) {
this.a = executor;
C15068ggI.e(executor);
}
public final boolean equals(Object obj) {
return (obj instanceof C15061gfu) && ((C15061gfu) obj).a == this.a;
}
@Override // java.io.Closeable, java.lang.AutoCloseable
public final void close() {
Executor executor = this.a;
ExecutorService executorService = executor instanceof ExecutorService ? (ExecutorService) executor : null;
if (executorService != null) {
executorService.shutdown();
}
}
@Override // o.AbstractC15004geU
public final void d(InterfaceC14912gbn interfaceC14912gbn, Runnable runnable) {
try {
this.a.execute(runnable);
} catch (RejectedExecutionException e) {
CancellationException cancellationException = new CancellationException("The task was rejected");
cancellationException.initCause(e);
InterfaceC15034gfD interfaceC15034gfD = (InterfaceC15034gfD) interfaceC14912gbn.get(InterfaceC15034gfD.d);
if (interfaceC15034gfD != null) {
interfaceC15034gfD.d(cancellationException);
}
C15055gfo.a().d(interfaceC14912gbn, runnable);
}
}
public final int hashCode() {
return System.identityHashCode(this.a);
}
@Override // o.AbstractC15004geU
public final String toString() {
return this.a.toString();
}
}