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

1041 lines
32 KiB

.class public final Lcom/google/common/cache/CacheBuilderSpec;
.super Ljava/lang/Object;
.source "CacheBuilderSpec.java"
# annotations
.annotation build Lcom/google/common/annotations/Beta;
.end annotation
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/google/common/cache/CacheBuilderSpec$1;,
Lcom/google/common/cache/CacheBuilderSpec$RefreshDurationParser;,
Lcom/google/common/cache/CacheBuilderSpec$WriteDurationParser;,
Lcom/google/common/cache/CacheBuilderSpec$AccessDurationParser;,
Lcom/google/common/cache/CacheBuilderSpec$DurationParser;,
Lcom/google/common/cache/CacheBuilderSpec$RecordStatsParser;,
Lcom/google/common/cache/CacheBuilderSpec$ValueStrengthParser;,
Lcom/google/common/cache/CacheBuilderSpec$KeyStrengthParser;,
Lcom/google/common/cache/CacheBuilderSpec$ConcurrencyLevelParser;,
Lcom/google/common/cache/CacheBuilderSpec$MaximumWeightParser;,
Lcom/google/common/cache/CacheBuilderSpec$MaximumSizeParser;,
Lcom/google/common/cache/CacheBuilderSpec$InitialCapacityParser;,
Lcom/google/common/cache/CacheBuilderSpec$LongParser;,
Lcom/google/common/cache/CacheBuilderSpec$IntegerParser;,
Lcom/google/common/cache/CacheBuilderSpec$ValueParser;
}
.end annotation
# static fields
.field private static final KEYS_SPLITTER:Lcom/google/common/base/Splitter;
.field private static final KEY_VALUE_SPLITTER:Lcom/google/common/base/Splitter;
.field private static final VALUE_PARSERS:Lcom/google/common/collect/ImmutableMap;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lcom/google/common/collect/ImmutableMap",
"<",
"Ljava/lang/String;",
"Lcom/google/common/cache/CacheBuilderSpec$ValueParser;",
">;"
}
.end annotation
.end field
# instance fields
.field accessExpirationDuration:J
.annotation build Lcom/google/common/annotations/VisibleForTesting;
.end annotation
.end field
.field accessExpirationTimeUnit:Ljava/util/concurrent/TimeUnit;
.annotation build Lcom/google/common/annotations/VisibleForTesting;
.end annotation
.end field
.field concurrencyLevel:Ljava/lang/Integer;
.annotation build Lcom/google/common/annotations/VisibleForTesting;
.end annotation
.end field
.field initialCapacity:Ljava/lang/Integer;
.annotation build Lcom/google/common/annotations/VisibleForTesting;
.end annotation
.end field
.field keyStrength:Lcom/google/common/cache/LocalCache$Strength;
.annotation build Lcom/google/common/annotations/VisibleForTesting;
.end annotation
.end field
.field maximumSize:Ljava/lang/Long;
.annotation build Lcom/google/common/annotations/VisibleForTesting;
.end annotation
.end field
.field maximumWeight:Ljava/lang/Long;
.annotation build Lcom/google/common/annotations/VisibleForTesting;
.end annotation
.end field
.field recordStats:Ljava/lang/Boolean;
.annotation build Lcom/google/common/annotations/VisibleForTesting;
.end annotation
.end field
.field refreshDuration:J
.annotation build Lcom/google/common/annotations/VisibleForTesting;
.end annotation
.end field
.field refreshTimeUnit:Ljava/util/concurrent/TimeUnit;
.annotation build Lcom/google/common/annotations/VisibleForTesting;
.end annotation
.end field
.field private final specification:Ljava/lang/String;
.field valueStrength:Lcom/google/common/cache/LocalCache$Strength;
.annotation build Lcom/google/common/annotations/VisibleForTesting;
.end annotation
.end field
.field writeExpirationDuration:J
.annotation build Lcom/google/common/annotations/VisibleForTesting;
.end annotation
.end field
.field writeExpirationTimeUnit:Ljava/util/concurrent/TimeUnit;
.annotation build Lcom/google/common/annotations/VisibleForTesting;
.end annotation
.end field
# direct methods
.method static constructor <clinit>()V
.locals 4
.prologue
.line 89
const/16 v0, 0x2c
invoke-static {v0}, Lcom/google/common/base/Splitter;->on(C)Lcom/google/common/base/Splitter;
move-result-object v0
invoke-virtual {v0}, Lcom/google/common/base/Splitter;->trimResults()Lcom/google/common/base/Splitter;
move-result-object v0
sput-object v0, Lcom/google/common/cache/CacheBuilderSpec;->KEYS_SPLITTER:Lcom/google/common/base/Splitter;
.line 92
const/16 v0, 0x3d
invoke-static {v0}, Lcom/google/common/base/Splitter;->on(C)Lcom/google/common/base/Splitter;
move-result-object v0
invoke-virtual {v0}, Lcom/google/common/base/Splitter;->trimResults()Lcom/google/common/base/Splitter;
move-result-object v0
sput-object v0, Lcom/google/common/cache/CacheBuilderSpec;->KEY_VALUE_SPLITTER:Lcom/google/common/base/Splitter;
.line 95
invoke-static {}, Lcom/google/common/collect/ImmutableMap;->builder()Lcom/google/common/collect/ImmutableMap$Builder;
move-result-object v0
const-string v1, "initialCapacity"
new-instance v2, Lcom/google/common/cache/CacheBuilderSpec$InitialCapacityParser;
invoke-direct {v2}, Lcom/google/common/cache/CacheBuilderSpec$InitialCapacityParser;-><init>()V
invoke-virtual {v0, v1, v2}, Lcom/google/common/collect/ImmutableMap$Builder;->put(Ljava/lang/Object;Ljava/lang/Object;)Lcom/google/common/collect/ImmutableMap$Builder;
move-result-object v0
const-string v1, "maximumSize"
new-instance v2, Lcom/google/common/cache/CacheBuilderSpec$MaximumSizeParser;
invoke-direct {v2}, Lcom/google/common/cache/CacheBuilderSpec$MaximumSizeParser;-><init>()V
invoke-virtual {v0, v1, v2}, Lcom/google/common/collect/ImmutableMap$Builder;->put(Ljava/lang/Object;Ljava/lang/Object;)Lcom/google/common/collect/ImmutableMap$Builder;
move-result-object v0
const-string v1, "maximumWeight"
new-instance v2, Lcom/google/common/cache/CacheBuilderSpec$MaximumWeightParser;
invoke-direct {v2}, Lcom/google/common/cache/CacheBuilderSpec$MaximumWeightParser;-><init>()V
invoke-virtual {v0, v1, v2}, Lcom/google/common/collect/ImmutableMap$Builder;->put(Ljava/lang/Object;Ljava/lang/Object;)Lcom/google/common/collect/ImmutableMap$Builder;
move-result-object v0
const-string v1, "concurrencyLevel"
new-instance v2, Lcom/google/common/cache/CacheBuilderSpec$ConcurrencyLevelParser;
invoke-direct {v2}, Lcom/google/common/cache/CacheBuilderSpec$ConcurrencyLevelParser;-><init>()V
invoke-virtual {v0, v1, v2}, Lcom/google/common/collect/ImmutableMap$Builder;->put(Ljava/lang/Object;Ljava/lang/Object;)Lcom/google/common/collect/ImmutableMap$Builder;
move-result-object v0
const-string v1, "weakKeys"
new-instance v2, Lcom/google/common/cache/CacheBuilderSpec$KeyStrengthParser;
sget-object v3, Lcom/google/common/cache/LocalCache$Strength;->WEAK:Lcom/google/common/cache/LocalCache$Strength;
invoke-direct {v2, v3}, Lcom/google/common/cache/CacheBuilderSpec$KeyStrengthParser;-><init>(Lcom/google/common/cache/LocalCache$Strength;)V
invoke-virtual {v0, v1, v2}, Lcom/google/common/collect/ImmutableMap$Builder;->put(Ljava/lang/Object;Ljava/lang/Object;)Lcom/google/common/collect/ImmutableMap$Builder;
move-result-object v0
const-string v1, "softValues"
new-instance v2, Lcom/google/common/cache/CacheBuilderSpec$ValueStrengthParser;
sget-object v3, Lcom/google/common/cache/LocalCache$Strength;->SOFT:Lcom/google/common/cache/LocalCache$Strength;
invoke-direct {v2, v3}, Lcom/google/common/cache/CacheBuilderSpec$ValueStrengthParser;-><init>(Lcom/google/common/cache/LocalCache$Strength;)V
invoke-virtual {v0, v1, v2}, Lcom/google/common/collect/ImmutableMap$Builder;->put(Ljava/lang/Object;Ljava/lang/Object;)Lcom/google/common/collect/ImmutableMap$Builder;
move-result-object v0
const-string v1, "weakValues"
new-instance v2, Lcom/google/common/cache/CacheBuilderSpec$ValueStrengthParser;
sget-object v3, Lcom/google/common/cache/LocalCache$Strength;->WEAK:Lcom/google/common/cache/LocalCache$Strength;
invoke-direct {v2, v3}, Lcom/google/common/cache/CacheBuilderSpec$ValueStrengthParser;-><init>(Lcom/google/common/cache/LocalCache$Strength;)V
invoke-virtual {v0, v1, v2}, Lcom/google/common/collect/ImmutableMap$Builder;->put(Ljava/lang/Object;Ljava/lang/Object;)Lcom/google/common/collect/ImmutableMap$Builder;
move-result-object v0
const-string v1, "recordStats"
new-instance v2, Lcom/google/common/cache/CacheBuilderSpec$RecordStatsParser;
invoke-direct {v2}, Lcom/google/common/cache/CacheBuilderSpec$RecordStatsParser;-><init>()V
invoke-virtual {v0, v1, v2}, Lcom/google/common/collect/ImmutableMap$Builder;->put(Ljava/lang/Object;Ljava/lang/Object;)Lcom/google/common/collect/ImmutableMap$Builder;
move-result-object v0
const-string v1, "expireAfterAccess"
new-instance v2, Lcom/google/common/cache/CacheBuilderSpec$AccessDurationParser;
invoke-direct {v2}, Lcom/google/common/cache/CacheBuilderSpec$AccessDurationParser;-><init>()V
invoke-virtual {v0, v1, v2}, Lcom/google/common/collect/ImmutableMap$Builder;->put(Ljava/lang/Object;Ljava/lang/Object;)Lcom/google/common/collect/ImmutableMap$Builder;
move-result-object v0
const-string v1, "expireAfterWrite"
new-instance v2, Lcom/google/common/cache/CacheBuilderSpec$WriteDurationParser;
invoke-direct {v2}, Lcom/google/common/cache/CacheBuilderSpec$WriteDurationParser;-><init>()V
invoke-virtual {v0, v1, v2}, Lcom/google/common/collect/ImmutableMap$Builder;->put(Ljava/lang/Object;Ljava/lang/Object;)Lcom/google/common/collect/ImmutableMap$Builder;
move-result-object v0
const-string v1, "refreshAfterWrite"
new-instance v2, Lcom/google/common/cache/CacheBuilderSpec$RefreshDurationParser;
invoke-direct {v2}, Lcom/google/common/cache/CacheBuilderSpec$RefreshDurationParser;-><init>()V
invoke-virtual {v0, v1, v2}, Lcom/google/common/collect/ImmutableMap$Builder;->put(Ljava/lang/Object;Ljava/lang/Object;)Lcom/google/common/collect/ImmutableMap$Builder;
move-result-object v0
const-string v1, "refreshInterval"
new-instance v2, Lcom/google/common/cache/CacheBuilderSpec$RefreshDurationParser;
invoke-direct {v2}, Lcom/google/common/cache/CacheBuilderSpec$RefreshDurationParser;-><init>()V
invoke-virtual {v0, v1, v2}, Lcom/google/common/collect/ImmutableMap$Builder;->put(Ljava/lang/Object;Ljava/lang/Object;)Lcom/google/common/collect/ImmutableMap$Builder;
move-result-object v0
invoke-virtual {v0}, Lcom/google/common/collect/ImmutableMap$Builder;->build()Lcom/google/common/collect/ImmutableMap;
move-result-object v0
sput-object v0, Lcom/google/common/cache/CacheBuilderSpec;->VALUE_PARSERS:Lcom/google/common/collect/ImmutableMap;
return-void
.end method
.method private constructor <init>(Ljava/lang/String;)V
.locals 0
.prologue
.line 127
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 128
iput-object p1, p0, Lcom/google/common/cache/CacheBuilderSpec;->specification:Ljava/lang/String;
.line 129
return-void
.end method
.method public static disableCaching()Lcom/google/common/cache/CacheBuilderSpec;
.locals 1
.prologue
.line 163
const-string v0, "maximumSize=0"
invoke-static {v0}, Lcom/google/common/cache/CacheBuilderSpec;->parse(Ljava/lang/String;)Lcom/google/common/cache/CacheBuilderSpec;
move-result-object v0
return-object v0
.end method
.method private static durationInNanos(JLjava/util/concurrent/TimeUnit;)Ljava/lang/Long;
.locals 2
.param p2 # Ljava/util/concurrent/TimeUnit;
.annotation runtime Ljavax/annotation/Nullable;
.end annotation
.end param
.annotation runtime Ljavax/annotation/Nullable;
.end annotation
.prologue
.line 283
if-nez p2, :cond_0
const/4 v0, 0x0
:goto_0
return-object v0
:cond_0
invoke-virtual {p2, p0, p1}, Ljava/util/concurrent/TimeUnit;->toNanos(J)J
move-result-wide v0
invoke-static {v0, v1}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
move-result-object v0
goto :goto_0
.end method
.method public static parse(Ljava/lang/String;)Lcom/google/common/cache/CacheBuilderSpec;
.locals 10
.prologue
const/4 v4, 0x0
const/4 v3, 0x1
.line 137
new-instance v5, Lcom/google/common/cache/CacheBuilderSpec;
invoke-direct {v5, p0}, Lcom/google/common/cache/CacheBuilderSpec;-><init>(Ljava/lang/String;)V
.line 138
invoke-virtual {p0}, Ljava/lang/String;->length()I
move-result v0
if-eqz v0, :cond_4
.line 139
sget-object v0, Lcom/google/common/cache/CacheBuilderSpec;->KEYS_SPLITTER:Lcom/google/common/base/Splitter;
invoke-virtual {v0, p0}, Lcom/google/common/base/Splitter;->split(Ljava/lang/CharSequence;)Ljava/lang/Iterable;
move-result-object v0
invoke-interface {v0}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
move-result-object v6
:goto_0
invoke-interface {v6}, Ljava/util/Iterator;->hasNext()Z
move-result v0
if-eqz v0, :cond_4
invoke-interface {v6}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v0
check-cast v0, Ljava/lang/String;
.line 140
sget-object v1, Lcom/google/common/cache/CacheBuilderSpec;->KEY_VALUE_SPLITTER:Lcom/google/common/base/Splitter;
invoke-virtual {v1, v0}, Lcom/google/common/base/Splitter;->split(Ljava/lang/CharSequence;)Ljava/lang/Iterable;
move-result-object v1
invoke-static {v1}, Lcom/google/common/collect/ImmutableList;->copyOf(Ljava/lang/Iterable;)Lcom/google/common/collect/ImmutableList;
move-result-object v7
.line 141
invoke-interface {v7}, Ljava/util/List;->isEmpty()Z
move-result v1
if-nez v1, :cond_0
move v1, v3
:goto_1
const-string v2, "blank key-value pair"
invoke-static {v1, v2}, Lcom/google/common/base/Preconditions;->checkArgument(ZLjava/lang/Object;)V
.line 142
invoke-interface {v7}, Ljava/util/List;->size()I
move-result v1
const/4 v2, 0x2
if-gt v1, v2, :cond_1
move v1, v3
:goto_2
const-string v2, "key-value pair %s with more than one equals sign"
new-array v8, v3, [Ljava/lang/Object;
aput-object v0, v8, v4
invoke-static {v1, v2, v8}, Lcom/google/common/base/Preconditions;->checkArgument(ZLjava/lang/String;[Ljava/lang/Object;)V
.line 146
invoke-interface {v7, v4}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object v0
check-cast v0, Ljava/lang/String;
.line 147
sget-object v1, Lcom/google/common/cache/CacheBuilderSpec;->VALUE_PARSERS:Lcom/google/common/collect/ImmutableMap;
invoke-virtual {v1, v0}, Lcom/google/common/collect/ImmutableMap;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v1
check-cast v1, Lcom/google/common/cache/CacheBuilderSpec$ValueParser;
.line 148
if-eqz v1, :cond_2
move v2, v3
:goto_3
const-string v8, "unknown key %s"
new-array v9, v3, [Ljava/lang/Object;
aput-object v0, v9, v4
invoke-static {v2, v8, v9}, Lcom/google/common/base/Preconditions;->checkArgument(ZLjava/lang/String;[Ljava/lang/Object;)V
.line 150
invoke-interface {v7}, Ljava/util/List;->size()I
move-result v2
if-ne v2, v3, :cond_3
const/4 v2, 0x0
.line 151
:goto_4
invoke-interface {v1, v5, v0, v2}, Lcom/google/common/cache/CacheBuilderSpec$ValueParser;->parse(Lcom/google/common/cache/CacheBuilderSpec;Ljava/lang/String;Ljava/lang/String;)V
goto :goto_0
:cond_0
move v1, v4
.line 141
goto :goto_1
:cond_1
move v1, v4
.line 142
goto :goto_2
:cond_2
move v2, v4
.line 148
goto :goto_3
.line 150
:cond_3
invoke-interface {v7, v3}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object v2
check-cast v2, Ljava/lang/String;
goto :goto_4
.line 155
:cond_4
return-object v5
.end method
# virtual methods
.method public equals(Ljava/lang/Object;)Z
.locals 6
.param p1 # Ljava/lang/Object;
.annotation runtime Ljavax/annotation/Nullable;
.end annotation
.end param
.prologue
const/4 v0, 0x1
const/4 v1, 0x0
.line 256
if-ne p0, p1, :cond_1
.line 263
:cond_0
:goto_0
return v0
.line 259
:cond_1
instance-of v2, p1, Lcom/google/common/cache/CacheBuilderSpec;
if-nez v2, :cond_2
move v0, v1
.line 260
goto :goto_0
.line 262
:cond_2
check-cast p1, Lcom/google/common/cache/CacheBuilderSpec;
.line 263
iget-object v2, p0, Lcom/google/common/cache/CacheBuilderSpec;->initialCapacity:Ljava/lang/Integer;
iget-object v3, p1, Lcom/google/common/cache/CacheBuilderSpec;->initialCapacity:Ljava/lang/Integer;
invoke-static {v2, v3}, Lcom/google/common/base/Objects;->equal(Ljava/lang/Object;Ljava/lang/Object;)Z
move-result v2
if-eqz v2, :cond_3
iget-object v2, p0, Lcom/google/common/cache/CacheBuilderSpec;->maximumSize:Ljava/lang/Long;
iget-object v3, p1, Lcom/google/common/cache/CacheBuilderSpec;->maximumSize:Ljava/lang/Long;
invoke-static {v2, v3}, Lcom/google/common/base/Objects;->equal(Ljava/lang/Object;Ljava/lang/Object;)Z
move-result v2
if-eqz v2, :cond_3
iget-object v2, p0, Lcom/google/common/cache/CacheBuilderSpec;->maximumWeight:Ljava/lang/Long;
iget-object v3, p1, Lcom/google/common/cache/CacheBuilderSpec;->maximumWeight:Ljava/lang/Long;
invoke-static {v2, v3}, Lcom/google/common/base/Objects;->equal(Ljava/lang/Object;Ljava/lang/Object;)Z
move-result v2
if-eqz v2, :cond_3
iget-object v2, p0, Lcom/google/common/cache/CacheBuilderSpec;->concurrencyLevel:Ljava/lang/Integer;
iget-object v3, p1, Lcom/google/common/cache/CacheBuilderSpec;->concurrencyLevel:Ljava/lang/Integer;
invoke-static {v2, v3}, Lcom/google/common/base/Objects;->equal(Ljava/lang/Object;Ljava/lang/Object;)Z
move-result v2
if-eqz v2, :cond_3
iget-object v2, p0, Lcom/google/common/cache/CacheBuilderSpec;->keyStrength:Lcom/google/common/cache/LocalCache$Strength;
iget-object v3, p1, Lcom/google/common/cache/CacheBuilderSpec;->keyStrength:Lcom/google/common/cache/LocalCache$Strength;
invoke-static {v2, v3}, Lcom/google/common/base/Objects;->equal(Ljava/lang/Object;Ljava/lang/Object;)Z
move-result v2
if-eqz v2, :cond_3
iget-object v2, p0, Lcom/google/common/cache/CacheBuilderSpec;->valueStrength:Lcom/google/common/cache/LocalCache$Strength;
iget-object v3, p1, Lcom/google/common/cache/CacheBuilderSpec;->valueStrength:Lcom/google/common/cache/LocalCache$Strength;
invoke-static {v2, v3}, Lcom/google/common/base/Objects;->equal(Ljava/lang/Object;Ljava/lang/Object;)Z
move-result v2
if-eqz v2, :cond_3
iget-object v2, p0, Lcom/google/common/cache/CacheBuilderSpec;->recordStats:Ljava/lang/Boolean;
iget-object v3, p1, Lcom/google/common/cache/CacheBuilderSpec;->recordStats:Ljava/lang/Boolean;
invoke-static {v2, v3}, Lcom/google/common/base/Objects;->equal(Ljava/lang/Object;Ljava/lang/Object;)Z
move-result v2
if-eqz v2, :cond_3
iget-wide v2, p0, Lcom/google/common/cache/CacheBuilderSpec;->writeExpirationDuration:J
iget-object v4, p0, Lcom/google/common/cache/CacheBuilderSpec;->writeExpirationTimeUnit:Ljava/util/concurrent/TimeUnit;
invoke-static {v2, v3, v4}, Lcom/google/common/cache/CacheBuilderSpec;->durationInNanos(JLjava/util/concurrent/TimeUnit;)Ljava/lang/Long;
move-result-object v2
iget-wide v4, p1, Lcom/google/common/cache/CacheBuilderSpec;->writeExpirationDuration:J
iget-object v3, p1, Lcom/google/common/cache/CacheBuilderSpec;->writeExpirationTimeUnit:Ljava/util/concurrent/TimeUnit;
invoke-static {v4, v5, v3}, Lcom/google/common/cache/CacheBuilderSpec;->durationInNanos(JLjava/util/concurrent/TimeUnit;)Ljava/lang/Long;
move-result-object v3
invoke-static {v2, v3}, Lcom/google/common/base/Objects;->equal(Ljava/lang/Object;Ljava/lang/Object;)Z
move-result v2
if-eqz v2, :cond_3
iget-wide v2, p0, Lcom/google/common/cache/CacheBuilderSpec;->accessExpirationDuration:J
iget-object v4, p0, Lcom/google/common/cache/CacheBuilderSpec;->accessExpirationTimeUnit:Ljava/util/concurrent/TimeUnit;
invoke-static {v2, v3, v4}, Lcom/google/common/cache/CacheBuilderSpec;->durationInNanos(JLjava/util/concurrent/TimeUnit;)Ljava/lang/Long;
move-result-object v2
iget-wide v4, p1, Lcom/google/common/cache/CacheBuilderSpec;->accessExpirationDuration:J
iget-object v3, p1, Lcom/google/common/cache/CacheBuilderSpec;->accessExpirationTimeUnit:Ljava/util/concurrent/TimeUnit;
invoke-static {v4, v5, v3}, Lcom/google/common/cache/CacheBuilderSpec;->durationInNanos(JLjava/util/concurrent/TimeUnit;)Ljava/lang/Long;
move-result-object v3
invoke-static {v2, v3}, Lcom/google/common/base/Objects;->equal(Ljava/lang/Object;Ljava/lang/Object;)Z
move-result v2
if-eqz v2, :cond_3
iget-wide v2, p0, Lcom/google/common/cache/CacheBuilderSpec;->refreshDuration:J
iget-object v4, p0, Lcom/google/common/cache/CacheBuilderSpec;->refreshTimeUnit:Ljava/util/concurrent/TimeUnit;
invoke-static {v2, v3, v4}, Lcom/google/common/cache/CacheBuilderSpec;->durationInNanos(JLjava/util/concurrent/TimeUnit;)Ljava/lang/Long;
move-result-object v2
iget-wide v4, p1, Lcom/google/common/cache/CacheBuilderSpec;->refreshDuration:J
iget-object v3, p1, Lcom/google/common/cache/CacheBuilderSpec;->refreshTimeUnit:Ljava/util/concurrent/TimeUnit;
invoke-static {v4, v5, v3}, Lcom/google/common/cache/CacheBuilderSpec;->durationInNanos(JLjava/util/concurrent/TimeUnit;)Ljava/lang/Long;
move-result-object v3
invoke-static {v2, v3}, Lcom/google/common/base/Objects;->equal(Ljava/lang/Object;Ljava/lang/Object;)Z
move-result v2
if-nez v2, :cond_0
:cond_3
move v0, v1
goto/16 :goto_0
.end method
.method public hashCode()I
.locals 5
.prologue
.line 241
const/16 v0, 0xa
new-array v0, v0, [Ljava/lang/Object;
const/4 v1, 0x0
iget-object v2, p0, Lcom/google/common/cache/CacheBuilderSpec;->initialCapacity:Ljava/lang/Integer;
aput-object v2, v0, v1
const/4 v1, 0x1
iget-object v2, p0, Lcom/google/common/cache/CacheBuilderSpec;->maximumSize:Ljava/lang/Long;
aput-object v2, v0, v1
const/4 v1, 0x2
iget-object v2, p0, Lcom/google/common/cache/CacheBuilderSpec;->maximumWeight:Ljava/lang/Long;
aput-object v2, v0, v1
const/4 v1, 0x3
iget-object v2, p0, Lcom/google/common/cache/CacheBuilderSpec;->concurrencyLevel:Ljava/lang/Integer;
aput-object v2, v0, v1
const/4 v1, 0x4
iget-object v2, p0, Lcom/google/common/cache/CacheBuilderSpec;->keyStrength:Lcom/google/common/cache/LocalCache$Strength;
aput-object v2, v0, v1
const/4 v1, 0x5
iget-object v2, p0, Lcom/google/common/cache/CacheBuilderSpec;->valueStrength:Lcom/google/common/cache/LocalCache$Strength;
aput-object v2, v0, v1
const/4 v1, 0x6
iget-object v2, p0, Lcom/google/common/cache/CacheBuilderSpec;->recordStats:Ljava/lang/Boolean;
aput-object v2, v0, v1
const/4 v1, 0x7
iget-wide v2, p0, Lcom/google/common/cache/CacheBuilderSpec;->writeExpirationDuration:J
iget-object v4, p0, Lcom/google/common/cache/CacheBuilderSpec;->writeExpirationTimeUnit:Ljava/util/concurrent/TimeUnit;
invoke-static {v2, v3, v4}, Lcom/google/common/cache/CacheBuilderSpec;->durationInNanos(JLjava/util/concurrent/TimeUnit;)Ljava/lang/Long;
move-result-object v2
aput-object v2, v0, v1
const/16 v1, 0x8
iget-wide v2, p0, Lcom/google/common/cache/CacheBuilderSpec;->accessExpirationDuration:J
iget-object v4, p0, Lcom/google/common/cache/CacheBuilderSpec;->accessExpirationTimeUnit:Ljava/util/concurrent/TimeUnit;
invoke-static {v2, v3, v4}, Lcom/google/common/cache/CacheBuilderSpec;->durationInNanos(JLjava/util/concurrent/TimeUnit;)Ljava/lang/Long;
move-result-object v2
aput-object v2, v0, v1
const/16 v1, 0x9
iget-wide v2, p0, Lcom/google/common/cache/CacheBuilderSpec;->refreshDuration:J
iget-object v4, p0, Lcom/google/common/cache/CacheBuilderSpec;->refreshTimeUnit:Ljava/util/concurrent/TimeUnit;
invoke-static {v2, v3, v4}, Lcom/google/common/cache/CacheBuilderSpec;->durationInNanos(JLjava/util/concurrent/TimeUnit;)Ljava/lang/Long;
move-result-object v2
aput-object v2, v0, v1
invoke-static {v0}, Lcom/google/common/base/Objects;->hashCode([Ljava/lang/Object;)I
move-result v0
return v0
.end method
.method toCacheBuilder()Lcom/google/common/cache/CacheBuilder;
.locals 4
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Lcom/google/common/cache/CacheBuilder",
"<",
"Ljava/lang/Object;",
"Ljava/lang/Object;",
">;"
}
.end annotation
.prologue
.line 170
invoke-static {}, Lcom/google/common/cache/CacheBuilder;->newBuilder()Lcom/google/common/cache/CacheBuilder;
move-result-object v0
.line 171
iget-object v1, p0, Lcom/google/common/cache/CacheBuilderSpec;->initialCapacity:Ljava/lang/Integer;
if-eqz v1, :cond_0
.line 172
iget-object v1, p0, Lcom/google/common/cache/CacheBuilderSpec;->initialCapacity:Ljava/lang/Integer;
invoke-virtual {v1}, Ljava/lang/Integer;->intValue()I
move-result v1
invoke-virtual {v0, v1}, Lcom/google/common/cache/CacheBuilder;->initialCapacity(I)Lcom/google/common/cache/CacheBuilder;
.line 174
:cond_0
iget-object v1, p0, Lcom/google/common/cache/CacheBuilderSpec;->maximumSize:Ljava/lang/Long;
if-eqz v1, :cond_1
.line 175
iget-object v1, p0, Lcom/google/common/cache/CacheBuilderSpec;->maximumSize:Ljava/lang/Long;
invoke-virtual {v1}, Ljava/lang/Long;->longValue()J
move-result-wide v2
invoke-virtual {v0, v2, v3}, Lcom/google/common/cache/CacheBuilder;->maximumSize(J)Lcom/google/common/cache/CacheBuilder;
.line 177
:cond_1
iget-object v1, p0, Lcom/google/common/cache/CacheBuilderSpec;->maximumWeight:Ljava/lang/Long;
if-eqz v1, :cond_2
.line 178
iget-object v1, p0, Lcom/google/common/cache/CacheBuilderSpec;->maximumWeight:Ljava/lang/Long;
invoke-virtual {v1}, Ljava/lang/Long;->longValue()J
move-result-wide v2
invoke-virtual {v0, v2, v3}, Lcom/google/common/cache/CacheBuilder;->maximumWeight(J)Lcom/google/common/cache/CacheBuilder;
.line 180
:cond_2
iget-object v1, p0, Lcom/google/common/cache/CacheBuilderSpec;->concurrencyLevel:Ljava/lang/Integer;
if-eqz v1, :cond_3
.line 181
iget-object v1, p0, Lcom/google/common/cache/CacheBuilderSpec;->concurrencyLevel:Ljava/lang/Integer;
invoke-virtual {v1}, Ljava/lang/Integer;->intValue()I
move-result v1
invoke-virtual {v0, v1}, Lcom/google/common/cache/CacheBuilder;->concurrencyLevel(I)Lcom/google/common/cache/CacheBuilder;
.line 183
:cond_3
iget-object v1, p0, Lcom/google/common/cache/CacheBuilderSpec;->keyStrength:Lcom/google/common/cache/LocalCache$Strength;
if-eqz v1, :cond_4
.line 184
sget-object v1, Lcom/google/common/cache/CacheBuilderSpec$1;->$SwitchMap$com$google$common$cache$LocalCache$Strength:[I
iget-object v2, p0, Lcom/google/common/cache/CacheBuilderSpec;->keyStrength:Lcom/google/common/cache/LocalCache$Strength;
invoke-virtual {v2}, Lcom/google/common/cache/LocalCache$Strength;->ordinal()I
move-result v2
aget v1, v1, v2
packed-switch v1, :pswitch_data_0
.line 189
new-instance v0, Ljava/lang/AssertionError;
invoke-direct {v0}, Ljava/lang/AssertionError;-><init>()V
throw v0
.line 186
:pswitch_0
invoke-virtual {v0}, Lcom/google/common/cache/CacheBuilder;->weakKeys()Lcom/google/common/cache/CacheBuilder;
.line 192
:cond_4
iget-object v1, p0, Lcom/google/common/cache/CacheBuilderSpec;->valueStrength:Lcom/google/common/cache/LocalCache$Strength;
if-eqz v1, :cond_5
.line 193
sget-object v1, Lcom/google/common/cache/CacheBuilderSpec$1;->$SwitchMap$com$google$common$cache$LocalCache$Strength:[I
iget-object v2, p0, Lcom/google/common/cache/CacheBuilderSpec;->valueStrength:Lcom/google/common/cache/LocalCache$Strength;
invoke-virtual {v2}, Lcom/google/common/cache/LocalCache$Strength;->ordinal()I
move-result v2
aget v1, v1, v2
packed-switch v1, :pswitch_data_1
.line 201
new-instance v0, Ljava/lang/AssertionError;
invoke-direct {v0}, Ljava/lang/AssertionError;-><init>()V
throw v0
.line 195
:pswitch_1
invoke-virtual {v0}, Lcom/google/common/cache/CacheBuilder;->softValues()Lcom/google/common/cache/CacheBuilder;
.line 204
:cond_5
:goto_0
iget-object v1, p0, Lcom/google/common/cache/CacheBuilderSpec;->recordStats:Ljava/lang/Boolean;
if-eqz v1, :cond_6
iget-object v1, p0, Lcom/google/common/cache/CacheBuilderSpec;->recordStats:Ljava/lang/Boolean;
invoke-virtual {v1}, Ljava/lang/Boolean;->booleanValue()Z
move-result v1
if-eqz v1, :cond_6
.line 205
invoke-virtual {v0}, Lcom/google/common/cache/CacheBuilder;->recordStats()Lcom/google/common/cache/CacheBuilder;
.line 207
:cond_6
iget-object v1, p0, Lcom/google/common/cache/CacheBuilderSpec;->writeExpirationTimeUnit:Ljava/util/concurrent/TimeUnit;
if-eqz v1, :cond_7
.line 208
iget-wide v2, p0, Lcom/google/common/cache/CacheBuilderSpec;->writeExpirationDuration:J
iget-object v1, p0, Lcom/google/common/cache/CacheBuilderSpec;->writeExpirationTimeUnit: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 210
:cond_7
iget-object v1, p0, Lcom/google/common/cache/CacheBuilderSpec;->accessExpirationTimeUnit:Ljava/util/concurrent/TimeUnit;
if-eqz v1, :cond_8
.line 211
iget-wide v2, p0, Lcom/google/common/cache/CacheBuilderSpec;->accessExpirationDuration:J
iget-object v1, p0, Lcom/google/common/cache/CacheBuilderSpec;->accessExpirationTimeUnit: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 213
:cond_8
iget-object v1, p0, Lcom/google/common/cache/CacheBuilderSpec;->refreshTimeUnit:Ljava/util/concurrent/TimeUnit;
if-eqz v1, :cond_9
.line 214
iget-wide v2, p0, Lcom/google/common/cache/CacheBuilderSpec;->refreshDuration:J
iget-object v1, p0, Lcom/google/common/cache/CacheBuilderSpec;->refreshTimeUnit:Ljava/util/concurrent/TimeUnit;
invoke-virtual {v0, v2, v3, v1}, Lcom/google/common/cache/CacheBuilder;->refreshAfterWrite(JLjava/util/concurrent/TimeUnit;)Lcom/google/common/cache/CacheBuilder;
.line 217
:cond_9
return-object v0
.line 198
:pswitch_2
invoke-virtual {v0}, Lcom/google/common/cache/CacheBuilder;->weakValues()Lcom/google/common/cache/CacheBuilder;
goto :goto_0
.line 184
nop
:pswitch_data_0
.packed-switch 0x1
:pswitch_0
.end packed-switch
.line 193
:pswitch_data_1
.packed-switch 0x1
:pswitch_2
:pswitch_1
.end packed-switch
.end method
.method public toParsableString()Ljava/lang/String;
.locals 1
.prologue
.line 227
iget-object v0, p0, Lcom/google/common/cache/CacheBuilderSpec;->specification:Ljava/lang/String;
return-object v0
.end method
.method public toString()Ljava/lang/String;
.locals 2
.prologue
.line 236
invoke-static {p0}, Lcom/google/common/base/Objects;->toStringHelper(Ljava/lang/Object;)Lcom/google/common/base/Objects$ToStringHelper;
move-result-object v0
invoke-virtual {p0}, Lcom/google/common/cache/CacheBuilderSpec;->toParsableString()Ljava/lang/String;
move-result-object v1
invoke-virtual {v0, v1}, Lcom/google/common/base/Objects$ToStringHelper;->addValue(Ljava/lang/Object;)Lcom/google/common/base/Objects$ToStringHelper;
move-result-object v0
invoke-virtual {v0}, Lcom/google/common/base/Objects$ToStringHelper;->toString()Ljava/lang/String;
move-result-object v0
return-object v0
.end method