e.smali
.class public Lcom/bumptech/glide/g/e;
.super Ljava/lang/Object;
# annotations
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
"Y:",
"Ljava/lang/Object;",
">",
"Ljava/lang/Object;"
}
.end annotation
# instance fields
.field private final a:Ljava/util/LinkedHashMap;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/LinkedHashMap",
"<TT;TY;>;"
}
.end annotation
.end field
.field private b:I
.field private final c:I
.field private d:I
# direct methods
.method public constructor <init>(I)V
.registers 6
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
new-instance v0, Ljava/util/LinkedHashMap;
const/16 v1, 0x64
const/high16 v2, 0x3f400000 # 0.75f
const/4 v3, 0x1
invoke-direct {v0, v1, v2, v3}, Ljava/util/LinkedHashMap;-><init>(IFZ)V
iput-object v0, p0, Lcom/bumptech/glide/g/e;->a:Ljava/util/LinkedHashMap;
const/4 v0, 0x0
iput v0, p0, Lcom/bumptech/glide/g/e;->d:I
iput p1, p0, Lcom/bumptech/glide/g/e;->c:I
iput p1, p0, Lcom/bumptech/glide/g/e;->b:I
return-void
.end method
.method private c()V
.registers 2
iget v0, p0, Lcom/bumptech/glide/g/e;->b:I
invoke-virtual {p0, v0}, Lcom/bumptech/glide/g/e;->b(I)V
return-void
.end method
# virtual methods
.method protected a(Ljava/lang/Object;)I
.registers 3
.annotation system Ldalvik/annotation/Signature;
value = {
"(TY;)I"
}
.end annotation
const/4 v0, 0x1
return v0
.end method
.method public a()V
.registers 2
const/4 v0, 0x0
invoke-virtual {p0, v0}, Lcom/bumptech/glide/g/e;->b(I)V
return-void
.end method
.method protected a(Ljava/lang/Object;Ljava/lang/Object;)V
.registers 3
.annotation system Ldalvik/annotation/Signature;
value = {
"(TT;TY;)V"
}
.end annotation
return-void
.end method
.method public b()I
.registers 2
iget v0, p0, Lcom/bumptech/glide/g/e;->d:I
return v0
.end method
.method public b(Ljava/lang/Object;)Ljava/lang/Object;
.registers 3
.annotation system Ldalvik/annotation/Signature;
value = {
"(TT;)TY;"
}
.end annotation
iget-object v0, p0, Lcom/bumptech/glide/g/e;->a:Ljava/util/LinkedHashMap;
invoke-virtual {v0, p1}, Ljava/util/LinkedHashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v0
return-object v0
.end method
.method public b(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
.registers 6
.annotation system Ldalvik/annotation/Signature;
value = {
"(TT;TY;)TY;"
}
.end annotation
invoke-virtual {p0, p2}, Lcom/bumptech/glide/g/e;->a(Ljava/lang/Object;)I
move-result v0
iget v1, p0, Lcom/bumptech/glide/g/e;->b:I
if-lt v0, v1, :cond_d
invoke-virtual {p0, p1, p2}, Lcom/bumptech/glide/g/e;->a(Ljava/lang/Object;Ljava/lang/Object;)V
const/4 v0, 0x0
:goto_c
return-object v0
:cond_d
iget-object v0, p0, Lcom/bumptech/glide/g/e;->a:Ljava/util/LinkedHashMap;
invoke-virtual {v0, p1, p2}, Ljava/util/LinkedHashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v0
if-eqz p2, :cond_1e
iget v1, p0, Lcom/bumptech/glide/g/e;->d:I
invoke-virtual {p0, p2}, Lcom/bumptech/glide/g/e;->a(Ljava/lang/Object;)I
move-result v2
add-int/2addr v1, v2
iput v1, p0, Lcom/bumptech/glide/g/e;->d:I
:cond_1e
if-eqz v0, :cond_29
iget v1, p0, Lcom/bumptech/glide/g/e;->d:I
invoke-virtual {p0, v0}, Lcom/bumptech/glide/g/e;->a(Ljava/lang/Object;)I
move-result v2
sub-int/2addr v1, v2
iput v1, p0, Lcom/bumptech/glide/g/e;->d:I
:cond_29
invoke-direct {p0}, Lcom/bumptech/glide/g/e;->c()V
goto :goto_c
.end method
.method protected b(I)V
.registers 6
:goto_0
iget v0, p0, Lcom/bumptech/glide/g/e;->d:I
if-le v0, p1, :cond_2e
iget-object v0, p0, Lcom/bumptech/glide/g/e;->a:Ljava/util/LinkedHashMap;
invoke-virtual {v0}, Ljava/util/LinkedHashMap;->entrySet()Ljava/util/Set;
move-result-object v0
invoke-interface {v0}, Ljava/util/Set;->iterator()Ljava/util/Iterator;
move-result-object v0
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v0
check-cast v0, Ljava/util/Map$Entry;
invoke-interface {v0}, Ljava/util/Map$Entry;->getValue()Ljava/lang/Object;
move-result-object v1
iget v2, p0, Lcom/bumptech/glide/g/e;->d:I
invoke-virtual {p0, v1}, Lcom/bumptech/glide/g/e;->a(Ljava/lang/Object;)I
move-result v3
sub-int/2addr v2, v3
iput v2, p0, Lcom/bumptech/glide/g/e;->d:I
invoke-interface {v0}, Ljava/util/Map$Entry;->getKey()Ljava/lang/Object;
move-result-object v0
iget-object v2, p0, Lcom/bumptech/glide/g/e;->a:Ljava/util/LinkedHashMap;
invoke-virtual {v2, v0}, Ljava/util/LinkedHashMap;->remove(Ljava/lang/Object;)Ljava/lang/Object;
invoke-virtual {p0, v0, v1}, Lcom/bumptech/glide/g/e;->a(Ljava/lang/Object;Ljava/lang/Object;)V
goto :goto_0
:cond_2e
return-void
.end method
.method public c(Ljava/lang/Object;)Ljava/lang/Object;
.registers 5
.annotation system Ldalvik/annotation/Signature;
value = {
"(TT;)TY;"
}
.end annotation
iget-object v0, p0, Lcom/bumptech/glide/g/e;->a:Ljava/util/LinkedHashMap;
invoke-virtual {v0, p1}, Ljava/util/LinkedHashMap;->remove(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v0
if-eqz v0, :cond_11
iget v1, p0, Lcom/bumptech/glide/g/e;->d:I
invoke-virtual {p0, v0}, Lcom/bumptech/glide/g/e;->a(Ljava/lang/Object;)I
move-result v2
sub-int/2addr v1, v2
iput v1, p0, Lcom/bumptech/glide/g/e;->d:I
:cond_11
return-object v0
.end method