ForwardingCache.java
2.21 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
package com.google.common.cache;
import com.google.common.annotations.Beta;
import com.google.common.base.Preconditions;
import com.google.common.collect.ForwardingObject;
import com.google.common.collect.ImmutableMap;
import java.util.Map;
import java.util.concurrent.Callable;
import java.util.concurrent.ConcurrentMap;
import java.util.concurrent.ExecutionException;
import javax.annotation.Nullable;
@Beta
public abstract class ForwardingCache<K, V>
extends ForwardingObject
implements Cache<K, V>
{
public ConcurrentMap<K, V> asMap()
{
return delegate().asMap();
}
public void cleanUp()
{
delegate().cleanUp();
}
public abstract Cache<K, V> delegate();
public V get(K paramK, Callable<? extends V> paramCallable)
throws ExecutionException
{
return (V)delegate().get(paramK, paramCallable);
}
public ImmutableMap<K, V> getAllPresent(Iterable<?> paramIterable)
{
return delegate().getAllPresent(paramIterable);
}
@Nullable
public V getIfPresent(Object paramObject)
{
return (V)delegate().getIfPresent(paramObject);
}
public void invalidate(Object paramObject)
{
delegate().invalidate(paramObject);
}
public void invalidateAll()
{
delegate().invalidateAll();
}
public void invalidateAll(Iterable<?> paramIterable)
{
delegate().invalidateAll(paramIterable);
}
public void put(K paramK, V paramV)
{
delegate().put(paramK, paramV);
}
public void putAll(Map<? extends K, ? extends V> paramMap)
{
delegate().putAll(paramMap);
}
public long size()
{
return delegate().size();
}
public CacheStats stats()
{
return delegate().stats();
}
@Beta
public static abstract class SimpleForwardingCache<K, V>
extends ForwardingCache<K, V>
{
private final Cache<K, V> a;
protected SimpleForwardingCache(Cache<K, V> paramCache)
{
this.a = ((Cache)Preconditions.checkNotNull(paramCache));
}
protected final Cache<K, V> delegate()
{
return this.a;
}
}
}
/* Location: /home/merong/decompile/hackery-dex2jar.jar!/com/google/common/cache/ForwardingCache.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/