.class Lcom/moji/mjweather/weather/control/WeatherIndexViewControl$1$1;
.super Ljava/lang/Object;
.source "WeatherIndexViewControl.java"

# interfaces
.implements Ljava/util/Comparator;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/moji/mjweather/weather/control/WeatherIndexViewControl$1;->a(Ljava/util/List;Ljava/lang/String;)V
.end annotation

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

.annotation system Ldalvik/annotation/Signature;
    value = {
        "Ljava/lang/Object;",
        "Ljava/util/Comparator<",
        "Lcom/moji/mjad/common/control/CommonAdControl;",
        ">;"
    }
.end annotation


# instance fields
.field final synthetic a:Lcom/moji/mjweather/weather/control/WeatherIndexViewControl$1;


# direct methods
.method constructor <init>(Lcom/moji/mjweather/weather/control/WeatherIndexViewControl$1;)V
    .locals 0

    .line 204
    iput-object p1, p0, Lcom/moji/mjweather/weather/control/WeatherIndexViewControl$1$1;->a:Lcom/moji/mjweather/weather/control/WeatherIndexViewControl$1;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public a(Lcom/moji/mjad/common/control/CommonAdControl;Lcom/moji/mjad/common/control/CommonAdControl;)I
    .locals 2

    if-eqz p1, :cond_2

    if-eqz p2, :cond_2

    .line 207
    invoke-virtual {p1}, Lcom/moji/mjad/common/control/CommonAdControl;->getAdInfo()Lcom/moji/mjad/base/data/MojiClickData;

    move-result-object v0

    if-eqz v0, :cond_2

    invoke-virtual {p2}, Lcom/moji/mjad/common/control/CommonAdControl;->getAdInfo()Lcom/moji/mjad/base/data/MojiClickData;

    move-result-object v0

    if-eqz v0, :cond_2

    .line 208
    invoke-virtual {p1}, Lcom/moji/mjad/common/control/CommonAdControl;->getAdInfo()Lcom/moji/mjad/base/data/MojiClickData;

    move-result-object v0

    check-cast v0, Lcom/moji/mjad/common/data/AdCommon;

    iget v0, v0, Lcom/moji/mjad/common/data/AdCommon;->indexType:I

    const/4 v1, 0x1

    if-ne v0, v1, :cond_0

    invoke-virtual {p2}, Lcom/moji/mjad/common/control/CommonAdControl;->getAdInfo()Lcom/moji/mjad/base/data/MojiClickData;

    move-result-object v0

    check-cast v0, Lcom/moji/mjad/common/data/AdCommon;

    iget v0, v0, Lcom/moji/mjad/common/data/AdCommon;->indexType:I

    if-ne v0, v1, :cond_0

    .line 209
    invoke-virtual {p1}, Lcom/moji/mjad/common/control/CommonAdControl;->getAdInfo()Lcom/moji/mjad/base/data/MojiClickData;

    move-result-object p1

    check-cast p1, Lcom/moji/mjad/common/data/AdCommon;

    iget-wide v0, p1, Lcom/moji/mjad/common/data/AdCommon;->index:J

    invoke-virtual {p2}, Lcom/moji/mjad/common/control/CommonAdControl;->getAdInfo()Lcom/moji/mjad/base/data/MojiClickData;

    move-result-object p1

    check-cast p1, Lcom/moji/mjad/common/data/AdCommon;

    iget-wide p1, p1, Lcom/moji/mjad/common/data/AdCommon;->index:J

    sub-long/2addr v0, p1

    long-to-int p1, v0

    return p1

    .line 210
    :cond_0
    invoke-virtual {p1}, Lcom/moji/mjad/common/control/CommonAdControl;->getAdInfo()Lcom/moji/mjad/base/data/MojiClickData;

    move-result-object p1

    check-cast p1, Lcom/moji/mjad/common/data/AdCommon;

    iget p1, p1, Lcom/moji/mjad/common/data/AdCommon;->indexType:I

    if-eq p1, v1, :cond_1

    const/4 p1, -0x1

    return p1

    :cond_1
    return v1

    :cond_2
    const/4 p1, 0x0

    return p1
.end method

.method public synthetic compare(Ljava/lang/Object;Ljava/lang/Object;)I
    .locals 0

    .line 204
    check-cast p1, Lcom/moji/mjad/common/control/CommonAdControl;

    check-cast p2, Lcom/moji/mjad/common/control/CommonAdControl;

    invoke-virtual {p0, p1, p2}, Lcom/moji/mjweather/weather/control/WeatherIndexViewControl$1$1;->a(Lcom/moji/mjad/common/control/CommonAdControl;Lcom/moji/mjad/common/control/CommonAdControl;)I

    move-result p1

    return p1
.end method
