108 lines
2.0 KiB
Smali
108 lines
2.0 KiB
Smali
.class final Lcom/danikula/videocache/file/Files$LastModifiedComparator;
|
|
.super Ljava/lang/Object;
|
|
.source "Files.java"
|
|
|
|
# interfaces
|
|
.implements Ljava/util/Comparator;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Lcom/danikula/videocache/file/Files;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x1a
|
|
name = "LastModifiedComparator"
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/lang/Object;",
|
|
"Ljava/util/Comparator<",
|
|
"Ljava/io/File;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# direct methods
|
|
.method private constructor <init>()V
|
|
.locals 0
|
|
|
|
.line 80
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method synthetic constructor <init>(Lcom/danikula/videocache/file/Files$1;)V
|
|
.locals 0
|
|
|
|
.line 80
|
|
invoke-direct {p0}, Lcom/danikula/videocache/file/Files$LastModifiedComparator;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private compareLong(JJ)I
|
|
.locals 0
|
|
|
|
cmp-long p1, p1, p3
|
|
|
|
if-gez p1, :cond_0
|
|
|
|
const/4 p1, -0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
if-nez p1, :cond_1
|
|
|
|
const/4 p1, 0x0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
const/4 p1, 0x1
|
|
|
|
:goto_0
|
|
return p1
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public compare(Ljava/io/File;Ljava/io/File;)I
|
|
.locals 2
|
|
|
|
.line 84
|
|
invoke-virtual {p1}, Ljava/io/File;->lastModified()J
|
|
|
|
move-result-wide v0
|
|
|
|
invoke-virtual {p2}, Ljava/io/File;->lastModified()J
|
|
|
|
move-result-wide p1
|
|
|
|
invoke-direct {p0, v0, v1, p1, p2}, Lcom/danikula/videocache/file/Files$LastModifiedComparator;->compareLong(JJ)I
|
|
|
|
move-result p1
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method public bridge synthetic compare(Ljava/lang/Object;Ljava/lang/Object;)I
|
|
.locals 0
|
|
|
|
.line 80
|
|
check-cast p1, Ljava/io/File;
|
|
|
|
check-cast p2, Ljava/io/File;
|
|
|
|
invoke-virtual {p0, p1, p2}, Lcom/danikula/videocache/file/Files$LastModifiedComparator;->compare(Ljava/io/File;Ljava/io/File;)I
|
|
|
|
move-result p1
|
|
|
|
return p1
|
|
.end method
|