.class Lcom/moji/location/worker/AmapLocationWorker$2;
.super Ljava/lang/Object;
.source "AmapLocationWorker.java"

# interfaces
.implements Ljava/util/Comparator;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/moji/location/worker/AmapLocationWorker;->a(Lcom/moji/location/geo/MJReGeoCodeAddress;Lcom/amap/api/location/AMapLocation;)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/location/geo/MJReGeoCodeRoad;",
        ">;"
    }
.end annotation


# instance fields
.field final synthetic a:Lcom/moji/location/worker/AmapLocationWorker;


# direct methods
.method constructor <init>(Lcom/moji/location/worker/AmapLocationWorker;)V
    .locals 0

    .line 311
    iput-object p1, p0, Lcom/moji/location/worker/AmapLocationWorker$2;->a:Lcom/moji/location/worker/AmapLocationWorker;

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

    return-void
.end method


# virtual methods
.method public a(Lcom/moji/location/geo/MJReGeoCodeRoad;Lcom/moji/location/geo/MJReGeoCodeRoad;)I
    .locals 0

    if-eqz p1, :cond_1

    if-nez p2, :cond_0

    goto :goto_0

    .line 317
    :cond_0
    invoke-virtual {p1}, Lcom/moji/location/geo/MJReGeoCodeRoad;->getDistance()F

    move-result p1

    invoke-virtual {p2}, Lcom/moji/location/geo/MJReGeoCodeRoad;->getDistance()F

    move-result p2

    invoke-static {p1, p2}, Ljava/lang/Float;->compare(FF)I

    move-result p1

    return p1

    :cond_1
    :goto_0
    const/4 p1, 0x0

    return p1
.end method

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

    .line 311
    check-cast p1, Lcom/moji/location/geo/MJReGeoCodeRoad;

    check-cast p2, Lcom/moji/location/geo/MJReGeoCodeRoad;

    invoke-virtual {p0, p1, p2}, Lcom/moji/location/worker/AmapLocationWorker$2;->a(Lcom/moji/location/geo/MJReGeoCodeRoad;Lcom/moji/location/geo/MJReGeoCodeRoad;)I

    move-result p1

    return p1
.end method
