what-the-bank/sources/com/google/common/util/concurrent/ForwardingFluentFuture.java

54 lines
2.1 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package com.google.common.util.concurrent;
import com.google.common.base.Preconditions;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.Executor;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.TimeoutException;
/* JADX INFO: Access modifiers changed from: package-private */
/* loaded from: classes2.dex */
public final class ForwardingFluentFuture<V> extends FluentFuture<V> {
private final ListenableFuture<V> delegate;
/* JADX INFO: Access modifiers changed from: package-private */
public ForwardingFluentFuture(ListenableFuture<V> listenableFuture) {
this.delegate = (ListenableFuture) Preconditions.checkNotNull(listenableFuture);
}
@Override // com.google.common.util.concurrent.AbstractFuture, com.google.common.util.concurrent.ListenableFuture
public final void addListener(Runnable runnable, Executor executor) {
this.delegate.addListener(runnable, executor);
}
@Override // com.google.common.util.concurrent.AbstractFuture, java.util.concurrent.Future
public final boolean cancel(boolean z) {
return this.delegate.cancel(z);
}
@Override // com.google.common.util.concurrent.AbstractFuture, java.util.concurrent.Future
public final boolean isCancelled() {
return this.delegate.isCancelled();
}
@Override // com.google.common.util.concurrent.AbstractFuture, java.util.concurrent.Future
public final boolean isDone() {
return this.delegate.isDone();
}
@Override // com.google.common.util.concurrent.AbstractFuture, java.util.concurrent.Future
public final V get() throws InterruptedException, ExecutionException {
return this.delegate.get();
}
@Override // com.google.common.util.concurrent.AbstractFuture, java.util.concurrent.Future
public final V get(long j, TimeUnit timeUnit) throws InterruptedException, ExecutionException, TimeoutException {
return this.delegate.get(j, timeUnit);
}
@Override // com.google.common.util.concurrent.AbstractFuture
public final String toString() {
return this.delegate.toString();
}
}