ForwardingCheckedFuture.java
1.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
package com.google.common.util.concurrent;
import com.google.common.annotations.Beta;
import com.google.common.base.Preconditions;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.TimeoutException;
@Beta
public abstract class ForwardingCheckedFuture<V, X extends Exception>
extends ForwardingListenableFuture<V>
implements CheckedFuture<V, X>
{
public V checkedGet()
throws Exception
{
return (V)delegate().checkedGet();
}
public V checkedGet(long paramLong, TimeUnit paramTimeUnit)
throws TimeoutException, Exception
{
return (V)delegate().checkedGet(paramLong, paramTimeUnit);
}
protected abstract CheckedFuture<V, X> delegate();
@Beta
public static abstract class SimpleForwardingCheckedFuture<V, X extends Exception>
extends ForwardingCheckedFuture<V, X>
{
private final CheckedFuture<V, X> a;
protected SimpleForwardingCheckedFuture(CheckedFuture<V, X> paramCheckedFuture)
{
this.a = ((CheckedFuture)Preconditions.checkNotNull(paramCheckedFuture));
}
protected final CheckedFuture<V, X> delegate()
{
return this.a;
}
}
}
/* Location: /home/merong/decompile/hackery-dex2jar.jar!/com/google/common/util/concurrent/ForwardingCheckedFuture.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/