package com.google.common.util.concurrent; import com.google.common.base.Preconditions; import com.google.common.collect.ForwardingObject; import java.util.concurrent.ExecutionException; import java.util.concurrent.Future; import java.util.concurrent.TimeUnit; import java.util.concurrent.TimeoutException; /* loaded from: classes2.dex */ public abstract class ForwardingFuture extends ForwardingObject implements Future { /* JADX INFO: Access modifiers changed from: protected */ @Override // com.google.common.collect.ForwardingObject public abstract Future delegate(); public boolean cancel(boolean z) { return delegate().cancel(z); } public boolean isCancelled() { return delegate().isCancelled(); } @Override // java.util.concurrent.Future public boolean isDone() { return delegate().isDone(); } @Override // java.util.concurrent.Future public V get() throws InterruptedException, ExecutionException { return delegate().get(); } @Override // java.util.concurrent.Future public V get(long j, TimeUnit timeUnit) throws InterruptedException, ExecutionException, TimeoutException { return delegate().get(j, timeUnit); } /* loaded from: classes2.dex */ public static abstract class SimpleForwardingFuture extends ForwardingFuture { private final Future delegate; protected SimpleForwardingFuture(Future future) { this.delegate = (Future) Preconditions.checkNotNull(future); } /* JADX INFO: Access modifiers changed from: protected */ @Override // com.google.common.util.concurrent.ForwardingFuture, com.google.common.collect.ForwardingObject public final Future delegate() { return this.delegate; } } }