今奥全景相机
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.

375 lines
11 KiB

.class Lcom/google/common/cache/LocalCache$LocalManualCache;
.super Ljava/lang/Object;
.source "LocalCache.java"
# interfaces
.implements Lcom/google/common/cache/Cache;
.implements Ljava/io/Serializable;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/google/common/cache/LocalCache;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x8
name = "LocalManualCache"
.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;>;",
"Ljava/io/Serializable;"
}
.end annotation
# static fields
.field private static final serialVersionUID:J = 0x1L
# instance fields
.field final localCache:Lcom/google/common/cache/LocalCache;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lcom/google/common/cache/LocalCache",
"<TK;TV;>;"
}
.end annotation
.end field
# direct methods
.method constructor <init>(Lcom/google/common/cache/CacheBuilder;)V
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/google/common/cache/CacheBuilder",
"<-TK;-TV;>;)V"
}
.end annotation
.prologue
.line 4718
new-instance v0, Lcom/google/common/cache/LocalCache;
const/4 v1, 0x0
invoke-direct {v0, p1, v1}, Lcom/google/common/cache/LocalCache;-><init>(Lcom/google/common/cache/CacheBuilder;Lcom/google/common/cache/CacheLoader;)V
invoke-direct {p0, v0}, Lcom/google/common/cache/LocalCache$LocalManualCache;-><init>(Lcom/google/common/cache/LocalCache;)V
.line 4719
return-void
.end method
.method private constructor <init>(Lcom/google/common/cache/LocalCache;)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/google/common/cache/LocalCache",
"<TK;TV;>;)V"
}
.end annotation
.prologue
.line 4721
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 4722
iput-object p1, p0, Lcom/google/common/cache/LocalCache$LocalManualCache;->localCache:Lcom/google/common/cache/LocalCache;
.line 4723
return-void
.end method
.method synthetic constructor <init>(Lcom/google/common/cache/LocalCache;Lcom/google/common/cache/LocalCache$1;)V
.locals 0
.prologue
.line 4714
invoke-direct {p0, p1}, Lcom/google/common/cache/LocalCache$LocalManualCache;-><init>(Lcom/google/common/cache/LocalCache;)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 4782
iget-object v0, p0, Lcom/google/common/cache/LocalCache$LocalManualCache;->localCache:Lcom/google/common/cache/LocalCache;
return-object v0
.end method
.method public cleanUp()V
.locals 1
.prologue
.line 4797
iget-object v0, p0, Lcom/google/common/cache/LocalCache$LocalManualCache;->localCache:Lcom/google/common/cache/LocalCache;
invoke-virtual {v0}, Lcom/google/common/cache/LocalCache;->cleanUp()V
.line 4798
return-void
.end method
.method public get(Ljava/lang/Object;Ljava/util/concurrent/Callable;)Ljava/lang/Object;
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"(TK;",
"Ljava/util/concurrent/Callable",
"<+TV;>;)TV;"
}
.end annotation
.prologue
.line 4735
invoke-static {p2}, Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
.line 4736
iget-object v0, p0, Lcom/google/common/cache/LocalCache$LocalManualCache;->localCache:Lcom/google/common/cache/LocalCache;
new-instance v1, Lcom/google/common/cache/LocalCache$LocalManualCache$1;
invoke-direct {v1, p0, p2}, Lcom/google/common/cache/LocalCache$LocalManualCache$1;-><init>(Lcom/google/common/cache/LocalCache$LocalManualCache;Ljava/util/concurrent/Callable;)V
invoke-virtual {v0, p1, v1}, Lcom/google/common/cache/LocalCache;->get(Ljava/lang/Object;Lcom/google/common/cache/CacheLoader;)Ljava/lang/Object;
move-result-object v0
return-object v0
.end method
.method public getAllPresent(Ljava/lang/Iterable;)Lcom/google/common/collect/ImmutableMap;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/Iterable",
"<*>;)",
"Lcom/google/common/collect/ImmutableMap",
"<TK;TV;>;"
}
.end annotation
.prologue
.line 4746
iget-object v0, p0, Lcom/google/common/cache/LocalCache$LocalManualCache;->localCache:Lcom/google/common/cache/LocalCache;
invoke-virtual {v0, p1}, Lcom/google/common/cache/LocalCache;->getAllPresent(Ljava/lang/Iterable;)Lcom/google/common/collect/ImmutableMap;
move-result-object v0
return-object v0
.end method
.method public getIfPresent(Ljava/lang/Object;)Ljava/lang/Object;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/Object;",
")TV;"
}
.end annotation
.annotation runtime Ljavax/annotation/Nullable;
.end annotation
.prologue
.line 4730
iget-object v0, p0, Lcom/google/common/cache/LocalCache$LocalManualCache;->localCache:Lcom/google/common/cache/LocalCache;
invoke-virtual {v0, p1}, Lcom/google/common/cache/LocalCache;->getIfPresent(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v0
return-object v0
.end method
.method public invalidate(Ljava/lang/Object;)V
.locals 1
.prologue
.line 4761
invoke-static {p1}, Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
.line 4762
iget-object v0, p0, Lcom/google/common/cache/LocalCache$LocalManualCache;->localCache:Lcom/google/common/cache/LocalCache;
invoke-virtual {v0, p1}, Lcom/google/common/cache/LocalCache;->remove(Ljava/lang/Object;)Ljava/lang/Object;
.line 4763
return-void
.end method
.method public invalidateAll()V
.locals 1
.prologue
.line 4772
iget-object v0, p0, Lcom/google/common/cache/LocalCache$LocalManualCache;->localCache:Lcom/google/common/cache/LocalCache;
invoke-virtual {v0}, Lcom/google/common/cache/LocalCache;->clear()V
.line 4773
return-void
.end method
.method public invalidateAll(Ljava/lang/Iterable;)V
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/Iterable",
"<*>;)V"
}
.end annotation
.prologue
.line 4767
iget-object v0, p0, Lcom/google/common/cache/LocalCache$LocalManualCache;->localCache:Lcom/google/common/cache/LocalCache;
invoke-virtual {v0, p1}, Lcom/google/common/cache/LocalCache;->invalidateAll(Ljava/lang/Iterable;)V
.line 4768
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 4751
iget-object v0, p0, Lcom/google/common/cache/LocalCache$LocalManualCache;->localCache:Lcom/google/common/cache/LocalCache;
invoke-virtual {v0, p1, p2}, Lcom/google/common/cache/LocalCache;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
.line 4752
return-void
.end method
.method public putAll(Ljava/util/Map;)V
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/Map",
"<+TK;+TV;>;)V"
}
.end annotation
.prologue
.line 4756
iget-object v0, p0, Lcom/google/common/cache/LocalCache$LocalManualCache;->localCache:Lcom/google/common/cache/LocalCache;
invoke-virtual {v0, p1}, Lcom/google/common/cache/LocalCache;->putAll(Ljava/util/Map;)V
.line 4757
return-void
.end method
.method public size()J
.locals 2
.prologue
.line 4777
iget-object v0, p0, Lcom/google/common/cache/LocalCache$LocalManualCache;->localCache:Lcom/google/common/cache/LocalCache;
invoke-virtual {v0}, Lcom/google/common/cache/LocalCache;->longSize()J
move-result-wide v0
return-wide v0
.end method
.method public stats()Lcom/google/common/cache/CacheStats;
.locals 5
.prologue
.line 4787
new-instance v1, Lcom/google/common/cache/AbstractCache$SimpleStatsCounter;
invoke-direct {v1}, Lcom/google/common/cache/AbstractCache$SimpleStatsCounter;-><init>()V
.line 4788
iget-object v0, p0, Lcom/google/common/cache/LocalCache$LocalManualCache;->localCache:Lcom/google/common/cache/LocalCache;
iget-object v0, v0, Lcom/google/common/cache/LocalCache;->globalStatsCounter:Lcom/google/common/cache/AbstractCache$StatsCounter;
invoke-virtual {v1, v0}, Lcom/google/common/cache/AbstractCache$SimpleStatsCounter;->incrementBy(Lcom/google/common/cache/AbstractCache$StatsCounter;)V
.line 4789
iget-object v0, p0, Lcom/google/common/cache/LocalCache$LocalManualCache;->localCache:Lcom/google/common/cache/LocalCache;
iget-object v2, v0, Lcom/google/common/cache/LocalCache;->segments:[Lcom/google/common/cache/LocalCache$Segment;
array-length v3, v2
const/4 v0, 0x0
:goto_0
if-ge v0, v3, :cond_0
aget-object v4, v2, v0
.line 4790
iget-object v4, v4, Lcom/google/common/cache/LocalCache$Segment;->statsCounter:Lcom/google/common/cache/AbstractCache$StatsCounter;
invoke-virtual {v1, v4}, Lcom/google/common/cache/AbstractCache$SimpleStatsCounter;->incrementBy(Lcom/google/common/cache/AbstractCache$StatsCounter;)V
.line 4789
add-int/lit8 v0, v0, 0x1
goto :goto_0
.line 4792
:cond_0
invoke-virtual {v1}, Lcom/google/common/cache/AbstractCache$SimpleStatsCounter;->snapshot()Lcom/google/common/cache/CacheStats;
move-result-object v0
return-object v0
.end method
.method writeReplace()Ljava/lang/Object;
.locals 2
.prologue
.line 4805
new-instance v0, Lcom/google/common/cache/LocalCache$ManualSerializationProxy;
iget-object v1, p0, Lcom/google/common/cache/LocalCache$LocalManualCache;->localCache:Lcom/google/common/cache/LocalCache;
invoke-direct {v0, v1}, Lcom/google/common/cache/LocalCache$ManualSerializationProxy;-><init>(Lcom/google/common/cache/LocalCache;)V
return-object v0
.end method