MapMaker.smali
.class public final Lcom/google/common/collect/MapMaker;
.super Lcom/google/common/collect/GenericMapMaker;
.source "MapMaker.java"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/google/common/collect/MapMaker$b;,
Lcom/google/common/collect/MapMaker$RemovalCause;,
Lcom/google/common/collect/MapMaker$d;,
Lcom/google/common/collect/MapMaker$c;
}
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Lcom/google/common/collect/GenericMapMaker<",
"Ljava/lang/Object;",
"Ljava/lang/Object;",
">;"
}
.end annotation
# instance fields
.field public b:Z
.field public c:I
.field public d:I
.field public e:I
.field public f:Lcom/google/common/collect/MapMakerInternalMap$Strength;
.field public g:Lcom/google/common/collect/MapMakerInternalMap$Strength;
.field public h:J
.field public i:J
.field public j:Lcom/google/common/collect/MapMaker$RemovalCause;
.field public k:Lr3/d;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lr3/d<",
"Ljava/lang/Object;",
">;"
}
.end annotation
.end field
.field public l:Lr3/n;
# direct methods
.method static constructor <clinit>()V
.registers 1
return-void
.end method
.method public constructor <init>()V
.registers 3
invoke-direct {p0}, Lcom/google/common/collect/GenericMapMaker;-><init>()V
const/4 v0, -0x1
iput v0, p0, Lcom/google/common/collect/MapMaker;->c:I
iput v0, p0, Lcom/google/common/collect/MapMaker;->d:I
iput v0, p0, Lcom/google/common/collect/MapMaker;->e:I
const-wide/16 v0, -0x1
iput-wide v0, p0, Lcom/google/common/collect/MapMaker;->h:J
iput-wide v0, p0, Lcom/google/common/collect/MapMaker;->i:J
return-void
.end method
# virtual methods
.method public a(Lcom/google/common/collect/MapMakerInternalMap$Strength;)Lcom/google/common/collect/MapMaker;
.registers 7
iget-object v0, p0, Lcom/google/common/collect/MapMaker;->f:Lcom/google/common/collect/MapMakerInternalMap$Strength;
const/4 v1, 0x0
const/4 v2, 0x1
if-nez v0, :cond_8
const/4 v0, 0x1
goto :goto_9
:cond_8
const/4 v0, 0x0
:goto_9
new-array v3, v2, [Ljava/lang/Object;
iget-object v4, p0, Lcom/google/common/collect/MapMaker;->f:Lcom/google/common/collect/MapMakerInternalMap$Strength;
aput-object v4, v3, v1
const-string v4, "Key strength was already set to %s"
invoke-static {v0, v4, v3}, Lr3/j;->b(ZLjava/lang/String;[Ljava/lang/Object;)V
invoke-static {p1}, Lr3/j;->a(Ljava/lang/Object;)Ljava/lang/Object;
move-object v0, p1
check-cast v0, Lcom/google/common/collect/MapMakerInternalMap$Strength;
iput-object v0, p0, Lcom/google/common/collect/MapMaker;->f:Lcom/google/common/collect/MapMakerInternalMap$Strength;
sget-object v3, Lcom/google/common/collect/MapMakerInternalMap$Strength;->SOFT:Lcom/google/common/collect/MapMakerInternalMap$Strength;
if-eq v0, v3, :cond_21
const/4 v1, 0x1
:cond_21
const-string v0, "Soft keys are not supported"
invoke-static {v1, v0}, Lr3/j;->a(ZLjava/lang/Object;)V
sget-object v0, Lcom/google/common/collect/MapMakerInternalMap$Strength;->STRONG:Lcom/google/common/collect/MapMakerInternalMap$Strength;
if-eq p1, v0, :cond_2c
iput-boolean v2, p0, Lcom/google/common/collect/MapMaker;->b:Z
:cond_2c
return-object p0
.end method
.method public b()I
.registers 3
iget v0, p0, Lcom/google/common/collect/MapMaker;->d:I
const/4 v1, -0x1
if-ne v0, v1, :cond_6
const/4 v0, 0x4
:cond_6
return v0
.end method
.method public c()J
.registers 6
iget-wide v0, p0, Lcom/google/common/collect/MapMaker;->i:J
const-wide/16 v2, -0x1
cmp-long v4, v0, v2
if-nez v4, :cond_a
const-wide/16 v0, 0x0
:cond_a
return-wide v0
.end method
.method public d()J
.registers 6
iget-wide v0, p0, Lcom/google/common/collect/MapMaker;->h:J
const-wide/16 v2, -0x1
cmp-long v4, v0, v2
if-nez v4, :cond_a
const-wide/16 v0, 0x0
:cond_a
return-wide v0
.end method
.method public e()I
.registers 3
iget v0, p0, Lcom/google/common/collect/MapMaker;->c:I
const/4 v1, -0x1
if-ne v0, v1, :cond_7
const/16 v0, 0x10
:cond_7
return v0
.end method
.method public f()Lr3/d;
.registers 3
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Lr3/d<",
"Ljava/lang/Object;",
">;"
}
.end annotation
iget-object v0, p0, Lcom/google/common/collect/MapMaker;->k:Lr3/d;
invoke-virtual {p0}, Lcom/google/common/collect/MapMaker;->g()Lcom/google/common/collect/MapMakerInternalMap$Strength;
move-result-object v1
invoke-virtual {v1}, Lcom/google/common/collect/MapMakerInternalMap$Strength;->defaultEquivalence()Lr3/d;
move-result-object v1
invoke-static {v0, v1}, Lr3/g;->a(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Lr3/d;
return-object v0
.end method
.method public g()Lcom/google/common/collect/MapMakerInternalMap$Strength;
.registers 3
iget-object v0, p0, Lcom/google/common/collect/MapMaker;->f:Lcom/google/common/collect/MapMakerInternalMap$Strength;
sget-object v1, Lcom/google/common/collect/MapMakerInternalMap$Strength;->STRONG:Lcom/google/common/collect/MapMakerInternalMap$Strength;
invoke-static {v0, v1}, Lr3/g;->a(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Lcom/google/common/collect/MapMakerInternalMap$Strength;
return-object v0
.end method
.method public h()Lr3/n;
.registers 3
iget-object v0, p0, Lcom/google/common/collect/MapMaker;->l:Lr3/n;
invoke-static {}, Lr3/n;->b()Lr3/n;
move-result-object v1
invoke-static {v0, v1}, Lr3/g;->a(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Lr3/n;
return-object v0
.end method
.method public i()Lcom/google/common/collect/MapMakerInternalMap$Strength;
.registers 3
iget-object v0, p0, Lcom/google/common/collect/MapMaker;->g:Lcom/google/common/collect/MapMakerInternalMap$Strength;
sget-object v1, Lcom/google/common/collect/MapMakerInternalMap$Strength;->STRONG:Lcom/google/common/collect/MapMakerInternalMap$Strength;
invoke-static {v0, v1}, Lr3/g;->a(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Lcom/google/common/collect/MapMakerInternalMap$Strength;
return-object v0
.end method
.method public j()Ljava/util/concurrent/ConcurrentMap;
.registers 5
.annotation system Ldalvik/annotation/Signature;
value = {
"<K:",
"Ljava/lang/Object;",
"V:",
"Ljava/lang/Object;",
">()",
"Ljava/util/concurrent/ConcurrentMap<",
"TK;TV;>;"
}
.end annotation
iget-boolean v0, p0, Lcom/google/common/collect/MapMaker;->b:Z
if-nez v0, :cond_14
new-instance v0, Ljava/util/concurrent/ConcurrentHashMap;
invoke-virtual {p0}, Lcom/google/common/collect/MapMaker;->e()I
move-result v1
const/high16 v2, 0x3f400000 # 0.75f
invoke-virtual {p0}, Lcom/google/common/collect/MapMaker;->b()I
move-result v3
invoke-direct {v0, v1, v2, v3}, Ljava/util/concurrent/ConcurrentHashMap;-><init>(IFI)V
return-object v0
:cond_14
iget-object v0, p0, Lcom/google/common/collect/MapMaker;->j:Lcom/google/common/collect/MapMaker$RemovalCause;
if-nez v0, :cond_1e
new-instance v0, Lcom/google/common/collect/MapMakerInternalMap;
invoke-direct {v0, p0}, Lcom/google/common/collect/MapMakerInternalMap;-><init>(Lcom/google/common/collect/MapMaker;)V
goto :goto_23
:cond_1e
new-instance v0, Lcom/google/common/collect/MapMaker$b;
invoke-direct {v0, p0}, Lcom/google/common/collect/MapMaker$b;-><init>(Lcom/google/common/collect/MapMaker;)V
:goto_23
return-object v0
.end method
.method public k()Lcom/google/common/collect/MapMaker;
.registers 2
sget-object v0, Lcom/google/common/collect/MapMakerInternalMap$Strength;->WEAK:Lcom/google/common/collect/MapMakerInternalMap$Strength;
invoke-virtual {p0, v0}, Lcom/google/common/collect/MapMaker;->a(Lcom/google/common/collect/MapMakerInternalMap$Strength;)Lcom/google/common/collect/MapMaker;
return-object p0
.end method
.method public toString()Ljava/lang/String;
.registers 9
invoke-static {p0}, Lr3/g;->a(Ljava/lang/Object;)Lr3/g$b;
move-result-object v0
iget v1, p0, Lcom/google/common/collect/MapMaker;->c:I
const/4 v2, -0x1
if-eq v1, v2, :cond_e
const-string v3, "initialCapacity"
invoke-virtual {v0, v3, v1}, Lr3/g$b;->a(Ljava/lang/String;I)Lr3/g$b;
:cond_e
iget v1, p0, Lcom/google/common/collect/MapMaker;->d:I
if-eq v1, v2, :cond_17
const-string v3, "concurrencyLevel"
invoke-virtual {v0, v3, v1}, Lr3/g$b;->a(Ljava/lang/String;I)Lr3/g$b;
:cond_17
iget v1, p0, Lcom/google/common/collect/MapMaker;->e:I
if-eq v1, v2, :cond_20
const-string v2, "maximumSize"
invoke-virtual {v0, v2, v1}, Lr3/g$b;->a(Ljava/lang/String;I)Lr3/g$b;
:cond_20
iget-wide v1, p0, Lcom/google/common/collect/MapMaker;->h:J
const-string v3, "ns"
const/16 v4, 0x16
const-wide/16 v5, -0x1
cmp-long v7, v1, v5
if-eqz v7, :cond_40
new-instance v7, Ljava/lang/StringBuilder;
invoke-direct {v7, v4}, Ljava/lang/StringBuilder;-><init>(I)V
invoke-virtual {v7, v1, v2}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
invoke-virtual {v7, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v7}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v1
const-string v2, "expireAfterWrite"
invoke-virtual {v0, v2, v1}, Lr3/g$b;->a(Ljava/lang/String;Ljava/lang/Object;)Lr3/g$b;
:cond_40
iget-wide v1, p0, Lcom/google/common/collect/MapMaker;->i:J
cmp-long v7, v1, v5
if-eqz v7, :cond_5a
new-instance v5, Ljava/lang/StringBuilder;
invoke-direct {v5, v4}, Ljava/lang/StringBuilder;-><init>(I)V
invoke-virtual {v5, v1, v2}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
invoke-virtual {v5, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v1
const-string v2, "expireAfterAccess"
invoke-virtual {v0, v2, v1}, Lr3/g$b;->a(Ljava/lang/String;Ljava/lang/Object;)Lr3/g$b;
:cond_5a
iget-object v1, p0, Lcom/google/common/collect/MapMaker;->f:Lcom/google/common/collect/MapMakerInternalMap$Strength;
if-eqz v1, :cond_6b
invoke-virtual {v1}, Ljava/lang/Enum;->toString()Ljava/lang/String;
move-result-object v1
invoke-static {v1}, Lr3/a;->a(Ljava/lang/String;)Ljava/lang/String;
move-result-object v1
const-string v2, "keyStrength"
invoke-virtual {v0, v2, v1}, Lr3/g$b;->a(Ljava/lang/String;Ljava/lang/Object;)Lr3/g$b;
:cond_6b
iget-object v1, p0, Lcom/google/common/collect/MapMaker;->g:Lcom/google/common/collect/MapMakerInternalMap$Strength;
if-eqz v1, :cond_7c
invoke-virtual {v1}, Ljava/lang/Enum;->toString()Ljava/lang/String;
move-result-object v1
invoke-static {v1}, Lr3/a;->a(Ljava/lang/String;)Ljava/lang/String;
move-result-object v1
const-string v2, "valueStrength"
invoke-virtual {v0, v2, v1}, Lr3/g$b;->a(Ljava/lang/String;Ljava/lang/Object;)Lr3/g$b;
:cond_7c
iget-object v1, p0, Lcom/google/common/collect/MapMaker;->k:Lr3/d;
if-eqz v1, :cond_85
const-string v1, "keyEquivalence"
invoke-virtual {v0, v1}, Lr3/g$b;->b(Ljava/lang/Object;)Lr3/g$b;
:cond_85
iget-object v1, p0, Lcom/google/common/collect/GenericMapMaker;->a:Lcom/google/common/collect/MapMaker$c;
if-eqz v1, :cond_8e
const-string v1, "removalListener"
invoke-virtual {v0, v1}, Lr3/g$b;->b(Ljava/lang/Object;)Lr3/g$b;
:cond_8e
invoke-virtual {v0}, Lr3/g$b;->toString()Ljava/lang/String;
move-result-object v0
return-object v0
.end method