Rabbit-R1/android (non root)/smali/smali_classes2/com/google/common/cache/AbstractLoadingCache.smali
2024-05-21 17:08:36 -04:00

168 lines
4.1 KiB
Smali

.class public abstract Lcom/google/common/cache/AbstractLoadingCache;
.super Lcom/google/common/cache/AbstractCache;
.source "AbstractLoadingCache.java"
# interfaces
.implements Lcom/google/common/cache/LoadingCache;
# annotations
.annotation runtime Lcom/google/common/cache/ElementTypesAreNonnullByDefault;
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"<K:",
"Ljava/lang/Object;",
"V:",
"Ljava/lang/Object;",
">",
"Lcom/google/common/cache/AbstractCache<",
"TK;TV;>;",
"Lcom/google/common/cache/LoadingCache<",
"TK;TV;>;"
}
.end annotation
# direct methods
.method protected constructor <init>()V
.locals 0
.line 46
invoke-direct {p0}, Lcom/google/common/cache/AbstractCache;-><init>()V
return-void
.end method
# virtual methods
.method public final apply(Ljava/lang/Object;)Ljava/lang/Object;
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(TK;)TV;"
}
.end annotation
.line 70
invoke-virtual {p0, p1}, Lcom/google/common/cache/AbstractLoadingCache;->getUnchecked(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p0
return-object p0
.end method
.method public getAll(Ljava/lang/Iterable;)Lcom/google/common/collect/ImmutableMap;
.locals 3
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/Iterable<",
"+TK;>;)",
"Lcom/google/common/collect/ImmutableMap<",
"TK;TV;>;"
}
.end annotation
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/util/concurrent/ExecutionException;
}
.end annotation
.line 59
invoke-static {}, Lcom/google/common/collect/Maps;->newLinkedHashMap()Ljava/util/LinkedHashMap;
move-result-object v0
.line 60
invoke-interface {p1}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
move-result-object p1
:cond_0
:goto_0
invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z
move-result v1
if-eqz v1, :cond_1
invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v1
.line 61
invoke-interface {v0, v1}, Ljava/util/Map;->containsKey(Ljava/lang/Object;)Z
move-result v2
if-nez v2, :cond_0
.line 62
invoke-virtual {p0, v1}, Lcom/google/common/cache/AbstractLoadingCache;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v2
invoke-interface {v0, v1, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
goto :goto_0
.line 65
:cond_1
invoke-static {v0}, Lcom/google/common/collect/ImmutableMap;->copyOf(Ljava/util/Map;)Lcom/google/common/collect/ImmutableMap;
move-result-object p0
return-object p0
.end method
.method public getUnchecked(Ljava/lang/Object;)Ljava/lang/Object;
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(TK;)TV;"
}
.end annotation
.line 51
:try_start_0
invoke-virtual {p0, p1}, Lcom/google/common/cache/AbstractLoadingCache;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p0
:try_end_0
.catch Ljava/util/concurrent/ExecutionException; {:try_start_0 .. :try_end_0} :catch_0
return-object p0
:catch_0
move-exception p0
.line 53
new-instance p1, Lcom/google/common/util/concurrent/UncheckedExecutionException;
invoke-virtual {p0}, Ljava/util/concurrent/ExecutionException;->getCause()Ljava/lang/Throwable;
move-result-object p0
invoke-direct {p1, p0}, Lcom/google/common/util/concurrent/UncheckedExecutionException;-><init>(Ljava/lang/Throwable;)V
throw p1
.end method
.method public refresh(Ljava/lang/Object;)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(TK;)V"
}
.end annotation
.line 75
new-instance p0, Ljava/lang/UnsupportedOperationException;
invoke-direct {p0}, Ljava/lang/UnsupportedOperationException;-><init>()V
throw p0
.end method