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.
307 lines
6.8 KiB
307 lines
6.8 KiB
.class public abstract Lcom/google/common/cache/AbstractCache; |
|
.super Ljava/lang/Object; |
|
.source "AbstractCache.java" |
|
|
|
# interfaces |
|
.implements Lcom/google/common/cache/Cache; |
|
|
|
|
|
# annotations |
|
.annotation build Lcom/google/common/annotations/Beta; |
|
.end annotation |
|
|
|
.annotation build Lcom/google/common/annotations/GwtCompatible; |
|
.end annotation |
|
|
|
.annotation system Ldalvik/annotation/MemberClasses; |
|
value = { |
|
Lcom/google/common/cache/AbstractCache$SimpleStatsCounter;, |
|
Lcom/google/common/cache/AbstractCache$StatsCounter; |
|
} |
|
.end annotation |
|
|
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"<K:", |
|
"Ljava/lang/Object;", |
|
"V:", |
|
"Ljava/lang/Object;", |
|
">", |
|
"Ljava/lang/Object;", |
|
"Lcom/google/common/cache/Cache", |
|
"<TK;TV;>;" |
|
} |
|
.end annotation |
|
|
|
|
|
# direct methods |
|
.method protected constructor <init>()V |
|
.locals 0 |
|
|
|
.prologue |
|
.line 48 |
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V |
|
|
|
return-void |
|
.end method |
|
|
|
|
|
# virtual methods |
|
.method public asMap()Ljava/util/concurrent/ConcurrentMap; |
|
.locals 1 |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"()", |
|
"Ljava/util/concurrent/ConcurrentMap", |
|
"<TK;TV;>;" |
|
} |
|
.end annotation |
|
|
|
.prologue |
|
.line 133 |
|
new-instance v0, Ljava/lang/UnsupportedOperationException; |
|
|
|
invoke-direct {v0}, Ljava/lang/UnsupportedOperationException;-><init>()V |
|
|
|
throw v0 |
|
.end method |
|
|
|
.method public cleanUp()V |
|
.locals 0 |
|
|
|
.prologue |
|
.line 99 |
|
return-void |
|
.end method |
|
|
|
.method public get(Ljava/lang/Object;Ljava/util/concurrent/Callable;)Ljava/lang/Object; |
|
.locals 1 |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"(TK;", |
|
"Ljava/util/concurrent/Callable", |
|
"<+TV;>;)TV;" |
|
} |
|
.end annotation |
|
|
|
.prologue |
|
.line 55 |
|
new-instance v0, Ljava/lang/UnsupportedOperationException; |
|
|
|
invoke-direct {v0}, Ljava/lang/UnsupportedOperationException;-><init>()V |
|
|
|
throw v0 |
|
.end method |
|
|
|
.method public getAllPresent(Ljava/lang/Iterable;)Lcom/google/common/collect/ImmutableMap; |
|
.locals 4 |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"(", |
|
"Ljava/lang/Iterable", |
|
"<*>;)", |
|
"Lcom/google/common/collect/ImmutableMap", |
|
"<TK;TV;>;" |
|
} |
|
.end annotation |
|
|
|
.prologue |
|
.line 69 |
|
invoke-static {}, Lcom/google/common/collect/Maps;->newLinkedHashMap()Ljava/util/LinkedHashMap; |
|
|
|
move-result-object v0 |
|
|
|
.line 70 |
|
invoke-interface {p1}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator; |
|
|
|
move-result-object v1 |
|
|
|
:cond_0 |
|
:goto_0 |
|
invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z |
|
|
|
move-result v2 |
|
|
|
if-eqz v2, :cond_1 |
|
|
|
invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object; |
|
|
|
move-result-object v2 |
|
|
|
.line 71 |
|
invoke-interface {v0, v2}, Ljava/util/Map;->containsKey(Ljava/lang/Object;)Z |
|
|
|
move-result v3 |
|
|
|
if-nez v3, :cond_0 |
|
|
|
.line 74 |
|
invoke-virtual {p0, v2}, Lcom/google/common/cache/AbstractCache;->getIfPresent(Ljava/lang/Object;)Ljava/lang/Object; |
|
|
|
move-result-object v3 |
|
|
|
invoke-interface {v0, v2, v3}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; |
|
|
|
goto :goto_0 |
|
|
|
.line 77 |
|
:cond_1 |
|
invoke-static {v0}, Lcom/google/common/collect/ImmutableMap;->copyOf(Ljava/util/Map;)Lcom/google/common/collect/ImmutableMap; |
|
|
|
move-result-object v0 |
|
|
|
return-object v0 |
|
.end method |
|
|
|
.method public invalidate(Ljava/lang/Object;)V |
|
.locals 1 |
|
|
|
.prologue |
|
.line 108 |
|
new-instance v0, Ljava/lang/UnsupportedOperationException; |
|
|
|
invoke-direct {v0}, Ljava/lang/UnsupportedOperationException;-><init>()V |
|
|
|
throw v0 |
|
.end method |
|
|
|
.method public invalidateAll()V |
|
.locals 1 |
|
|
|
.prologue |
|
.line 123 |
|
new-instance v0, Ljava/lang/UnsupportedOperationException; |
|
|
|
invoke-direct {v0}, Ljava/lang/UnsupportedOperationException;-><init>()V |
|
|
|
throw v0 |
|
.end method |
|
|
|
.method public invalidateAll(Ljava/lang/Iterable;)V |
|
.locals 2 |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"(", |
|
"Ljava/lang/Iterable", |
|
"<*>;)V" |
|
} |
|
.end annotation |
|
|
|
.prologue |
|
.line 116 |
|
invoke-interface {p1}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator; |
|
|
|
move-result-object v0 |
|
|
|
:goto_0 |
|
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z |
|
|
|
move-result v1 |
|
|
|
if-eqz v1, :cond_0 |
|
|
|
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object; |
|
|
|
move-result-object v1 |
|
|
|
.line 117 |
|
invoke-virtual {p0, v1}, Lcom/google/common/cache/AbstractCache;->invalidate(Ljava/lang/Object;)V |
|
|
|
goto :goto_0 |
|
|
|
.line 119 |
|
:cond_0 |
|
return-void |
|
.end method |
|
|
|
.method public put(Ljava/lang/Object;Ljava/lang/Object;)V |
|
.locals 1 |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"(TK;TV;)V" |
|
} |
|
.end annotation |
|
|
|
.prologue |
|
.line 85 |
|
new-instance v0, Ljava/lang/UnsupportedOperationException; |
|
|
|
invoke-direct {v0}, Ljava/lang/UnsupportedOperationException;-><init>()V |
|
|
|
throw v0 |
|
.end method |
|
|
|
.method public putAll(Ljava/util/Map;)V |
|
.locals 3 |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"(", |
|
"Ljava/util/Map", |
|
"<+TK;+TV;>;)V" |
|
} |
|
.end annotation |
|
|
|
.prologue |
|
.line 93 |
|
invoke-interface {p1}, Ljava/util/Map;->entrySet()Ljava/util/Set; |
|
|
|
move-result-object v0 |
|
|
|
invoke-interface {v0}, Ljava/util/Set;->iterator()Ljava/util/Iterator; |
|
|
|
move-result-object v1 |
|
|
|
:goto_0 |
|
invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z |
|
|
|
move-result v0 |
|
|
|
if-eqz v0, :cond_0 |
|
|
|
invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object; |
|
|
|
move-result-object v0 |
|
|
|
check-cast v0, Ljava/util/Map$Entry; |
|
|
|
.line 94 |
|
invoke-interface {v0}, Ljava/util/Map$Entry;->getKey()Ljava/lang/Object; |
|
|
|
move-result-object v2 |
|
|
|
invoke-interface {v0}, Ljava/util/Map$Entry;->getValue()Ljava/lang/Object; |
|
|
|
move-result-object v0 |
|
|
|
invoke-virtual {p0, v2, v0}, Lcom/google/common/cache/AbstractCache;->put(Ljava/lang/Object;Ljava/lang/Object;)V |
|
|
|
goto :goto_0 |
|
|
|
.line 96 |
|
:cond_0 |
|
return-void |
|
.end method |
|
|
|
.method public size()J |
|
.locals 1 |
|
|
|
.prologue |
|
.line 103 |
|
new-instance v0, Ljava/lang/UnsupportedOperationException; |
|
|
|
invoke-direct {v0}, Ljava/lang/UnsupportedOperationException;-><init>()V |
|
|
|
throw v0 |
|
.end method |
|
|
|
.method public stats()Lcom/google/common/cache/CacheStats; |
|
.locals 1 |
|
|
|
.prologue |
|
.line 128 |
|
new-instance v0, Ljava/lang/UnsupportedOperationException; |
|
|
|
invoke-direct {v0}, Ljava/lang/UnsupportedOperationException;-><init>()V |
|
|
|
throw v0 |
|
.end method
|
|
|