Weather/smali_classes2/com/moji/httpdns/cache/DnsCache$1.smali
2021-05-10 10:13:34 +02:00

82 lines
1.8 KiB
Smali

.class Lcom/moji/httpdns/cache/DnsCache$1;
.super Ljava/lang/Object;
.source "DnsCache.java"
# interfaces
.implements Ljava/util/Comparator;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/moji/httpdns/cache/DnsCache;->a(Lcom/moji/httpdns/model/DomainModel;)Lcom/moji/httpdns/model/DnsResult;
.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/httpdns/model/IpModel;",
">;"
}
.end annotation
# instance fields
.field final synthetic a:Lcom/moji/httpdns/cache/DnsCache;
# direct methods
.method constructor <init>(Lcom/moji/httpdns/cache/DnsCache;)V
.locals 0
.line 106
iput-object p1, p0, Lcom/moji/httpdns/cache/DnsCache$1;->a:Lcom/moji/httpdns/cache/DnsCache;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public a(Lcom/moji/httpdns/model/IpModel;Lcom/moji/httpdns/model/IpModel;)I
.locals 0
.line 109
iget p1, p1, Lcom/moji/httpdns/model/IpModel;->priority:I
iget p2, p2, Lcom/moji/httpdns/model/IpModel;->priority:I
if-ge p1, p2, :cond_0
const/4 p1, 0x1
goto :goto_0
:cond_0
const/4 p1, -0x1
:goto_0
return p1
.end method
.method public synthetic compare(Ljava/lang/Object;Ljava/lang/Object;)I
.locals 0
.line 106
check-cast p1, Lcom/moji/httpdns/model/IpModel;
check-cast p2, Lcom/moji/httpdns/model/IpModel;
invoke-virtual {p0, p1, p2}, Lcom/moji/httpdns/cache/DnsCache$1;->a(Lcom/moji/httpdns/model/IpModel;Lcom/moji/httpdns/model/IpModel;)I
move-result p1
return p1
.end method