mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2025-01-09 13:43:22 +00:00
1869 lines
48 KiB
Smali
1869 lines
48 KiB
Smali
.class public final Lcom/google/common/cache/CacheBuilder;
|
|
.super Ljava/lang/Object;
|
|
.source "CacheBuilder.java"
|
|
|
|
|
|
# annotations
|
|
.annotation runtime Lcom/google/common/cache/ElementTypesAreNonnullByDefault;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Lcom/google/common/cache/CacheBuilder$OneWeigher;,
|
|
Lcom/google/common/cache/CacheBuilder$NullListener;
|
|
}
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<K:",
|
|
"Ljava/lang/Object;",
|
|
"V:",
|
|
"Ljava/lang/Object;",
|
|
">",
|
|
"Ljava/lang/Object;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field static final CACHE_STATS_COUNTER:Lcom/google/common/base/Supplier;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Lcom/google/common/base/Supplier<",
|
|
"Lcom/google/common/cache/AbstractCache$StatsCounter;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field private static final DEFAULT_CONCURRENCY_LEVEL:I = 0x4
|
|
|
|
.field private static final DEFAULT_EXPIRATION_NANOS:I = 0x0
|
|
|
|
.field private static final DEFAULT_INITIAL_CAPACITY:I = 0x10
|
|
|
|
.field private static final DEFAULT_REFRESH_NANOS:I = 0x0
|
|
|
|
.field static final EMPTY_STATS:Lcom/google/common/cache/CacheStats;
|
|
|
|
.field static final NULL_STATS_COUNTER:Lcom/google/common/base/Supplier;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Lcom/google/common/base/Supplier<",
|
|
"+",
|
|
"Lcom/google/common/cache/AbstractCache$StatsCounter;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field static final NULL_TICKER:Lcom/google/common/base/Ticker;
|
|
|
|
.field static final UNSET_INT:I = -0x1
|
|
|
|
.field private static final logger:Ljava/util/logging/Logger;
|
|
|
|
|
|
# instance fields
|
|
.field concurrencyLevel:I
|
|
|
|
.field expireAfterAccessNanos:J
|
|
|
|
.field expireAfterWriteNanos:J
|
|
|
|
.field initialCapacity:I
|
|
|
|
.field 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 keyStrength:Lcom/google/common/cache/LocalCache$Strength;
|
|
|
|
.field maximumSize:J
|
|
|
|
.field maximumWeight:J
|
|
|
|
.field refreshNanos:J
|
|
|
|
.field removalListener:Lcom/google/common/cache/RemovalListener;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Lcom/google/common/cache/RemovalListener<",
|
|
"-TK;-TV;>;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field statsCounterSupplier:Lcom/google/common/base/Supplier;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Lcom/google/common/base/Supplier<",
|
|
"+",
|
|
"Lcom/google/common/cache/AbstractCache$StatsCounter;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field strictParsing:Z
|
|
|
|
.field ticker:Lcom/google/common/base/Ticker;
|
|
|
|
.field 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 valueStrength:Lcom/google/common/cache/LocalCache$Strength;
|
|
|
|
.field 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 static constructor <clinit>()V
|
|
.locals 14
|
|
|
|
.line 207
|
|
new-instance v0, Lcom/google/common/cache/CacheBuilder$1;
|
|
|
|
invoke-direct {v0}, Lcom/google/common/cache/CacheBuilder$1;-><init>()V
|
|
|
|
.line 208
|
|
invoke-static {v0}, Lcom/google/common/base/Suppliers;->ofInstance(Ljava/lang/Object;)Lcom/google/common/base/Supplier;
|
|
|
|
move-result-object v0
|
|
|
|
sput-object v0, Lcom/google/common/cache/CacheBuilder;->NULL_STATS_COUNTER:Lcom/google/common/base/Supplier;
|
|
|
|
.line 232
|
|
new-instance v0, Lcom/google/common/cache/CacheStats;
|
|
|
|
const-wide/16 v2, 0x0
|
|
|
|
const-wide/16 v4, 0x0
|
|
|
|
const-wide/16 v6, 0x0
|
|
|
|
const-wide/16 v8, 0x0
|
|
|
|
const-wide/16 v10, 0x0
|
|
|
|
const-wide/16 v12, 0x0
|
|
|
|
move-object v1, v0
|
|
|
|
invoke-direct/range {v1 .. v13}, Lcom/google/common/cache/CacheStats;-><init>(JJJJJJ)V
|
|
|
|
sput-object v0, Lcom/google/common/cache/CacheBuilder;->EMPTY_STATS:Lcom/google/common/cache/CacheStats;
|
|
|
|
.line 234
|
|
new-instance v0, Lcom/google/common/cache/CacheBuilder$2;
|
|
|
|
invoke-direct {v0}, Lcom/google/common/cache/CacheBuilder$2;-><init>()V
|
|
|
|
sput-object v0, Lcom/google/common/cache/CacheBuilder;->CACHE_STATS_COUNTER:Lcom/google/common/base/Supplier;
|
|
|
|
.line 258
|
|
new-instance v0, Lcom/google/common/cache/CacheBuilder$3;
|
|
|
|
invoke-direct {v0}, Lcom/google/common/cache/CacheBuilder$3;-><init>()V
|
|
|
|
sput-object v0, Lcom/google/common/cache/CacheBuilder;->NULL_TICKER:Lcom/google/common/base/Ticker;
|
|
|
|
const-class v0, Lcom/google/common/cache/CacheBuilder;
|
|
|
|
.line 266
|
|
invoke-virtual {v0}, Ljava/lang/Class;->getName()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-static {v0}, Ljava/util/logging/Logger;->getLogger(Ljava/lang/String;)Ljava/util/logging/Logger;
|
|
|
|
move-result-object v0
|
|
|
|
sput-object v0, Lcom/google/common/cache/CacheBuilder;->logger:Ljava/util/logging/Logger;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private constructor <init>()V
|
|
.locals 2
|
|
|
|
.line 298
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
const/4 v0, 0x1
|
|
|
|
iput-boolean v0, p0, Lcom/google/common/cache/CacheBuilder;->strictParsing:Z
|
|
|
|
const/4 v0, -0x1
|
|
|
|
iput v0, p0, Lcom/google/common/cache/CacheBuilder;->initialCapacity:I
|
|
|
|
iput v0, p0, Lcom/google/common/cache/CacheBuilder;->concurrencyLevel:I
|
|
|
|
const-wide/16 v0, -0x1
|
|
|
|
iput-wide v0, p0, Lcom/google/common/cache/CacheBuilder;->maximumSize:J
|
|
|
|
iput-wide v0, p0, Lcom/google/common/cache/CacheBuilder;->maximumWeight:J
|
|
|
|
iput-wide v0, p0, Lcom/google/common/cache/CacheBuilder;->expireAfterWriteNanos:J
|
|
|
|
iput-wide v0, p0, Lcom/google/common/cache/CacheBuilder;->expireAfterAccessNanos:J
|
|
|
|
iput-wide v0, p0, Lcom/google/common/cache/CacheBuilder;->refreshNanos:J
|
|
|
|
sget-object v0, Lcom/google/common/cache/CacheBuilder;->NULL_STATS_COUNTER:Lcom/google/common/base/Supplier;
|
|
|
|
iput-object v0, p0, Lcom/google/common/cache/CacheBuilder;->statsCounterSupplier:Lcom/google/common/base/Supplier;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private checkNonLoadingCache()V
|
|
.locals 4
|
|
|
|
iget-wide v0, p0, Lcom/google/common/cache/CacheBuilder;->refreshNanos:J
|
|
|
|
const-wide/16 v2, -0x1
|
|
|
|
cmp-long p0, v0, v2
|
|
|
|
if-nez p0, :cond_0
|
|
|
|
const/4 p0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 p0, 0x0
|
|
|
|
:goto_0
|
|
const-string v0, "refreshAfterWrite requires a LoadingCache"
|
|
|
|
.line 922
|
|
invoke-static {p0, v0}, Lcom/google/common/base/Preconditions;->checkState(ZLjava/lang/Object;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private checkWeightWithWeigher()V
|
|
.locals 7
|
|
|
|
iget-object v0, p0, Lcom/google/common/cache/CacheBuilder;->weigher:Lcom/google/common/cache/Weigher;
|
|
|
|
const/4 v1, 0x1
|
|
|
|
const/4 v2, 0x0
|
|
|
|
const-wide/16 v3, -0x1
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
iget-wide v5, p0, Lcom/google/common/cache/CacheBuilder;->maximumWeight:J
|
|
|
|
cmp-long p0, v5, v3
|
|
|
|
if-nez p0, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
move v1, v2
|
|
|
|
:goto_0
|
|
const-string p0, "maximumWeight requires weigher"
|
|
|
|
.line 927
|
|
invoke-static {v1, p0}, Lcom/google/common/base/Preconditions;->checkState(ZLjava/lang/Object;)V
|
|
|
|
goto :goto_2
|
|
|
|
:cond_1
|
|
iget-boolean v0, p0, Lcom/google/common/cache/CacheBuilder;->strictParsing:Z
|
|
|
|
if-eqz v0, :cond_3
|
|
|
|
iget-wide v5, p0, Lcom/google/common/cache/CacheBuilder;->maximumWeight:J
|
|
|
|
cmp-long p0, v5, v3
|
|
|
|
if-eqz p0, :cond_2
|
|
|
|
goto :goto_1
|
|
|
|
:cond_2
|
|
move v1, v2
|
|
|
|
:goto_1
|
|
const-string p0, "weigher requires maximumWeight"
|
|
|
|
.line 930
|
|
invoke-static {v1, p0}, Lcom/google/common/base/Preconditions;->checkState(ZLjava/lang/Object;)V
|
|
|
|
goto :goto_2
|
|
|
|
:cond_3
|
|
iget-wide v0, p0, Lcom/google/common/cache/CacheBuilder;->maximumWeight:J
|
|
|
|
cmp-long p0, v0, v3
|
|
|
|
if-nez p0, :cond_4
|
|
|
|
sget-object p0, Lcom/google/common/cache/CacheBuilder;->logger:Ljava/util/logging/Logger;
|
|
|
|
.line 933
|
|
sget-object v0, Ljava/util/logging/Level;->WARNING:Ljava/util/logging/Level;
|
|
|
|
const-string v1, "ignoring weigher specified without maximumWeight"
|
|
|
|
invoke-virtual {p0, v0, v1}, Ljava/util/logging/Logger;->log(Ljava/util/logging/Level;Ljava/lang/String;)V
|
|
|
|
:cond_4
|
|
:goto_2
|
|
return-void
|
|
.end method
|
|
|
|
.method public static from(Lcom/google/common/cache/CacheBuilderSpec;)Lcom/google/common/cache/CacheBuilder;
|
|
.locals 0
|
|
.annotation runtime Lcom/google/errorprone/annotations/CheckReturnValue;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lcom/google/common/cache/CacheBuilderSpec;",
|
|
")",
|
|
"Lcom/google/common/cache/CacheBuilder<",
|
|
"Ljava/lang/Object;",
|
|
"Ljava/lang/Object;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
.line 320
|
|
invoke-virtual {p0}, Lcom/google/common/cache/CacheBuilderSpec;->toCacheBuilder()Lcom/google/common/cache/CacheBuilder;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-virtual {p0}, Lcom/google/common/cache/CacheBuilder;->lenientParsing()Lcom/google/common/cache/CacheBuilder;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static from(Ljava/lang/String;)Lcom/google/common/cache/CacheBuilder;
|
|
.locals 0
|
|
.annotation runtime Lcom/google/errorprone/annotations/CheckReturnValue;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Ljava/lang/String;",
|
|
")",
|
|
"Lcom/google/common/cache/CacheBuilder<",
|
|
"Ljava/lang/Object;",
|
|
"Ljava/lang/Object;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
.line 333
|
|
invoke-static {p0}, Lcom/google/common/cache/CacheBuilderSpec;->parse(Ljava/lang/String;)Lcom/google/common/cache/CacheBuilderSpec;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-static {p0}, Lcom/google/common/cache/CacheBuilder;->from(Lcom/google/common/cache/CacheBuilderSpec;)Lcom/google/common/cache/CacheBuilder;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static newBuilder()Lcom/google/common/cache/CacheBuilder;
|
|
.locals 1
|
|
.annotation runtime Lcom/google/errorprone/annotations/CheckReturnValue;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"()",
|
|
"Lcom/google/common/cache/CacheBuilder<",
|
|
"Ljava/lang/Object;",
|
|
"Ljava/lang/Object;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
.line 309
|
|
new-instance v0, Lcom/google/common/cache/CacheBuilder;
|
|
|
|
invoke-direct {v0}, Lcom/google/common/cache/CacheBuilder;-><init>()V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public build()Lcom/google/common/cache/Cache;
|
|
.locals 1
|
|
.annotation runtime Lcom/google/errorprone/annotations/CheckReturnValue;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<K1:TK;V1:TV;>()",
|
|
"Lcom/google/common/cache/Cache<",
|
|
"TK1;TV1;>;"
|
|
}
|
|
.end annotation
|
|
|
|
.line 916
|
|
invoke-direct {p0}, Lcom/google/common/cache/CacheBuilder;->checkWeightWithWeigher()V
|
|
|
|
.line 917
|
|
invoke-direct {p0}, Lcom/google/common/cache/CacheBuilder;->checkNonLoadingCache()V
|
|
|
|
.line 918
|
|
new-instance v0, Lcom/google/common/cache/LocalCache$LocalManualCache;
|
|
|
|
invoke-direct {v0, p0}, Lcom/google/common/cache/LocalCache$LocalManualCache;-><init>(Lcom/google/common/cache/CacheBuilder;)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public build(Lcom/google/common/cache/CacheLoader;)Lcom/google/common/cache/LoadingCache;
|
|
.locals 1
|
|
.annotation runtime Lcom/google/errorprone/annotations/CheckReturnValue;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<K1:TK;V1:TV;>(",
|
|
"Lcom/google/common/cache/CacheLoader<",
|
|
"-TK1;TV1;>;)",
|
|
"Lcom/google/common/cache/LoadingCache<",
|
|
"TK1;TV1;>;"
|
|
}
|
|
.end annotation
|
|
|
|
.line 898
|
|
invoke-direct {p0}, Lcom/google/common/cache/CacheBuilder;->checkWeightWithWeigher()V
|
|
|
|
.line 899
|
|
new-instance v0, Lcom/google/common/cache/LocalCache$LocalLoadingCache;
|
|
|
|
invoke-direct {v0, p0, p1}, Lcom/google/common/cache/LocalCache$LocalLoadingCache;-><init>(Lcom/google/common/cache/CacheBuilder;Lcom/google/common/cache/CacheLoader;)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public concurrencyLevel(I)Lcom/google/common/cache/CacheBuilder;
|
|
.locals 5
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(I)",
|
|
"Lcom/google/common/cache/CacheBuilder<",
|
|
"TK;TV;>;"
|
|
}
|
|
.end annotation
|
|
|
|
iget v0, p0, Lcom/google/common/cache/CacheBuilder;->concurrencyLevel:I
|
|
|
|
const/4 v1, -0x1
|
|
|
|
const/4 v2, 0x1
|
|
|
|
const/4 v3, 0x0
|
|
|
|
if-ne v0, v1, :cond_0
|
|
|
|
move v1, v2
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
move v1, v3
|
|
|
|
:goto_0
|
|
const-string v4, "concurrency level was already set to %s"
|
|
|
|
.line 444
|
|
invoke-static {v1, v4, v0}, Lcom/google/common/base/Preconditions;->checkState(ZLjava/lang/String;I)V
|
|
|
|
if-lez p1, :cond_1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
move v2, v3
|
|
|
|
.line 448
|
|
:goto_1
|
|
invoke-static {v2}, Lcom/google/common/base/Preconditions;->checkArgument(Z)V
|
|
|
|
iput p1, p0, Lcom/google/common/cache/CacheBuilder;->concurrencyLevel:I
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public expireAfterAccess(JLjava/util/concurrent/TimeUnit;)Lcom/google/common/cache/CacheBuilder;
|
|
.locals 6
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(J",
|
|
"Ljava/util/concurrent/TimeUnit;",
|
|
")",
|
|
"Lcom/google/common/cache/CacheBuilder<",
|
|
"TK;TV;>;"
|
|
}
|
|
.end annotation
|
|
|
|
iget-wide v0, p0, Lcom/google/common/cache/CacheBuilder;->expireAfterAccessNanos:J
|
|
|
|
const-wide/16 v2, -0x1
|
|
|
|
cmp-long v2, v0, v2
|
|
|
|
const/4 v3, 0x1
|
|
|
|
const/4 v4, 0x0
|
|
|
|
if-nez v2, :cond_0
|
|
|
|
move v2, v3
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
move v2, v4
|
|
|
|
:goto_0
|
|
const-string v5, "expireAfterAccess was already set to %s ns"
|
|
|
|
.line 740
|
|
invoke-static {v2, v5, v0, v1}, Lcom/google/common/base/Preconditions;->checkState(ZLjava/lang/String;J)V
|
|
|
|
const-wide/16 v0, 0x0
|
|
|
|
cmp-long v0, p1, v0
|
|
|
|
if-ltz v0, :cond_1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
move v3, v4
|
|
|
|
:goto_1
|
|
const-string v0, "duration cannot be negative: %s %s"
|
|
|
|
.line 744
|
|
invoke-static {v3, v0, p1, p2, p3}, Lcom/google/common/base/Preconditions;->checkArgument(ZLjava/lang/String;JLjava/lang/Object;)V
|
|
|
|
.line 745
|
|
invoke-virtual {p3, p1, p2}, Ljava/util/concurrent/TimeUnit;->toNanos(J)J
|
|
|
|
move-result-wide p1
|
|
|
|
iput-wide p1, p0, Lcom/google/common/cache/CacheBuilder;->expireAfterAccessNanos:J
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public expireAfterWrite(JLjava/util/concurrent/TimeUnit;)Lcom/google/common/cache/CacheBuilder;
|
|
.locals 6
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(J",
|
|
"Ljava/util/concurrent/TimeUnit;",
|
|
")",
|
|
"Lcom/google/common/cache/CacheBuilder<",
|
|
"TK;TV;>;"
|
|
}
|
|
.end annotation
|
|
|
|
iget-wide v0, p0, Lcom/google/common/cache/CacheBuilder;->expireAfterWriteNanos:J
|
|
|
|
const-wide/16 v2, -0x1
|
|
|
|
cmp-long v2, v0, v2
|
|
|
|
const/4 v3, 0x1
|
|
|
|
const/4 v4, 0x0
|
|
|
|
if-nez v2, :cond_0
|
|
|
|
move v2, v3
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
move v2, v4
|
|
|
|
:goto_0
|
|
const-string v5, "expireAfterWrite was already set to %s ns"
|
|
|
|
.line 700
|
|
invoke-static {v2, v5, v0, v1}, Lcom/google/common/base/Preconditions;->checkState(ZLjava/lang/String;J)V
|
|
|
|
const-wide/16 v0, 0x0
|
|
|
|
cmp-long v0, p1, v0
|
|
|
|
if-ltz v0, :cond_1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
move v3, v4
|
|
|
|
:goto_1
|
|
const-string v0, "duration cannot be negative: %s %s"
|
|
|
|
.line 704
|
|
invoke-static {v3, v0, p1, p2, p3}, Lcom/google/common/base/Preconditions;->checkArgument(ZLjava/lang/String;JLjava/lang/Object;)V
|
|
|
|
.line 705
|
|
invoke-virtual {p3, p1, p2}, Ljava/util/concurrent/TimeUnit;->toNanos(J)J
|
|
|
|
move-result-wide p1
|
|
|
|
iput-wide p1, p0, Lcom/google/common/cache/CacheBuilder;->expireAfterWriteNanos:J
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method getConcurrencyLevel()I
|
|
.locals 1
|
|
|
|
iget p0, p0, Lcom/google/common/cache/CacheBuilder;->concurrencyLevel:I
|
|
|
|
const/4 v0, -0x1
|
|
|
|
if-ne p0, v0, :cond_0
|
|
|
|
const/4 p0, 0x4
|
|
|
|
:cond_0
|
|
return p0
|
|
.end method
|
|
|
|
.method getExpireAfterAccessNanos()J
|
|
.locals 4
|
|
|
|
iget-wide v0, p0, Lcom/google/common/cache/CacheBuilder;->expireAfterAccessNanos:J
|
|
|
|
const-wide/16 v2, -0x1
|
|
|
|
cmp-long p0, v0, v2
|
|
|
|
if-nez p0, :cond_0
|
|
|
|
const-wide/16 v0, 0x0
|
|
|
|
:cond_0
|
|
return-wide v0
|
|
.end method
|
|
|
|
.method getExpireAfterWriteNanos()J
|
|
.locals 4
|
|
|
|
iget-wide v0, p0, Lcom/google/common/cache/CacheBuilder;->expireAfterWriteNanos:J
|
|
|
|
const-wide/16 v2, -0x1
|
|
|
|
cmp-long p0, v0, v2
|
|
|
|
if-nez p0, :cond_0
|
|
|
|
const-wide/16 v0, 0x0
|
|
|
|
:cond_0
|
|
return-wide v0
|
|
.end method
|
|
|
|
.method getInitialCapacity()I
|
|
.locals 1
|
|
|
|
iget p0, p0, Lcom/google/common/cache/CacheBuilder;->initialCapacity:I
|
|
|
|
const/4 v0, -0x1
|
|
|
|
if-ne p0, v0, :cond_0
|
|
|
|
const/16 p0, 0x10
|
|
|
|
:cond_0
|
|
return p0
|
|
.end method
|
|
|
|
.method getKeyEquivalence()Lcom/google/common/base/Equivalence;
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"()",
|
|
"Lcom/google/common/base/Equivalence<",
|
|
"Ljava/lang/Object;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
iget-object v0, p0, Lcom/google/common/cache/CacheBuilder;->keyEquivalence:Lcom/google/common/base/Equivalence;
|
|
|
|
.line 363
|
|
invoke-virtual {p0}, Lcom/google/common/cache/CacheBuilder;->getKeyStrength()Lcom/google/common/cache/LocalCache$Strength;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-virtual {p0}, Lcom/google/common/cache/LocalCache$Strength;->defaultEquivalence()Lcom/google/common/base/Equivalence;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-static {v0, p0}, Lcom/google/common/base/MoreObjects;->firstNonNull(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object p0
|
|
|
|
check-cast p0, Lcom/google/common/base/Equivalence;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method getKeyStrength()Lcom/google/common/cache/LocalCache$Strength;
|
|
.locals 1
|
|
|
|
iget-object p0, p0, Lcom/google/common/cache/CacheBuilder;->keyStrength:Lcom/google/common/cache/LocalCache$Strength;
|
|
|
|
.line 619
|
|
sget-object v0, Lcom/google/common/cache/LocalCache$Strength;->STRONG:Lcom/google/common/cache/LocalCache$Strength;
|
|
|
|
invoke-static {p0, v0}, Lcom/google/common/base/MoreObjects;->firstNonNull(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object p0
|
|
|
|
check-cast p0, Lcom/google/common/cache/LocalCache$Strength;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method getMaximumWeight()J
|
|
.locals 4
|
|
|
|
iget-wide v0, p0, Lcom/google/common/cache/CacheBuilder;->expireAfterWriteNanos:J
|
|
|
|
const-wide/16 v2, 0x0
|
|
|
|
cmp-long v0, v0, v2
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
iget-wide v0, p0, Lcom/google/common/cache/CacheBuilder;->expireAfterAccessNanos:J
|
|
|
|
cmp-long v0, v0, v2
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
goto :goto_1
|
|
|
|
:cond_0
|
|
iget-object v0, p0, Lcom/google/common/cache/CacheBuilder;->weigher:Lcom/google/common/cache/Weigher;
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
iget-wide v0, p0, Lcom/google/common/cache/CacheBuilder;->maximumSize:J
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
iget-wide v0, p0, Lcom/google/common/cache/CacheBuilder;->maximumWeight:J
|
|
|
|
:goto_0
|
|
return-wide v0
|
|
|
|
:cond_2
|
|
:goto_1
|
|
return-wide v2
|
|
.end method
|
|
|
|
.method getRefreshNanos()J
|
|
.locals 4
|
|
|
|
iget-wide v0, p0, Lcom/google/common/cache/CacheBuilder;->refreshNanos:J
|
|
|
|
const-wide/16 v2, -0x1
|
|
|
|
cmp-long p0, v0, v2
|
|
|
|
if-nez p0, :cond_0
|
|
|
|
const-wide/16 v0, 0x0
|
|
|
|
:cond_0
|
|
return-wide v0
|
|
.end method
|
|
|
|
.method getRemovalListener()Lcom/google/common/cache/RemovalListener;
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<K1:TK;V1:TV;>()",
|
|
"Lcom/google/common/cache/RemovalListener<",
|
|
"TK1;TV1;>;"
|
|
}
|
|
.end annotation
|
|
|
|
iget-object p0, p0, Lcom/google/common/cache/CacheBuilder;->removalListener:Lcom/google/common/cache/RemovalListener;
|
|
|
|
.line 857
|
|
sget-object v0, Lcom/google/common/cache/CacheBuilder$NullListener;->INSTANCE:Lcom/google/common/cache/CacheBuilder$NullListener;
|
|
|
|
.line 858
|
|
invoke-static {p0, v0}, Lcom/google/common/base/MoreObjects;->firstNonNull(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object p0
|
|
|
|
check-cast p0, Lcom/google/common/cache/RemovalListener;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method getStatsCounterSupplier()Lcom/google/common/base/Supplier;
|
|
.locals 0
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"()",
|
|
"Lcom/google/common/base/Supplier<",
|
|
"+",
|
|
"Lcom/google/common/cache/AbstractCache$StatsCounter;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
iget-object p0, p0, Lcom/google/common/cache/CacheBuilder;->statsCounterSupplier:Lcom/google/common/base/Supplier;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method getTicker(Z)Lcom/google/common/base/Ticker;
|
|
.locals 0
|
|
|
|
iget-object p0, p0, Lcom/google/common/cache/CacheBuilder;->ticker:Lcom/google/common/base/Ticker;
|
|
|
|
if-eqz p0, :cond_0
|
|
|
|
return-object p0
|
|
|
|
:cond_0
|
|
if-eqz p1, :cond_1
|
|
|
|
.line 818
|
|
invoke-static {}, Lcom/google/common/base/Ticker;->systemTicker()Lcom/google/common/base/Ticker;
|
|
|
|
move-result-object p0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
sget-object p0, Lcom/google/common/cache/CacheBuilder;->NULL_TICKER:Lcom/google/common/base/Ticker;
|
|
|
|
:goto_0
|
|
return-object p0
|
|
.end method
|
|
|
|
.method getValueEquivalence()Lcom/google/common/base/Equivalence;
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"()",
|
|
"Lcom/google/common/base/Equivalence<",
|
|
"Ljava/lang/Object;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
iget-object v0, p0, Lcom/google/common/cache/CacheBuilder;->valueEquivalence:Lcom/google/common/base/Equivalence;
|
|
|
|
.line 384
|
|
invoke-virtual {p0}, Lcom/google/common/cache/CacheBuilder;->getValueStrength()Lcom/google/common/cache/LocalCache$Strength;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-virtual {p0}, Lcom/google/common/cache/LocalCache$Strength;->defaultEquivalence()Lcom/google/common/base/Equivalence;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-static {v0, p0}, Lcom/google/common/base/MoreObjects;->firstNonNull(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object p0
|
|
|
|
check-cast p0, Lcom/google/common/base/Equivalence;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method getValueStrength()Lcom/google/common/cache/LocalCache$Strength;
|
|
.locals 1
|
|
|
|
iget-object p0, p0, Lcom/google/common/cache/CacheBuilder;->valueStrength:Lcom/google/common/cache/LocalCache$Strength;
|
|
|
|
.line 676
|
|
sget-object v0, Lcom/google/common/cache/LocalCache$Strength;->STRONG:Lcom/google/common/cache/LocalCache$Strength;
|
|
|
|
invoke-static {p0, v0}, Lcom/google/common/base/MoreObjects;->firstNonNull(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object p0
|
|
|
|
check-cast p0, Lcom/google/common/cache/LocalCache$Strength;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method getWeigher()Lcom/google/common/cache/Weigher;
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<K1:TK;V1:TV;>()",
|
|
"Lcom/google/common/cache/Weigher<",
|
|
"TK1;TV1;>;"
|
|
}
|
|
.end annotation
|
|
|
|
iget-object p0, p0, Lcom/google/common/cache/CacheBuilder;->weigher:Lcom/google/common/cache/Weigher;
|
|
|
|
.line 588
|
|
sget-object v0, Lcom/google/common/cache/CacheBuilder$OneWeigher;->INSTANCE:Lcom/google/common/cache/CacheBuilder$OneWeigher;
|
|
|
|
invoke-static {p0, v0}, Lcom/google/common/base/MoreObjects;->firstNonNull(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object p0
|
|
|
|
check-cast p0, Lcom/google/common/cache/Weigher;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public initialCapacity(I)Lcom/google/common/cache/CacheBuilder;
|
|
.locals 5
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(I)",
|
|
"Lcom/google/common/cache/CacheBuilder<",
|
|
"TK;TV;>;"
|
|
}
|
|
.end annotation
|
|
|
|
iget v0, p0, Lcom/google/common/cache/CacheBuilder;->initialCapacity:I
|
|
|
|
const/4 v1, -0x1
|
|
|
|
const/4 v2, 0x1
|
|
|
|
const/4 v3, 0x0
|
|
|
|
if-ne v0, v1, :cond_0
|
|
|
|
move v1, v2
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
move v1, v3
|
|
|
|
:goto_0
|
|
const-string v4, "initial capacity was already set to %s"
|
|
|
|
.line 399
|
|
invoke-static {v1, v4, v0}, Lcom/google/common/base/Preconditions;->checkState(ZLjava/lang/String;I)V
|
|
|
|
if-ltz p1, :cond_1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
move v2, v3
|
|
|
|
.line 403
|
|
:goto_1
|
|
invoke-static {v2}, Lcom/google/common/base/Preconditions;->checkArgument(Z)V
|
|
|
|
iput p1, p0, Lcom/google/common/cache/CacheBuilder;->initialCapacity:I
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method isRecordingStats()Z
|
|
.locals 1
|
|
|
|
iget-object p0, p0, Lcom/google/common/cache/CacheBuilder;->statsCounterSupplier:Lcom/google/common/base/Supplier;
|
|
|
|
sget-object v0, Lcom/google/common/cache/CacheBuilder;->CACHE_STATS_COUNTER:Lcom/google/common/base/Supplier;
|
|
|
|
if-ne p0, v0, :cond_0
|
|
|
|
const/4 p0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 p0, 0x0
|
|
|
|
:goto_0
|
|
return p0
|
|
.end method
|
|
|
|
.method keyEquivalence(Lcom/google/common/base/Equivalence;)Lcom/google/common/cache/CacheBuilder;
|
|
.locals 3
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lcom/google/common/base/Equivalence<",
|
|
"Ljava/lang/Object;",
|
|
">;)",
|
|
"Lcom/google/common/cache/CacheBuilder<",
|
|
"TK;TV;>;"
|
|
}
|
|
.end annotation
|
|
|
|
iget-object v0, p0, Lcom/google/common/cache/CacheBuilder;->keyEquivalence:Lcom/google/common/base/Equivalence;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
const/4 v1, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v1, 0x0
|
|
|
|
:goto_0
|
|
const-string v2, "key equivalence was already set to %s"
|
|
|
|
.line 357
|
|
invoke-static {v1, v2, v0}, Lcom/google/common/base/Preconditions;->checkState(ZLjava/lang/String;Ljava/lang/Object;)V
|
|
|
|
.line 358
|
|
invoke-static {p1}, Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
|
|
check-cast p1, Lcom/google/common/base/Equivalence;
|
|
|
|
iput-object p1, p0, Lcom/google/common/cache/CacheBuilder;->keyEquivalence:Lcom/google/common/base/Equivalence;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method lenientParsing()Lcom/google/common/cache/CacheBuilder;
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"()",
|
|
"Lcom/google/common/cache/CacheBuilder<",
|
|
"TK;TV;>;"
|
|
}
|
|
.end annotation
|
|
|
|
const/4 v0, 0x0
|
|
|
|
iput-boolean v0, p0, Lcom/google/common/cache/CacheBuilder;->strictParsing:Z
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public maximumSize(J)Lcom/google/common/cache/CacheBuilder;
|
|
.locals 8
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(J)",
|
|
"Lcom/google/common/cache/CacheBuilder<",
|
|
"TK;TV;>;"
|
|
}
|
|
.end annotation
|
|
|
|
iget-wide v0, p0, Lcom/google/common/cache/CacheBuilder;->maximumSize:J
|
|
|
|
const-wide/16 v2, -0x1
|
|
|
|
cmp-long v4, v0, v2
|
|
|
|
const/4 v5, 0x1
|
|
|
|
const/4 v6, 0x0
|
|
|
|
if-nez v4, :cond_0
|
|
|
|
move v4, v5
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
move v4, v6
|
|
|
|
:goto_0
|
|
const-string v7, "maximum size was already set to %s"
|
|
|
|
.line 479
|
|
invoke-static {v4, v7, v0, v1}, Lcom/google/common/base/Preconditions;->checkState(ZLjava/lang/String;J)V
|
|
|
|
iget-wide v0, p0, Lcom/google/common/cache/CacheBuilder;->maximumWeight:J
|
|
|
|
cmp-long v2, v0, v2
|
|
|
|
if-nez v2, :cond_1
|
|
|
|
move v2, v5
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
move v2, v6
|
|
|
|
:goto_1
|
|
const-string v3, "maximum weight was already set to %s"
|
|
|
|
.line 481
|
|
invoke-static {v2, v3, v0, v1}, Lcom/google/common/base/Preconditions;->checkState(ZLjava/lang/String;J)V
|
|
|
|
iget-object v0, p0, Lcom/google/common/cache/CacheBuilder;->weigher:Lcom/google/common/cache/Weigher;
|
|
|
|
if-nez v0, :cond_2
|
|
|
|
move v0, v5
|
|
|
|
goto :goto_2
|
|
|
|
:cond_2
|
|
move v0, v6
|
|
|
|
:goto_2
|
|
const-string v1, "maximum size can not be combined with weigher"
|
|
|
|
.line 485
|
|
invoke-static {v0, v1}, Lcom/google/common/base/Preconditions;->checkState(ZLjava/lang/Object;)V
|
|
|
|
const-wide/16 v0, 0x0
|
|
|
|
cmp-long v0, p1, v0
|
|
|
|
if-ltz v0, :cond_3
|
|
|
|
goto :goto_3
|
|
|
|
:cond_3
|
|
move v5, v6
|
|
|
|
:goto_3
|
|
const-string v0, "maximum size must not be negative"
|
|
|
|
.line 486
|
|
invoke-static {v5, v0}, Lcom/google/common/base/Preconditions;->checkArgument(ZLjava/lang/Object;)V
|
|
|
|
iput-wide p1, p0, Lcom/google/common/cache/CacheBuilder;->maximumSize:J
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public maximumWeight(J)Lcom/google/common/cache/CacheBuilder;
|
|
.locals 8
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(J)",
|
|
"Lcom/google/common/cache/CacheBuilder<",
|
|
"TK;TV;>;"
|
|
}
|
|
.end annotation
|
|
|
|
iget-wide v0, p0, Lcom/google/common/cache/CacheBuilder;->maximumWeight:J
|
|
|
|
const-wide/16 v2, -0x1
|
|
|
|
cmp-long v4, v0, v2
|
|
|
|
const/4 v5, 0x1
|
|
|
|
const/4 v6, 0x0
|
|
|
|
if-nez v4, :cond_0
|
|
|
|
move v4, v5
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
move v4, v6
|
|
|
|
:goto_0
|
|
const-string v7, "maximum weight was already set to %s"
|
|
|
|
.line 520
|
|
invoke-static {v4, v7, v0, v1}, Lcom/google/common/base/Preconditions;->checkState(ZLjava/lang/String;J)V
|
|
|
|
iget-wide v0, p0, Lcom/google/common/cache/CacheBuilder;->maximumSize:J
|
|
|
|
cmp-long v2, v0, v2
|
|
|
|
if-nez v2, :cond_1
|
|
|
|
move v2, v5
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
move v2, v6
|
|
|
|
:goto_1
|
|
const-string v3, "maximum size was already set to %s"
|
|
|
|
.line 524
|
|
invoke-static {v2, v3, v0, v1}, Lcom/google/common/base/Preconditions;->checkState(ZLjava/lang/String;J)V
|
|
|
|
const-wide/16 v0, 0x0
|
|
|
|
cmp-long v0, p1, v0
|
|
|
|
if-ltz v0, :cond_2
|
|
|
|
goto :goto_2
|
|
|
|
:cond_2
|
|
move v5, v6
|
|
|
|
:goto_2
|
|
const-string v0, "maximum weight must not be negative"
|
|
|
|
.line 526
|
|
invoke-static {v5, v0}, Lcom/google/common/base/Preconditions;->checkArgument(ZLjava/lang/Object;)V
|
|
|
|
iput-wide p1, p0, Lcom/google/common/cache/CacheBuilder;->maximumWeight:J
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public recordStats()Lcom/google/common/cache/CacheBuilder;
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"()",
|
|
"Lcom/google/common/cache/CacheBuilder<",
|
|
"TK;TV;>;"
|
|
}
|
|
.end annotation
|
|
|
|
sget-object v0, Lcom/google/common/cache/CacheBuilder;->CACHE_STATS_COUNTER:Lcom/google/common/base/Supplier;
|
|
|
|
iput-object v0, p0, Lcom/google/common/cache/CacheBuilder;->statsCounterSupplier:Lcom/google/common/base/Supplier;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public refreshAfterWrite(JLjava/util/concurrent/TimeUnit;)Lcom/google/common/cache/CacheBuilder;
|
|
.locals 6
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(J",
|
|
"Ljava/util/concurrent/TimeUnit;",
|
|
")",
|
|
"Lcom/google/common/cache/CacheBuilder<",
|
|
"TK;TV;>;"
|
|
}
|
|
.end annotation
|
|
|
|
.line 786
|
|
invoke-static {p3}, Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
iget-wide v0, p0, Lcom/google/common/cache/CacheBuilder;->refreshNanos:J
|
|
|
|
const-wide/16 v2, -0x1
|
|
|
|
cmp-long v2, v0, v2
|
|
|
|
const/4 v3, 0x1
|
|
|
|
const/4 v4, 0x0
|
|
|
|
if-nez v2, :cond_0
|
|
|
|
move v2, v3
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
move v2, v4
|
|
|
|
:goto_0
|
|
const-string v5, "refresh was already set to %s ns"
|
|
|
|
.line 787
|
|
invoke-static {v2, v5, v0, v1}, Lcom/google/common/base/Preconditions;->checkState(ZLjava/lang/String;J)V
|
|
|
|
const-wide/16 v0, 0x0
|
|
|
|
cmp-long v0, p1, v0
|
|
|
|
if-lez v0, :cond_1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
move v3, v4
|
|
|
|
:goto_1
|
|
const-string v0, "duration must be positive: %s %s"
|
|
|
|
.line 788
|
|
invoke-static {v3, v0, p1, p2, p3}, Lcom/google/common/base/Preconditions;->checkArgument(ZLjava/lang/String;JLjava/lang/Object;)V
|
|
|
|
.line 789
|
|
invoke-virtual {p3, p1, p2}, Ljava/util/concurrent/TimeUnit;->toNanos(J)J
|
|
|
|
move-result-wide p1
|
|
|
|
iput-wide p1, p0, Lcom/google/common/cache/CacheBuilder;->refreshNanos:J
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public removalListener(Lcom/google/common/cache/RemovalListener;)Lcom/google/common/cache/CacheBuilder;
|
|
.locals 1
|
|
.annotation runtime Lcom/google/errorprone/annotations/CheckReturnValue;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<K1:TK;V1:TV;>(",
|
|
"Lcom/google/common/cache/RemovalListener<",
|
|
"-TK1;-TV1;>;)",
|
|
"Lcom/google/common/cache/CacheBuilder<",
|
|
"TK1;TV1;>;"
|
|
}
|
|
.end annotation
|
|
|
|
iget-object v0, p0, Lcom/google/common/cache/CacheBuilder;->removalListener:Lcom/google/common/cache/RemovalListener;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
.line 845
|
|
:goto_0
|
|
invoke-static {v0}, Lcom/google/common/base/Preconditions;->checkState(Z)V
|
|
|
|
.line 850
|
|
invoke-static {p1}, Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
|
|
check-cast p1, Lcom/google/common/cache/RemovalListener;
|
|
|
|
iput-object p1, p0, Lcom/google/common/cache/CacheBuilder;->removalListener:Lcom/google/common/cache/RemovalListener;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method setKeyStrength(Lcom/google/common/cache/LocalCache$Strength;)Lcom/google/common/cache/CacheBuilder;
|
|
.locals 3
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lcom/google/common/cache/LocalCache$Strength;",
|
|
")",
|
|
"Lcom/google/common/cache/CacheBuilder<",
|
|
"TK;TV;>;"
|
|
}
|
|
.end annotation
|
|
|
|
iget-object v0, p0, Lcom/google/common/cache/CacheBuilder;->keyStrength:Lcom/google/common/cache/LocalCache$Strength;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
const/4 v1, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v1, 0x0
|
|
|
|
:goto_0
|
|
const-string v2, "Key strength was already set to %s"
|
|
|
|
.line 613
|
|
invoke-static {v1, v2, v0}, Lcom/google/common/base/Preconditions;->checkState(ZLjava/lang/String;Ljava/lang/Object;)V
|
|
|
|
.line 614
|
|
invoke-static {p1}, Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
|
|
check-cast p1, Lcom/google/common/cache/LocalCache$Strength;
|
|
|
|
iput-object p1, p0, Lcom/google/common/cache/CacheBuilder;->keyStrength:Lcom/google/common/cache/LocalCache$Strength;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method setValueStrength(Lcom/google/common/cache/LocalCache$Strength;)Lcom/google/common/cache/CacheBuilder;
|
|
.locals 3
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lcom/google/common/cache/LocalCache$Strength;",
|
|
")",
|
|
"Lcom/google/common/cache/CacheBuilder<",
|
|
"TK;TV;>;"
|
|
}
|
|
.end annotation
|
|
|
|
iget-object v0, p0, Lcom/google/common/cache/CacheBuilder;->valueStrength:Lcom/google/common/cache/LocalCache$Strength;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
const/4 v1, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v1, 0x0
|
|
|
|
:goto_0
|
|
const-string v2, "Value strength was already set to %s"
|
|
|
|
.line 670
|
|
invoke-static {v1, v2, v0}, Lcom/google/common/base/Preconditions;->checkState(ZLjava/lang/String;Ljava/lang/Object;)V
|
|
|
|
.line 671
|
|
invoke-static {p1}, Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
|
|
check-cast p1, Lcom/google/common/cache/LocalCache$Strength;
|
|
|
|
iput-object p1, p0, Lcom/google/common/cache/CacheBuilder;->valueStrength:Lcom/google/common/cache/LocalCache$Strength;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public softValues()Lcom/google/common/cache/CacheBuilder;
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"()",
|
|
"Lcom/google/common/cache/CacheBuilder<",
|
|
"TK;TV;>;"
|
|
}
|
|
.end annotation
|
|
|
|
.line 666
|
|
sget-object v0, Lcom/google/common/cache/LocalCache$Strength;->SOFT:Lcom/google/common/cache/LocalCache$Strength;
|
|
|
|
invoke-virtual {p0, v0}, Lcom/google/common/cache/CacheBuilder;->setValueStrength(Lcom/google/common/cache/LocalCache$Strength;)Lcom/google/common/cache/CacheBuilder;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public ticker(Lcom/google/common/base/Ticker;)Lcom/google/common/cache/CacheBuilder;
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lcom/google/common/base/Ticker;",
|
|
")",
|
|
"Lcom/google/common/cache/CacheBuilder<",
|
|
"TK;TV;>;"
|
|
}
|
|
.end annotation
|
|
|
|
iget-object v0, p0, Lcom/google/common/cache/CacheBuilder;->ticker:Lcom/google/common/base/Ticker;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
.line 809
|
|
:goto_0
|
|
invoke-static {v0}, Lcom/google/common/base/Preconditions;->checkState(Z)V
|
|
|
|
.line 810
|
|
invoke-static {p1}, Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
|
|
check-cast p1, Lcom/google/common/base/Ticker;
|
|
|
|
iput-object p1, p0, Lcom/google/common/cache/CacheBuilder;->ticker:Lcom/google/common/base/Ticker;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public toString()Ljava/lang/String;
|
|
.locals 8
|
|
|
|
.line 945
|
|
invoke-static {p0}, Lcom/google/common/base/MoreObjects;->toStringHelper(Ljava/lang/Object;)Lcom/google/common/base/MoreObjects$ToStringHelper;
|
|
|
|
move-result-object v0
|
|
|
|
iget v1, p0, Lcom/google/common/cache/CacheBuilder;->initialCapacity:I
|
|
|
|
const/4 v2, -0x1
|
|
|
|
if-eq v1, v2, :cond_0
|
|
|
|
const-string v3, "initialCapacity"
|
|
|
|
.line 947
|
|
invoke-virtual {v0, v3, v1}, Lcom/google/common/base/MoreObjects$ToStringHelper;->add(Ljava/lang/String;I)Lcom/google/common/base/MoreObjects$ToStringHelper;
|
|
|
|
:cond_0
|
|
iget v1, p0, Lcom/google/common/cache/CacheBuilder;->concurrencyLevel:I
|
|
|
|
if-eq v1, v2, :cond_1
|
|
|
|
const-string v2, "concurrencyLevel"
|
|
|
|
.line 950
|
|
invoke-virtual {v0, v2, v1}, Lcom/google/common/base/MoreObjects$ToStringHelper;->add(Ljava/lang/String;I)Lcom/google/common/base/MoreObjects$ToStringHelper;
|
|
|
|
:cond_1
|
|
iget-wide v1, p0, Lcom/google/common/cache/CacheBuilder;->maximumSize:J
|
|
|
|
const-wide/16 v3, -0x1
|
|
|
|
cmp-long v5, v1, v3
|
|
|
|
if-eqz v5, :cond_2
|
|
|
|
const-string v5, "maximumSize"
|
|
|
|
.line 953
|
|
invoke-virtual {v0, v5, v1, v2}, Lcom/google/common/base/MoreObjects$ToStringHelper;->add(Ljava/lang/String;J)Lcom/google/common/base/MoreObjects$ToStringHelper;
|
|
|
|
:cond_2
|
|
iget-wide v1, p0, Lcom/google/common/cache/CacheBuilder;->maximumWeight:J
|
|
|
|
cmp-long v5, v1, v3
|
|
|
|
if-eqz v5, :cond_3
|
|
|
|
const-string v5, "maximumWeight"
|
|
|
|
.line 956
|
|
invoke-virtual {v0, v5, v1, v2}, Lcom/google/common/base/MoreObjects$ToStringHelper;->add(Ljava/lang/String;J)Lcom/google/common/base/MoreObjects$ToStringHelper;
|
|
|
|
:cond_3
|
|
iget-wide v1, p0, Lcom/google/common/cache/CacheBuilder;->expireAfterWriteNanos:J
|
|
|
|
cmp-long v5, v1, v3
|
|
|
|
const-string v6, "ns"
|
|
|
|
const/16 v7, 0x16
|
|
|
|
if-eqz v5, :cond_4
|
|
|
|
.line 959
|
|
new-instance v5, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v5, v7}, Ljava/lang/StringBuilder;-><init>(I)V
|
|
|
|
invoke-virtual {v5, v1, v2}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v1, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
const-string v2, "expireAfterWrite"
|
|
|
|
invoke-virtual {v0, v2, v1}, Lcom/google/common/base/MoreObjects$ToStringHelper;->add(Ljava/lang/String;Ljava/lang/Object;)Lcom/google/common/base/MoreObjects$ToStringHelper;
|
|
|
|
:cond_4
|
|
iget-wide v1, p0, Lcom/google/common/cache/CacheBuilder;->expireAfterAccessNanos:J
|
|
|
|
cmp-long v3, v1, v3
|
|
|
|
if-eqz v3, :cond_5
|
|
|
|
.line 962
|
|
new-instance v3, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v3, v7}, Ljava/lang/StringBuilder;-><init>(I)V
|
|
|
|
invoke-virtual {v3, v1, v2}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v1, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
const-string v2, "expireAfterAccess"
|
|
|
|
invoke-virtual {v0, v2, v1}, Lcom/google/common/base/MoreObjects$ToStringHelper;->add(Ljava/lang/String;Ljava/lang/Object;)Lcom/google/common/base/MoreObjects$ToStringHelper;
|
|
|
|
:cond_5
|
|
iget-object v1, p0, Lcom/google/common/cache/CacheBuilder;->keyStrength:Lcom/google/common/cache/LocalCache$Strength;
|
|
|
|
if-eqz v1, :cond_6
|
|
|
|
.line 965
|
|
invoke-virtual {v1}, Lcom/google/common/cache/LocalCache$Strength;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-static {v1}, Lcom/google/common/base/Ascii;->toLowerCase(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
const-string v2, "keyStrength"
|
|
|
|
invoke-virtual {v0, v2, v1}, Lcom/google/common/base/MoreObjects$ToStringHelper;->add(Ljava/lang/String;Ljava/lang/Object;)Lcom/google/common/base/MoreObjects$ToStringHelper;
|
|
|
|
:cond_6
|
|
iget-object v1, p0, Lcom/google/common/cache/CacheBuilder;->valueStrength:Lcom/google/common/cache/LocalCache$Strength;
|
|
|
|
if-eqz v1, :cond_7
|
|
|
|
.line 968
|
|
invoke-virtual {v1}, Lcom/google/common/cache/LocalCache$Strength;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-static {v1}, Lcom/google/common/base/Ascii;->toLowerCase(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
const-string v2, "valueStrength"
|
|
|
|
invoke-virtual {v0, v2, v1}, Lcom/google/common/base/MoreObjects$ToStringHelper;->add(Ljava/lang/String;Ljava/lang/Object;)Lcom/google/common/base/MoreObjects$ToStringHelper;
|
|
|
|
:cond_7
|
|
iget-object v1, p0, Lcom/google/common/cache/CacheBuilder;->keyEquivalence:Lcom/google/common/base/Equivalence;
|
|
|
|
if-eqz v1, :cond_8
|
|
|
|
const-string v1, "keyEquivalence"
|
|
|
|
.line 971
|
|
invoke-virtual {v0, v1}, Lcom/google/common/base/MoreObjects$ToStringHelper;->addValue(Ljava/lang/Object;)Lcom/google/common/base/MoreObjects$ToStringHelper;
|
|
|
|
:cond_8
|
|
iget-object v1, p0, Lcom/google/common/cache/CacheBuilder;->valueEquivalence:Lcom/google/common/base/Equivalence;
|
|
|
|
if-eqz v1, :cond_9
|
|
|
|
const-string v1, "valueEquivalence"
|
|
|
|
.line 974
|
|
invoke-virtual {v0, v1}, Lcom/google/common/base/MoreObjects$ToStringHelper;->addValue(Ljava/lang/Object;)Lcom/google/common/base/MoreObjects$ToStringHelper;
|
|
|
|
:cond_9
|
|
iget-object p0, p0, Lcom/google/common/cache/CacheBuilder;->removalListener:Lcom/google/common/cache/RemovalListener;
|
|
|
|
if-eqz p0, :cond_a
|
|
|
|
const-string p0, "removalListener"
|
|
|
|
.line 977
|
|
invoke-virtual {v0, p0}, Lcom/google/common/base/MoreObjects$ToStringHelper;->addValue(Ljava/lang/Object;)Lcom/google/common/base/MoreObjects$ToStringHelper;
|
|
|
|
.line 979
|
|
:cond_a
|
|
invoke-virtual {v0}, Lcom/google/common/base/MoreObjects$ToStringHelper;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method valueEquivalence(Lcom/google/common/base/Equivalence;)Lcom/google/common/cache/CacheBuilder;
|
|
.locals 3
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lcom/google/common/base/Equivalence<",
|
|
"Ljava/lang/Object;",
|
|
">;)",
|
|
"Lcom/google/common/cache/CacheBuilder<",
|
|
"TK;TV;>;"
|
|
}
|
|
.end annotation
|
|
|
|
iget-object v0, p0, Lcom/google/common/cache/CacheBuilder;->valueEquivalence:Lcom/google/common/base/Equivalence;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
const/4 v1, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v1, 0x0
|
|
|
|
:goto_0
|
|
const-string v2, "value equivalence was already set to %s"
|
|
|
|
.line 377
|
|
invoke-static {v1, v2, v0}, Lcom/google/common/base/Preconditions;->checkState(ZLjava/lang/String;Ljava/lang/Object;)V
|
|
|
|
.line 379
|
|
invoke-static {p1}, Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
|
|
check-cast p1, Lcom/google/common/base/Equivalence;
|
|
|
|
iput-object p1, p0, Lcom/google/common/cache/CacheBuilder;->valueEquivalence:Lcom/google/common/base/Equivalence;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public weakKeys()Lcom/google/common/cache/CacheBuilder;
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"()",
|
|
"Lcom/google/common/cache/CacheBuilder<",
|
|
"TK;TV;>;"
|
|
}
|
|
.end annotation
|
|
|
|
.line 609
|
|
sget-object v0, Lcom/google/common/cache/LocalCache$Strength;->WEAK:Lcom/google/common/cache/LocalCache$Strength;
|
|
|
|
invoke-virtual {p0, v0}, Lcom/google/common/cache/CacheBuilder;->setKeyStrength(Lcom/google/common/cache/LocalCache$Strength;)Lcom/google/common/cache/CacheBuilder;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public weakValues()Lcom/google/common/cache/CacheBuilder;
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"()",
|
|
"Lcom/google/common/cache/CacheBuilder<",
|
|
"TK;TV;>;"
|
|
}
|
|
.end annotation
|
|
|
|
.line 641
|
|
sget-object v0, Lcom/google/common/cache/LocalCache$Strength;->WEAK:Lcom/google/common/cache/LocalCache$Strength;
|
|
|
|
invoke-virtual {p0, v0}, Lcom/google/common/cache/CacheBuilder;->setValueStrength(Lcom/google/common/cache/LocalCache$Strength;)Lcom/google/common/cache/CacheBuilder;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public weigher(Lcom/google/common/cache/Weigher;)Lcom/google/common/cache/CacheBuilder;
|
|
.locals 7
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<K1:TK;V1:TV;>(",
|
|
"Lcom/google/common/cache/Weigher<",
|
|
"-TK1;-TV1;>;)",
|
|
"Lcom/google/common/cache/CacheBuilder<",
|
|
"TK1;TV1;>;"
|
|
}
|
|
.end annotation
|
|
|
|
iget-object v0, p0, Lcom/google/common/cache/CacheBuilder;->weigher:Lcom/google/common/cache/Weigher;
|
|
|
|
const/4 v1, 0x1
|
|
|
|
const/4 v2, 0x0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
move v0, v1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
move v0, v2
|
|
|
|
.line 563
|
|
:goto_0
|
|
invoke-static {v0}, Lcom/google/common/base/Preconditions;->checkState(Z)V
|
|
|
|
iget-boolean v0, p0, Lcom/google/common/cache/CacheBuilder;->strictParsing:Z
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
iget-wide v3, p0, Lcom/google/common/cache/CacheBuilder;->maximumSize:J
|
|
|
|
const-wide/16 v5, -0x1
|
|
|
|
cmp-long v0, v3, v5
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
move v1, v2
|
|
|
|
:goto_1
|
|
const-string v0, "weigher can not be combined with maximum size"
|
|
|
|
.line 565
|
|
invoke-static {v1, v0, v3, v4}, Lcom/google/common/base/Preconditions;->checkState(ZLjava/lang/String;J)V
|
|
|
|
.line 574
|
|
:cond_2
|
|
invoke-static {p1}, Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
|
|
check-cast p1, Lcom/google/common/cache/Weigher;
|
|
|
|
iput-object p1, p0, Lcom/google/common/cache/CacheBuilder;->weigher:Lcom/google/common/cache/Weigher;
|
|
|
|
return-object p0
|
|
.end method
|