DefaultEntryEvictionComparatorSupplier$1.smali
.class Lcom/facebook/cache/disk/DefaultEntryEvictionComparatorSupplier$1;
.super Ljava/lang/Object;
.source "DefaultEntryEvictionComparatorSupplier.java"
# interfaces
.implements Lcom/facebook/cache/disk/EntryEvictionComparator;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/facebook/cache/disk/DefaultEntryEvictionComparatorSupplier;->get()Lcom/facebook/cache/disk/EntryEvictionComparator;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x0
name = null
.end annotation
# instance fields
.field final synthetic this$0:Lcom/facebook/cache/disk/DefaultEntryEvictionComparatorSupplier;
# direct methods
.method constructor <init>(Lcom/facebook/cache/disk/DefaultEntryEvictionComparatorSupplier;)V
.registers 2
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x8010
}
names = {
"this$0"
}
.end annotation
.line 18
iput-object p1, p0, Lcom/facebook/cache/disk/DefaultEntryEvictionComparatorSupplier$1;->this$0:Lcom/facebook/cache/disk/DefaultEntryEvictionComparatorSupplier;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public compare(Lcom/facebook/cache/disk/DiskStorage$Entry;Lcom/facebook/cache/disk/DiskStorage$Entry;)I
.registers 6
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x0,
0x0
}
names = {
"e1",
"e2"
}
.end annotation
.line 21
invoke-interface {p1}, Lcom/facebook/cache/disk/DiskStorage$Entry;->getTimestamp()J
move-result-wide v0
.line 22
invoke-interface {p2}, Lcom/facebook/cache/disk/DiskStorage$Entry;->getTimestamp()J
move-result-wide p1
cmp-long v2, v0, p1
if-gez v2, :cond_e
const/4 p1, -0x1
goto :goto_15
:cond_e
cmp-long p1, p1, v0
if-nez p1, :cond_14
const/4 p1, 0x0
goto :goto_15
:cond_14
const/4 p1, 0x1
:goto_15
return p1
.end method
.method public bridge synthetic compare(Ljava/lang/Object;Ljava/lang/Object;)I
.registers 3
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x1000,
0x1000
}
names = {
"e1",
"e2"
}
.end annotation
.line 18
check-cast p1, Lcom/facebook/cache/disk/DiskStorage$Entry;
check-cast p2, Lcom/facebook/cache/disk/DiskStorage$Entry;
invoke-virtual {p0, p1, p2}, Lcom/facebook/cache/disk/DefaultEntryEvictionComparatorSupplier$1;->compare(Lcom/facebook/cache/disk/DiskStorage$Entry;Lcom/facebook/cache/disk/DiskStorage$Entry;)I
move-result p1
return p1
.end method