Weather/smali_classes2/com/moji/location/geo/MJReGeoCodeQuery.smali
2021-05-10 10:13:34 +02:00

170 lines
3.3 KiB
Smali

.class public Lcom/moji/location/geo/MJReGeoCodeQuery;
.super Ljava/lang/Object;
.source "MJReGeoCodeQuery.java"
# instance fields
.field private a:Lcom/moji/location/geo/MJLatLonPoint;
.field private b:F
# direct methods
.method public constructor <init>(Lcom/moji/location/geo/MJLatLonPoint;F)V
.locals 0
.line 10
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 11
iput-object p1, p0, Lcom/moji/location/geo/MJReGeoCodeQuery;->a:Lcom/moji/location/geo/MJLatLonPoint;
.line 12
iput p2, p0, Lcom/moji/location/geo/MJReGeoCodeQuery;->b:F
return-void
.end method
# virtual methods
.method public a()Lcom/moji/location/geo/MJLatLonPoint;
.locals 1
.line 16
iget-object v0, p0, Lcom/moji/location/geo/MJReGeoCodeQuery;->a:Lcom/moji/location/geo/MJLatLonPoint;
return-object v0
.end method
.method public b()F
.locals 1
.line 24
iget v0, p0, Lcom/moji/location/geo/MJReGeoCodeQuery;->b:F
return v0
.end method
.method public equals(Ljava/lang/Object;)Z
.locals 4
const/4 v0, 0x1
if-ne p0, p1, :cond_0
return v0
:cond_0
const/4 v1, 0x0
if-nez p1, :cond_1
return v1
.line 43
:cond_1
invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
move-result-object v2
invoke-virtual {p1}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
move-result-object v3
if-eq v2, v3, :cond_2
return v1
.line 46
:cond_2
check-cast p1, Lcom/moji/location/geo/MJReGeoCodeQuery;
.line 48
iget-object v2, p0, Lcom/moji/location/geo/MJReGeoCodeQuery;->a:Lcom/moji/location/geo/MJLatLonPoint;
if-nez v2, :cond_3
.line 49
iget-object v2, p1, Lcom/moji/location/geo/MJReGeoCodeQuery;->a:Lcom/moji/location/geo/MJLatLonPoint;
if-eqz v2, :cond_4
return v1
.line 52
:cond_3
iget-object v2, p0, Lcom/moji/location/geo/MJReGeoCodeQuery;->a:Lcom/moji/location/geo/MJLatLonPoint;
iget-object v3, p1, Lcom/moji/location/geo/MJReGeoCodeQuery;->a:Lcom/moji/location/geo/MJLatLonPoint;
invoke-virtual {v2, v3}, Lcom/moji/location/geo/MJLatLonPoint;->equals(Ljava/lang/Object;)Z
move-result v2
if-nez v2, :cond_4
return v1
.line 56
:cond_4
iget v2, p0, Lcom/moji/location/geo/MJReGeoCodeQuery;->b:F
invoke-static {v2}, Ljava/lang/Float;->floatToIntBits(F)I
move-result v2
iget p1, p1, Lcom/moji/location/geo/MJReGeoCodeQuery;->b:F
invoke-static {p1}, Ljava/lang/Float;->floatToIntBits(F)I
move-result p1
if-ne v2, p1, :cond_5
goto :goto_0
:cond_5
const/4 v0, 0x0
:goto_0
return v0
.end method
.method public hashCode()I
.locals 2
.line 33
iget-object v0, p0, Lcom/moji/location/geo/MJReGeoCodeQuery;->a:Lcom/moji/location/geo/MJLatLonPoint;
if-nez v0, :cond_0
const/4 v0, 0x0
goto :goto_0
:cond_0
iget-object v0, p0, Lcom/moji/location/geo/MJReGeoCodeQuery;->a:Lcom/moji/location/geo/MJLatLonPoint;
invoke-virtual {v0}, Lcom/moji/location/geo/MJLatLonPoint;->hashCode()I
move-result v0
:goto_0
const/16 v1, 0x1f
add-int/2addr v0, v1
mul-int/lit8 v0, v0, 0x1f
.line 34
iget v1, p0, Lcom/moji/location/geo/MJReGeoCodeQuery;->b:F
invoke-static {v1}, Ljava/lang/Float;->floatToIntBits(F)I
move-result v1
add-int/2addr v0, v1
return v0
.end method