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

488 lines
16 KiB

.class Lcom/google/common/cache/LocalCache$ManualSerializationProxy;
.super Lcom/google/common/cache/ForwardingCache;
.source "LocalCache.java"
# interfaces
.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 = "ManualSerializationProxy"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"<K:",
"Ljava/lang/Object;",
"V:",
"Ljava/lang/Object;",
">",
"Lcom/google/common/cache/ForwardingCache",
"<TK;TV;>;",
"Ljava/io/Serializable;"
}
.end annotation
# static fields
.field private static final serialVersionUID:J = 0x1L
# instance fields
.field final concurrencyLevel:I
.field transient delegate:Lcom/google/common/cache/Cache;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lcom/google/common/cache/Cache",
"<TK;TV;>;"
}
.end annotation
.end field
.field final expireAfterAccessNanos:J
.field final expireAfterWriteNanos:J
.field final keyEquivalence:Lcom/google/common/base/Equivalence;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lcom/google/common/base/Equivalence",
"<",
"Ljava/lang/Object;",
">;"
}
.end annotation
.end field
.field final keyStrength:Lcom/google/common/cache/LocalCache$Strength;
.field final loader:Lcom/google/common/cache/CacheLoader;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lcom/google/common/cache/CacheLoader",
"<-TK;TV;>;"
}
.end annotation
.end field
.field final maxWeight:J
.field final removalListener:Lcom/google/common/cache/RemovalListener;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lcom/google/common/cache/RemovalListener",
"<-TK;-TV;>;"
}
.end annotation
.end field
.field final ticker:Lcom/google/common/base/Ticker;
.field final valueEquivalence:Lcom/google/common/base/Equivalence;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lcom/google/common/base/Equivalence",
"<",
"Ljava/lang/Object;",
">;"
}
.end annotation
.end field
.field final valueStrength:Lcom/google/common/cache/LocalCache$Strength;
.field final weigher:Lcom/google/common/cache/Weigher;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lcom/google/common/cache/Weigher",
"<TK;TV;>;"
}
.end annotation
.end field
# direct methods
.method private constructor <init>(Lcom/google/common/cache/LocalCache$Strength;Lcom/google/common/cache/LocalCache$Strength;Lcom/google/common/base/Equivalence;Lcom/google/common/base/Equivalence;JJJLcom/google/common/cache/Weigher;ILcom/google/common/cache/RemovalListener;Lcom/google/common/base/Ticker;Lcom/google/common/cache/CacheLoader;)V
.locals 3
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/google/common/cache/LocalCache$Strength;",
"Lcom/google/common/cache/LocalCache$Strength;",
"Lcom/google/common/base/Equivalence",
"<",
"Ljava/lang/Object;",
">;",
"Lcom/google/common/base/Equivalence",
"<",
"Ljava/lang/Object;",
">;JJJ",
"Lcom/google/common/cache/Weigher",
"<TK;TV;>;I",
"Lcom/google/common/cache/RemovalListener",
"<-TK;-TV;>;",
"Lcom/google/common/base/Ticker;",
"Lcom/google/common/cache/CacheLoader",
"<-TK;TV;>;)V"
}
.end annotation
.prologue
.line 4597
invoke-direct {p0}, Lcom/google/common/cache/ForwardingCache;-><init>()V
.line 4598
iput-object p1, p0, Lcom/google/common/cache/LocalCache$ManualSerializationProxy;->keyStrength:Lcom/google/common/cache/LocalCache$Strength;
.line 4599
iput-object p2, p0, Lcom/google/common/cache/LocalCache$ManualSerializationProxy;->valueStrength:Lcom/google/common/cache/LocalCache$Strength;
.line 4600
iput-object p3, p0, Lcom/google/common/cache/LocalCache$ManualSerializationProxy;->keyEquivalence:Lcom/google/common/base/Equivalence;
.line 4601
iput-object p4, p0, Lcom/google/common/cache/LocalCache$ManualSerializationProxy;->valueEquivalence:Lcom/google/common/base/Equivalence;
.line 4602
iput-wide p5, p0, Lcom/google/common/cache/LocalCache$ManualSerializationProxy;->expireAfterWriteNanos:J
.line 4603
iput-wide p7, p0, Lcom/google/common/cache/LocalCache$ManualSerializationProxy;->expireAfterAccessNanos:J
.line 4604
iput-wide p9, p0, Lcom/google/common/cache/LocalCache$ManualSerializationProxy;->maxWeight:J
.line 4605
iput-object p11, p0, Lcom/google/common/cache/LocalCache$ManualSerializationProxy;->weigher:Lcom/google/common/cache/Weigher;
.line 4606
iput p12, p0, Lcom/google/common/cache/LocalCache$ManualSerializationProxy;->concurrencyLevel:I
.line 4607
move-object/from16 v0, p13
iput-object v0, p0, Lcom/google/common/cache/LocalCache$ManualSerializationProxy;->removalListener:Lcom/google/common/cache/RemovalListener;
.line 4608
invoke-static {}, Lcom/google/common/base/Ticker;->systemTicker()Lcom/google/common/base/Ticker;
move-result-object v1
move-object/from16 v0, p14
if-eq v0, v1, :cond_0
sget-object v1, Lcom/google/common/cache/CacheBuilder;->NULL_TICKER:Lcom/google/common/base/Ticker;
move-object/from16 v0, p14
if-ne v0, v1, :cond_1
:cond_0
const/16 p14, 0x0
:cond_1
move-object/from16 v0, p14
iput-object v0, p0, Lcom/google/common/cache/LocalCache$ManualSerializationProxy;->ticker:Lcom/google/common/base/Ticker;
.line 4610
move-object/from16 v0, p15
iput-object v0, p0, Lcom/google/common/cache/LocalCache$ManualSerializationProxy;->loader:Lcom/google/common/cache/CacheLoader;
.line 4611
return-void
.end method
.method constructor <init>(Lcom/google/common/cache/LocalCache;)V
.locals 19
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/google/common/cache/LocalCache",
"<TK;TV;>;)V"
}
.end annotation
.prologue
.line 4576
move-object/from16 v0, p1
iget-object v4, v0, Lcom/google/common/cache/LocalCache;->keyStrength:Lcom/google/common/cache/LocalCache$Strength;
move-object/from16 v0, p1
iget-object v5, v0, Lcom/google/common/cache/LocalCache;->valueStrength:Lcom/google/common/cache/LocalCache$Strength;
move-object/from16 v0, p1
iget-object v6, v0, Lcom/google/common/cache/LocalCache;->keyEquivalence:Lcom/google/common/base/Equivalence;
move-object/from16 v0, p1
iget-object v7, v0, Lcom/google/common/cache/LocalCache;->valueEquivalence:Lcom/google/common/base/Equivalence;
move-object/from16 v0, p1
iget-wide v8, v0, Lcom/google/common/cache/LocalCache;->expireAfterWriteNanos:J
move-object/from16 v0, p1
iget-wide v10, v0, Lcom/google/common/cache/LocalCache;->expireAfterAccessNanos:J
move-object/from16 v0, p1
iget-wide v12, v0, Lcom/google/common/cache/LocalCache;->maxWeight:J
move-object/from16 v0, p1
iget-object v14, v0, Lcom/google/common/cache/LocalCache;->weigher:Lcom/google/common/cache/Weigher;
move-object/from16 v0, p1
iget v15, v0, Lcom/google/common/cache/LocalCache;->concurrencyLevel:I
move-object/from16 v0, p1
iget-object v0, v0, Lcom/google/common/cache/LocalCache;->removalListener:Lcom/google/common/cache/RemovalListener;
move-object/from16 v16, v0
move-object/from16 v0, p1
iget-object v0, v0, Lcom/google/common/cache/LocalCache;->ticker:Lcom/google/common/base/Ticker;
move-object/from16 v17, v0
move-object/from16 v0, p1
iget-object v0, v0, Lcom/google/common/cache/LocalCache;->defaultLoader:Lcom/google/common/cache/CacheLoader;
move-object/from16 v18, v0
move-object/from16 v3, p0
invoke-direct/range {v3 .. v18}, Lcom/google/common/cache/LocalCache$ManualSerializationProxy;-><init>(Lcom/google/common/cache/LocalCache$Strength;Lcom/google/common/cache/LocalCache$Strength;Lcom/google/common/base/Equivalence;Lcom/google/common/base/Equivalence;JJJLcom/google/common/cache/Weigher;ILcom/google/common/cache/RemovalListener;Lcom/google/common/base/Ticker;Lcom/google/common/cache/CacheLoader;)V
.line 4589
return-void
.end method
.method private readObject(Ljava/io/ObjectInputStream;)V
.locals 1
.prologue
.line 4645
invoke-virtual {p1}, Ljava/io/ObjectInputStream;->defaultReadObject()V
.line 4646
invoke-virtual {p0}, Lcom/google/common/cache/LocalCache$ManualSerializationProxy;->recreateCacheBuilder()Lcom/google/common/cache/CacheBuilder;
move-result-object v0
.line 4647
invoke-virtual {v0}, Lcom/google/common/cache/CacheBuilder;->build()Lcom/google/common/cache/Cache;
move-result-object v0
iput-object v0, p0, Lcom/google/common/cache/LocalCache$ManualSerializationProxy;->delegate:Lcom/google/common/cache/Cache;
.line 4648
return-void
.end method
.method private readResolve()Ljava/lang/Object;
.locals 1
.prologue
.line 4651
iget-object v0, p0, Lcom/google/common/cache/LocalCache$ManualSerializationProxy;->delegate:Lcom/google/common/cache/Cache;
return-object v0
.end method
# virtual methods
.method protected delegate()Lcom/google/common/cache/Cache;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Lcom/google/common/cache/Cache",
"<TK;TV;>;"
}
.end annotation
.prologue
.line 4656
iget-object v0, p0, Lcom/google/common/cache/LocalCache$ManualSerializationProxy;->delegate:Lcom/google/common/cache/Cache;
return-object v0
.end method
.method protected bridge synthetic delegate()Ljava/lang/Object;
.locals 1
.prologue
.line 4556
invoke-virtual {p0}, Lcom/google/common/cache/LocalCache$ManualSerializationProxy;->delegate()Lcom/google/common/cache/Cache;
move-result-object v0
return-object v0
.end method
.method recreateCacheBuilder()Lcom/google/common/cache/CacheBuilder;
.locals 8
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Lcom/google/common/cache/CacheBuilder",
"<TK;TV;>;"
}
.end annotation
.prologue
const-wide/16 v6, 0x0
const-wide/16 v4, -0x1
.line 4614
invoke-static {}, Lcom/google/common/cache/CacheBuilder;->newBuilder()Lcom/google/common/cache/CacheBuilder;
move-result-object v0
iget-object v1, p0, Lcom/google/common/cache/LocalCache$ManualSerializationProxy;->keyStrength:Lcom/google/common/cache/LocalCache$Strength;
invoke-virtual {v0, v1}, Lcom/google/common/cache/CacheBuilder;->setKeyStrength(Lcom/google/common/cache/LocalCache$Strength;)Lcom/google/common/cache/CacheBuilder;
move-result-object v0
iget-object v1, p0, Lcom/google/common/cache/LocalCache$ManualSerializationProxy;->valueStrength:Lcom/google/common/cache/LocalCache$Strength;
invoke-virtual {v0, v1}, Lcom/google/common/cache/CacheBuilder;->setValueStrength(Lcom/google/common/cache/LocalCache$Strength;)Lcom/google/common/cache/CacheBuilder;
move-result-object v0
iget-object v1, p0, Lcom/google/common/cache/LocalCache$ManualSerializationProxy;->keyEquivalence:Lcom/google/common/base/Equivalence;
invoke-virtual {v0, v1}, Lcom/google/common/cache/CacheBuilder;->keyEquivalence(Lcom/google/common/base/Equivalence;)Lcom/google/common/cache/CacheBuilder;
move-result-object v0
iget-object v1, p0, Lcom/google/common/cache/LocalCache$ManualSerializationProxy;->valueEquivalence:Lcom/google/common/base/Equivalence;
invoke-virtual {v0, v1}, Lcom/google/common/cache/CacheBuilder;->valueEquivalence(Lcom/google/common/base/Equivalence;)Lcom/google/common/cache/CacheBuilder;
move-result-object v0
iget v1, p0, Lcom/google/common/cache/LocalCache$ManualSerializationProxy;->concurrencyLevel:I
invoke-virtual {v0, v1}, Lcom/google/common/cache/CacheBuilder;->concurrencyLevel(I)Lcom/google/common/cache/CacheBuilder;
move-result-object v0
iget-object v1, p0, Lcom/google/common/cache/LocalCache$ManualSerializationProxy;->removalListener:Lcom/google/common/cache/RemovalListener;
invoke-virtual {v0, v1}, Lcom/google/common/cache/CacheBuilder;->removalListener(Lcom/google/common/cache/RemovalListener;)Lcom/google/common/cache/CacheBuilder;
move-result-object v0
.line 4621
const/4 v1, 0x0
iput-boolean v1, v0, Lcom/google/common/cache/CacheBuilder;->strictParsing:Z
.line 4622
iget-wide v2, p0, Lcom/google/common/cache/LocalCache$ManualSerializationProxy;->expireAfterWriteNanos:J
cmp-long v1, v2, v6
if-lez v1, :cond_0
.line 4623
iget-wide v2, p0, Lcom/google/common/cache/LocalCache$ManualSerializationProxy;->expireAfterWriteNanos:J
sget-object v1, Ljava/util/concurrent/TimeUnit;->NANOSECONDS:Ljava/util/concurrent/TimeUnit;
invoke-virtual {v0, v2, v3, v1}, Lcom/google/common/cache/CacheBuilder;->expireAfterWrite(JLjava/util/concurrent/TimeUnit;)Lcom/google/common/cache/CacheBuilder;
.line 4625
:cond_0
iget-wide v2, p0, Lcom/google/common/cache/LocalCache$ManualSerializationProxy;->expireAfterAccessNanos:J
cmp-long v1, v2, v6
if-lez v1, :cond_1
.line 4626
iget-wide v2, p0, Lcom/google/common/cache/LocalCache$ManualSerializationProxy;->expireAfterAccessNanos:J
sget-object v1, Ljava/util/concurrent/TimeUnit;->NANOSECONDS:Ljava/util/concurrent/TimeUnit;
invoke-virtual {v0, v2, v3, v1}, Lcom/google/common/cache/CacheBuilder;->expireAfterAccess(JLjava/util/concurrent/TimeUnit;)Lcom/google/common/cache/CacheBuilder;
.line 4628
:cond_1
iget-object v1, p0, Lcom/google/common/cache/LocalCache$ManualSerializationProxy;->weigher:Lcom/google/common/cache/Weigher;
sget-object v2, Lcom/google/common/cache/CacheBuilder$OneWeigher;->INSTANCE:Lcom/google/common/cache/CacheBuilder$OneWeigher;
if-eq v1, v2, :cond_4
.line 4629
iget-object v1, p0, Lcom/google/common/cache/LocalCache$ManualSerializationProxy;->weigher:Lcom/google/common/cache/Weigher;
invoke-virtual {v0, v1}, Lcom/google/common/cache/CacheBuilder;->weigher(Lcom/google/common/cache/Weigher;)Lcom/google/common/cache/CacheBuilder;
.line 4630
iget-wide v2, p0, Lcom/google/common/cache/LocalCache$ManualSerializationProxy;->maxWeight:J
cmp-long v1, v2, v4
if-eqz v1, :cond_2
.line 4631
iget-wide v2, p0, Lcom/google/common/cache/LocalCache$ManualSerializationProxy;->maxWeight:J
invoke-virtual {v0, v2, v3}, Lcom/google/common/cache/CacheBuilder;->maximumWeight(J)Lcom/google/common/cache/CacheBuilder;
.line 4638
:cond_2
:goto_0
iget-object v1, p0, Lcom/google/common/cache/LocalCache$ManualSerializationProxy;->ticker:Lcom/google/common/base/Ticker;
if-eqz v1, :cond_3
.line 4639
iget-object v1, p0, Lcom/google/common/cache/LocalCache$ManualSerializationProxy;->ticker:Lcom/google/common/base/Ticker;
invoke-virtual {v0, v1}, Lcom/google/common/cache/CacheBuilder;->ticker(Lcom/google/common/base/Ticker;)Lcom/google/common/cache/CacheBuilder;
.line 4641
:cond_3
return-object v0
.line 4634
:cond_4
iget-wide v2, p0, Lcom/google/common/cache/LocalCache$ManualSerializationProxy;->maxWeight:J
cmp-long v1, v2, v4
if-eqz v1, :cond_2
.line 4635
iget-wide v2, p0, Lcom/google/common/cache/LocalCache$ManualSerializationProxy;->maxWeight:J
invoke-virtual {v0, v2, v3}, Lcom/google/common/cache/CacheBuilder;->maximumSize(J)Lcom/google/common/cache/CacheBuilder;
goto :goto_0
.end method