b.smali
.class Lcom/cleanmaster/api/b;
.super Ljava/lang/Object;
.source "CMAPIService.java"
# interfaces
.implements Ljava/util/Comparator;
# annotations
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Object;",
"Ljava/util/Comparator",
"<",
"Lcom/cm/plugincluster/softmgr/interfaces/model/AppInfo;",
">;"
}
.end annotation
# instance fields
.field final synthetic a:Lcom/cleanmaster/api/a;
# direct methods
.method constructor <init>(Lcom/cleanmaster/api/a;)V
.registers 2
.prologue
.line 59
iput-object p1, p0, Lcom/cleanmaster/api/b;->a:Lcom/cleanmaster/api/a;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public a(Lcom/cm/plugincluster/softmgr/interfaces/model/AppInfo;Lcom/cm/plugincluster/softmgr/interfaces/model/AppInfo;)I
.registers 5
.prologue
.line 62
invoke-virtual {p1}, Lcom/cm/plugincluster/softmgr/interfaces/model/AppInfo;->getTotalOpenCount()I
move-result v0
invoke-virtual {p2}, Lcom/cm/plugincluster/softmgr/interfaces/model/AppInfo;->getTotalOpenCount()I
move-result v1
if-le v0, v1, :cond_c
.line 63
const/4 v0, -0x1
.line 67
:goto_b
return v0
.line 64
:cond_c
invoke-virtual {p1}, Lcom/cm/plugincluster/softmgr/interfaces/model/AppInfo;->getTotalOpenCount()I
move-result v0
invoke-virtual {p2}, Lcom/cm/plugincluster/softmgr/interfaces/model/AppInfo;->getTotalOpenCount()I
move-result v1
if-ge v0, v1, :cond_18
.line 65
const/4 v0, 0x1
goto :goto_b
.line 67
:cond_18
const/4 v0, 0x0
goto :goto_b
.end method
.method public synthetic compare(Ljava/lang/Object;Ljava/lang/Object;)I
.registers 4
.prologue
.line 59
check-cast p1, Lcom/cm/plugincluster/softmgr/interfaces/model/AppInfo;
check-cast p2, Lcom/cm/plugincluster/softmgr/interfaces/model/AppInfo;
invoke-virtual {p0, p1, p2}, Lcom/cleanmaster/api/b;->a(Lcom/cm/plugincluster/softmgr/interfaces/model/AppInfo;Lcom/cm/plugincluster/softmgr/interfaces/model/AppInfo;)I
move-result v0
return v0
.end method