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.
197 lines
5.5 KiB
197 lines
5.5 KiB
.class Lcom/google/common/cache/LocalCache$LocalLoadingCache; |
|
.super Lcom/google/common/cache/LocalCache$LocalManualCache; |
|
.source "LocalCache.java" |
|
|
|
# interfaces |
|
.implements Lcom/google/common/cache/LoadingCache; |
|
|
|
|
|
# annotations |
|
.annotation system Ldalvik/annotation/EnclosingClass; |
|
value = Lcom/google/common/cache/LocalCache; |
|
.end annotation |
|
|
|
.annotation system Ldalvik/annotation/InnerClass; |
|
accessFlags = 0x8 |
|
name = "LocalLoadingCache" |
|
.end annotation |
|
|
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"<K:", |
|
"Ljava/lang/Object;", |
|
"V:", |
|
"Ljava/lang/Object;", |
|
">", |
|
"Lcom/google/common/cache/LocalCache$LocalManualCache", |
|
"<TK;TV;>;", |
|
"Lcom/google/common/cache/LoadingCache", |
|
"<TK;TV;>;" |
|
} |
|
.end annotation |
|
|
|
|
|
# static fields |
|
.field private static final serialVersionUID:J = 0x1L |
|
|
|
|
|
# direct methods |
|
.method constructor <init>(Lcom/google/common/cache/CacheBuilder;Lcom/google/common/cache/CacheLoader;)V |
|
.locals 2 |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"(", |
|
"Lcom/google/common/cache/CacheBuilder", |
|
"<-TK;-TV;>;", |
|
"Lcom/google/common/cache/CacheLoader", |
|
"<-TK;TV;>;)V" |
|
} |
|
.end annotation |
|
|
|
.prologue |
|
.line 4814 |
|
new-instance v1, Lcom/google/common/cache/LocalCache; |
|
|
|
invoke-static {p2}, Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object; |
|
|
|
move-result-object v0 |
|
|
|
check-cast v0, Lcom/google/common/cache/CacheLoader; |
|
|
|
invoke-direct {v1, p1, v0}, Lcom/google/common/cache/LocalCache;-><init>(Lcom/google/common/cache/CacheBuilder;Lcom/google/common/cache/CacheLoader;)V |
|
|
|
const/4 v0, 0x0 |
|
|
|
invoke-direct {p0, v1, v0}, Lcom/google/common/cache/LocalCache$LocalManualCache;-><init>(Lcom/google/common/cache/LocalCache;Lcom/google/common/cache/LocalCache$1;)V |
|
|
|
.line 4815 |
|
return-void |
|
.end method |
|
|
|
|
|
# virtual methods |
|
.method public final apply(Ljava/lang/Object;)Ljava/lang/Object; |
|
.locals 1 |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"(TK;)TV;" |
|
} |
|
.end annotation |
|
|
|
.prologue |
|
.line 4845 |
|
invoke-virtual {p0, p1}, Lcom/google/common/cache/LocalCache$LocalLoadingCache;->getUnchecked(Ljava/lang/Object;)Ljava/lang/Object; |
|
|
|
move-result-object v0 |
|
|
|
return-object v0 |
|
.end method |
|
|
|
.method public get(Ljava/lang/Object;)Ljava/lang/Object; |
|
.locals 1 |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"(TK;)TV;" |
|
} |
|
.end annotation |
|
|
|
.prologue |
|
.line 4821 |
|
iget-object v0, p0, Lcom/google/common/cache/LocalCache$LocalLoadingCache;->localCache:Lcom/google/common/cache/LocalCache; |
|
|
|
invoke-virtual {v0, p1}, Lcom/google/common/cache/LocalCache;->getOrLoad(Ljava/lang/Object;)Ljava/lang/Object; |
|
|
|
move-result-object v0 |
|
|
|
return-object v0 |
|
.end method |
|
|
|
.method public getAll(Ljava/lang/Iterable;)Lcom/google/common/collect/ImmutableMap; |
|
.locals 1 |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"(", |
|
"Ljava/lang/Iterable", |
|
"<+TK;>;)", |
|
"Lcom/google/common/collect/ImmutableMap", |
|
"<TK;TV;>;" |
|
} |
|
.end annotation |
|
|
|
.prologue |
|
.line 4835 |
|
iget-object v0, p0, Lcom/google/common/cache/LocalCache$LocalLoadingCache;->localCache:Lcom/google/common/cache/LocalCache; |
|
|
|
invoke-virtual {v0, p1}, Lcom/google/common/cache/LocalCache;->getAll(Ljava/lang/Iterable;)Lcom/google/common/collect/ImmutableMap; |
|
|
|
move-result-object v0 |
|
|
|
return-object v0 |
|
.end method |
|
|
|
.method public getUnchecked(Ljava/lang/Object;)Ljava/lang/Object; |
|
.locals 2 |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"(TK;)TV;" |
|
} |
|
.end annotation |
|
|
|
.prologue |
|
.line 4827 |
|
:try_start_0 |
|
invoke-virtual {p0, p1}, Lcom/google/common/cache/LocalCache$LocalLoadingCache;->get(Ljava/lang/Object;)Ljava/lang/Object; |
|
:try_end_0 |
|
.catch Ljava/util/concurrent/ExecutionException; {:try_start_0 .. :try_end_0} :catch_0 |
|
|
|
move-result-object v0 |
|
|
|
return-object v0 |
|
|
|
.line 4828 |
|
:catch_0 |
|
move-exception v0 |
|
|
|
.line 4829 |
|
new-instance v1, Lcom/google/common/util/concurrent/UncheckedExecutionException; |
|
|
|
invoke-virtual {v0}, Ljava/util/concurrent/ExecutionException;->getCause()Ljava/lang/Throwable; |
|
|
|
move-result-object v0 |
|
|
|
invoke-direct {v1, v0}, Lcom/google/common/util/concurrent/UncheckedExecutionException;-><init>(Ljava/lang/Throwable;)V |
|
|
|
throw v1 |
|
.end method |
|
|
|
.method public refresh(Ljava/lang/Object;)V |
|
.locals 1 |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"(TK;)V" |
|
} |
|
.end annotation |
|
|
|
.prologue |
|
.line 4840 |
|
iget-object v0, p0, Lcom/google/common/cache/LocalCache$LocalLoadingCache;->localCache:Lcom/google/common/cache/LocalCache; |
|
|
|
invoke-virtual {v0, p1}, Lcom/google/common/cache/LocalCache;->refresh(Ljava/lang/Object;)V |
|
|
|
.line 4841 |
|
return-void |
|
.end method |
|
|
|
.method writeReplace()Ljava/lang/Object; |
|
.locals 2 |
|
|
|
.prologue |
|
.line 4854 |
|
new-instance v0, Lcom/google/common/cache/LocalCache$LoadingSerializationProxy; |
|
|
|
iget-object v1, p0, Lcom/google/common/cache/LocalCache$LocalLoadingCache;->localCache:Lcom/google/common/cache/LocalCache; |
|
|
|
invoke-direct {v0, v1}, Lcom/google/common/cache/LocalCache$LoadingSerializationProxy;-><init>(Lcom/google/common/cache/LocalCache;)V |
|
|
|
return-object v0 |
|
.end method
|
|
|