65 lines
1.9 KiB
Java
65 lines
1.9 KiB
Java
package c.f.d.b;
|
|
|
|
import android.os.Handler;
|
|
import java.util.concurrent.Callable;
|
|
import java.util.concurrent.Delayed;
|
|
import java.util.concurrent.ExecutionException;
|
|
import java.util.concurrent.FutureTask;
|
|
import java.util.concurrent.RunnableFuture;
|
|
import java.util.concurrent.ScheduledFuture;
|
|
import java.util.concurrent.TimeUnit;
|
|
import java.util.concurrent.TimeoutException;
|
|
/* compiled from: ScheduledFutureImpl */
|
|
public class e<V> implements RunnableFuture<V>, ScheduledFuture<V> {
|
|
public final FutureTask<V> i;
|
|
|
|
public e(Handler handler, Runnable runnable, V v) {
|
|
this.i = new FutureTask<>(runnable, v);
|
|
}
|
|
|
|
public e(Handler handler, Callable<V> callable) {
|
|
this.i = new FutureTask<>(callable);
|
|
}
|
|
|
|
@Override // java.util.concurrent.Future
|
|
public boolean cancel(boolean z2) {
|
|
return this.i.cancel(z2);
|
|
}
|
|
|
|
@Override // java.lang.Comparable
|
|
public int compareTo(Object obj) {
|
|
Delayed delayed = (Delayed) obj;
|
|
throw new UnsupportedOperationException();
|
|
}
|
|
|
|
@Override // java.util.concurrent.Future
|
|
public V get() throws InterruptedException, ExecutionException {
|
|
return this.i.get();
|
|
}
|
|
|
|
@Override // java.util.concurrent.Future
|
|
public V get(long j, TimeUnit timeUnit) throws InterruptedException, ExecutionException, TimeoutException {
|
|
return this.i.get(j, timeUnit);
|
|
}
|
|
|
|
@Override // java.util.concurrent.Delayed
|
|
public long getDelay(TimeUnit timeUnit) {
|
|
throw new UnsupportedOperationException();
|
|
}
|
|
|
|
@Override // java.util.concurrent.Future
|
|
public boolean isCancelled() {
|
|
return this.i.isCancelled();
|
|
}
|
|
|
|
@Override // java.util.concurrent.Future
|
|
public boolean isDone() {
|
|
return this.i.isDone();
|
|
}
|
|
|
|
@Override // java.util.concurrent.RunnableFuture, java.lang.Runnable
|
|
public void run() {
|
|
this.i.run();
|
|
}
|
|
}
|