LevelDBFullPrunedBlockStore$LRUCache.smali
.class public Lorg/bitcoinj/store/LevelDBFullPrunedBlockStore$LRUCache;
.super Ljava/util/LinkedHashMap;
.source "LevelDBFullPrunedBlockStore.java"
# annotations
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/LinkedHashMap",
"<",
"Ljava/nio/ByteBuffer;",
"Lorg/bitcoinj/core/UTXO;",
">;"
}
.end annotation
# static fields
.field private static final serialVersionUID:J = 0x1L
# instance fields
.field private capacity:I
.field final synthetic this$0:Lorg/bitcoinj/store/LevelDBFullPrunedBlockStore;
# direct methods
.method public constructor <init>(Lorg/bitcoinj/store/LevelDBFullPrunedBlockStore;IF)V
.registers 5
.prologue
.line 129
iput-object p1, p0, Lorg/bitcoinj/store/LevelDBFullPrunedBlockStore$LRUCache;->this$0:Lorg/bitcoinj/store/LevelDBFullPrunedBlockStore;
.line 130
const/4 v0, 0x1
invoke-direct {p0, p2, p3, v0}, Ljava/util/LinkedHashMap;-><init>(IFZ)V
.line 131
iput p2, p0, Lorg/bitcoinj/store/LevelDBFullPrunedBlockStore$LRUCache;->capacity:I
.line 132
return-void
.end method
# virtual methods
.method protected removeEldestEntry(Ljava/util/Map$Entry;)Z
.registers 4
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/Map$Entry",
"<",
"Ljava/nio/ByteBuffer;",
"Lorg/bitcoinj/core/UTXO;",
">;)Z"
}
.end annotation
.prologue
.line 136
invoke-virtual {p0}, Lorg/bitcoinj/store/LevelDBFullPrunedBlockStore$LRUCache;->size()I
move-result v0
iget v1, p0, Lorg/bitcoinj/store/LevelDBFullPrunedBlockStore$LRUCache;->capacity:I
if-le v0, v1, :cond_a
const/4 v0, 0x1
:goto_9
return v0
:cond_a
const/4 v0, 0x0
goto :goto_9
.end method