SoftCache$1.smali

.class Lorg/apache/commons/jexl3/internal/SoftCache$1;
.super Ljava/util/LinkedHashMap;
.source "SourceFile"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lorg/apache/commons/jexl3/internal/SoftCache;->createCache(I)Ljava/util/Map;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x1
    name = null
.end annotation

.annotation system Ldalvik/annotation/Signature;
    value = {
        "Ljava/util/LinkedHashMap<",
        "TK;TV;>;"
    }
.end annotation


# static fields
.field private static final serialVersionUID:J = 0x1L


# instance fields
.field public final synthetic this$0:Lorg/apache/commons/jexl3/internal/SoftCache;

.field public final synthetic val$cacheSize:I


# direct methods
.method public constructor <init>(Lorg/apache/commons/jexl3/internal/SoftCache;IFZI)V
    .registers 6

    iput-object p1, p0, Lorg/apache/commons/jexl3/internal/SoftCache$1;->this$0:Lorg/apache/commons/jexl3/internal/SoftCache;

    iput p5, p0, Lorg/apache/commons/jexl3/internal/SoftCache$1;->val$cacheSize:I

    invoke-direct {p0, p2, p3, p4}, Ljava/util/LinkedHashMap;-><init>(IFZ)V

    return-void
.end method


# virtual methods
.method public removeEldestEntry(Ljava/util/Map$Entry;)Z
    .registers 3
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/Map$Entry<",
            "TK;TV;>;)Z"
        }
    .end annotation

    invoke-virtual {p0}, Ljava/util/AbstractMap;->size()I

    move-result p1

    iget v0, p0, Lorg/apache/commons/jexl3/internal/SoftCache$1;->val$cacheSize:I

    if-le p1, v0, :cond_a

    const/4 p1, 0x1

    goto :goto_b

    :cond_a
    const/4 p1, 0x0

    :goto_b
    return p1
.end method