You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
201 lines
5.8 KiB
201 lines
5.8 KiB
.class public abstract Lcom/google/common/cache/CacheLoader; |
|
.super Ljava/lang/Object; |
|
.source "CacheLoader.java" |
|
|
|
|
|
# annotations |
|
.annotation build Lcom/google/common/annotations/GwtCompatible; |
|
emulated = true |
|
.end annotation |
|
|
|
.annotation system Ldalvik/annotation/MemberClasses; |
|
value = { |
|
Lcom/google/common/cache/CacheLoader$InvalidCacheLoadException;, |
|
Lcom/google/common/cache/CacheLoader$UnsupportedLoadingOperationException;, |
|
Lcom/google/common/cache/CacheLoader$SupplierToCacheLoader;, |
|
Lcom/google/common/cache/CacheLoader$FunctionToCacheLoader; |
|
} |
|
.end annotation |
|
|
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"<K:", |
|
"Ljava/lang/Object;", |
|
"V:", |
|
"Ljava/lang/Object;", |
|
">", |
|
"Ljava/lang/Object;" |
|
} |
|
.end annotation |
|
|
|
|
|
# direct methods |
|
.method protected constructor <init>()V |
|
.locals 0 |
|
|
|
.prologue |
|
.line 58 |
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V |
|
|
|
return-void |
|
.end method |
|
|
|
.method public static asyncReloading(Lcom/google/common/cache/CacheLoader;Ljava/util/concurrent/Executor;)Lcom/google/common/cache/CacheLoader; |
|
.locals 1 |
|
.annotation build Lcom/google/common/annotations/Beta; |
|
.end annotation |
|
|
|
.annotation build Lcom/google/common/annotations/GwtIncompatible; |
|
value = "Executor + Futures" |
|
.end annotation |
|
|
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"<K:", |
|
"Ljava/lang/Object;", |
|
"V:", |
|
"Ljava/lang/Object;", |
|
">(", |
|
"Lcom/google/common/cache/CacheLoader", |
|
"<TK;TV;>;", |
|
"Ljava/util/concurrent/Executor;", |
|
")", |
|
"Lcom/google/common/cache/CacheLoader", |
|
"<TK;TV;>;" |
|
} |
|
.end annotation |
|
|
|
.prologue |
|
.line 184 |
|
invoke-static {p0}, Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object; |
|
|
|
.line 185 |
|
invoke-static {p1}, Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object; |
|
|
|
.line 186 |
|
new-instance v0, Lcom/google/common/cache/CacheLoader$1; |
|
|
|
invoke-direct {v0, p0, p1}, Lcom/google/common/cache/CacheLoader$1;-><init>(Lcom/google/common/cache/CacheLoader;Ljava/util/concurrent/Executor;)V |
|
|
|
return-object v0 |
|
.end method |
|
|
|
.method public static from(Lcom/google/common/base/Function;)Lcom/google/common/cache/CacheLoader; |
|
.locals 1 |
|
.annotation build Lcom/google/common/annotations/Beta; |
|
.end annotation |
|
|
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"<K:", |
|
"Ljava/lang/Object;", |
|
"V:", |
|
"Ljava/lang/Object;", |
|
">(", |
|
"Lcom/google/common/base/Function", |
|
"<TK;TV;>;)", |
|
"Lcom/google/common/cache/CacheLoader", |
|
"<TK;TV;>;" |
|
} |
|
.end annotation |
|
|
|
.prologue |
|
.line 138 |
|
new-instance v0, Lcom/google/common/cache/CacheLoader$FunctionToCacheLoader; |
|
|
|
invoke-direct {v0, p0}, Lcom/google/common/cache/CacheLoader$FunctionToCacheLoader;-><init>(Lcom/google/common/base/Function;)V |
|
|
|
return-object v0 |
|
.end method |
|
|
|
.method public static from(Lcom/google/common/base/Supplier;)Lcom/google/common/cache/CacheLoader; |
|
.locals 1 |
|
.annotation build Lcom/google/common/annotations/Beta; |
|
.end annotation |
|
|
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"<V:", |
|
"Ljava/lang/Object;", |
|
">(", |
|
"Lcom/google/common/base/Supplier", |
|
"<TV;>;)", |
|
"Lcom/google/common/cache/CacheLoader", |
|
"<", |
|
"Ljava/lang/Object;", |
|
"TV;>;" |
|
} |
|
.end annotation |
|
|
|
.prologue |
|
.line 168 |
|
new-instance v0, Lcom/google/common/cache/CacheLoader$SupplierToCacheLoader; |
|
|
|
invoke-direct {v0, p0}, Lcom/google/common/cache/CacheLoader$SupplierToCacheLoader;-><init>(Lcom/google/common/base/Supplier;)V |
|
|
|
return-object v0 |
|
.end method |
|
|
|
|
|
# virtual methods |
|
.method public abstract load(Ljava/lang/Object;)Ljava/lang/Object; |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"(TK;)TV;" |
|
} |
|
.end annotation |
|
.end method |
|
|
|
.method public loadAll(Ljava/lang/Iterable;)Ljava/util/Map; |
|
.locals 1 |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"(", |
|
"Ljava/lang/Iterable", |
|
"<+TK;>;)", |
|
"Ljava/util/Map", |
|
"<TK;TV;>;" |
|
} |
|
.end annotation |
|
|
|
.prologue |
|
.line 125 |
|
new-instance v0, Lcom/google/common/cache/CacheLoader$UnsupportedLoadingOperationException; |
|
|
|
invoke-direct {v0}, Lcom/google/common/cache/CacheLoader$UnsupportedLoadingOperationException;-><init>()V |
|
|
|
throw v0 |
|
.end method |
|
|
|
.method public reload(Ljava/lang/Object;Ljava/lang/Object;)Lcom/google/common/util/concurrent/ListenableFuture; |
|
.locals 1 |
|
.annotation build Lcom/google/common/annotations/GwtIncompatible; |
|
value = "Futures" |
|
.end annotation |
|
|
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"(TK;TV;)", |
|
"Lcom/google/common/util/concurrent/ListenableFuture", |
|
"<TV;>;" |
|
} |
|
.end annotation |
|
|
|
.prologue |
|
.line 95 |
|
invoke-static {p1}, Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object; |
|
|
|
.line 96 |
|
invoke-static {p2}, Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object; |
|
|
|
.line 97 |
|
invoke-virtual {p0, p1}, Lcom/google/common/cache/CacheLoader;->load(Ljava/lang/Object;)Ljava/lang/Object; |
|
|
|
move-result-object v0 |
|
|
|
invoke-static {v0}, Lcom/google/common/util/concurrent/Futures;->immediateFuture(Ljava/lang/Object;)Lcom/google/common/util/concurrent/ListenableFuture; |
|
|
|
move-result-object v0 |
|
|
|
return-object v0 |
|
.end method
|
|
|