341 lines
6.8 KiB
Smali
341 lines
6.8 KiB
Smali
.class public Ldg/q0;
|
|
.super Ljava/util/AbstractList;
|
|
.source "RedirectLocations.java"
|
|
|
|
|
|
# annotations
|
|
.annotation build Lcz/msebera/android/httpclient/annotation/NotThreadSafe;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/AbstractList<",
|
|
"Ljava/lang/Object;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field public final a:Ljava/util/Set;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/Set<",
|
|
"Ljava/net/URI;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field public final b:Ljava/util/List;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/List<",
|
|
"Ljava/net/URI;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>()V
|
|
.locals 1
|
|
|
|
.line 1
|
|
invoke-direct {p0}, Ljava/util/AbstractList;-><init>()V
|
|
|
|
.line 2
|
|
new-instance v0, Ljava/util/HashSet;
|
|
|
|
invoke-direct {v0}, Ljava/util/HashSet;-><init>()V
|
|
|
|
iput-object v0, p0, Ldg/q0;->a:Ljava/util/Set;
|
|
|
|
.line 3
|
|
new-instance v0, Ljava/util/ArrayList;
|
|
|
|
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
iput-object v0, p0, Ldg/q0;->b:Ljava/util/List;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public a(Ljava/net/URI;)V
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Ldg/q0;->a:Ljava/util/Set;
|
|
|
|
invoke-interface {v0, p1}, Ljava/util/Set;->add(Ljava/lang/Object;)Z
|
|
|
|
.line 2
|
|
iget-object v0, p0, Ldg/q0;->b:Ljava/util/List;
|
|
|
|
invoke-interface {v0, p1}, Ljava/util/List;->add(Ljava/lang/Object;)Z
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public add(ILjava/lang/Object;)V
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Ldg/q0;->b:Ljava/util/List;
|
|
|
|
check-cast p2, Ljava/net/URI;
|
|
|
|
invoke-interface {v0, p1, p2}, Ljava/util/List;->add(ILjava/lang/Object;)V
|
|
|
|
.line 2
|
|
iget-object p1, p0, Ldg/q0;->a:Ljava/util/Set;
|
|
|
|
invoke-interface {p1, p2}, Ljava/util/Set;->add(Ljava/lang/Object;)Z
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public b(Ljava/net/URI;)Z
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Ldg/q0;->a:Ljava/util/Set;
|
|
|
|
invoke-interface {v0, p1}, Ljava/util/Set;->contains(Ljava/lang/Object;)Z
|
|
|
|
move-result p1
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method public c(I)Ljava/net/URI;
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Ldg/q0;->b:Ljava/util/List;
|
|
|
|
invoke-interface {v0, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
|
|
check-cast p1, Ljava/net/URI;
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public contains(Ljava/lang/Object;)Z
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Ldg/q0;->a:Ljava/util/Set;
|
|
|
|
invoke-interface {v0, p1}, Ljava/util/Set;->contains(Ljava/lang/Object;)Z
|
|
|
|
move-result p1
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method public d()Ljava/util/List;
|
|
.locals 2
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"()",
|
|
"Ljava/util/List<",
|
|
"Ljava/net/URI;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
new-instance v0, Ljava/util/ArrayList;
|
|
|
|
iget-object v1, p0, Ldg/q0;->b:Ljava/util/List;
|
|
|
|
invoke-direct {v0, v1}, Ljava/util/ArrayList;-><init>(Ljava/util/Collection;)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public e(I)Ljava/net/URI;
|
|
.locals 2
|
|
|
|
.line 1
|
|
iget-object v0, p0, Ldg/q0;->b:Ljava/util/List;
|
|
|
|
invoke-interface {v0, p1}, Ljava/util/List;->remove(I)Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
|
|
check-cast p1, Ljava/net/URI;
|
|
|
|
.line 2
|
|
iget-object v0, p0, Ldg/q0;->a:Ljava/util/Set;
|
|
|
|
invoke-interface {v0, p1}, Ljava/util/Set;->remove(Ljava/lang/Object;)Z
|
|
|
|
.line 3
|
|
iget-object v0, p0, Ldg/q0;->b:Ljava/util/List;
|
|
|
|
invoke-interface {v0}, Ljava/util/List;->size()I
|
|
|
|
move-result v0
|
|
|
|
iget-object v1, p0, Ldg/q0;->a:Ljava/util/Set;
|
|
|
|
invoke-interface {v1}, Ljava/util/Set;->size()I
|
|
|
|
move-result v1
|
|
|
|
if-eq v0, v1, :cond_0
|
|
|
|
.line 4
|
|
iget-object v0, p0, Ldg/q0;->a:Ljava/util/Set;
|
|
|
|
iget-object v1, p0, Ldg/q0;->b:Ljava/util/List;
|
|
|
|
invoke-interface {v0, v1}, Ljava/util/Set;->addAll(Ljava/util/Collection;)Z
|
|
|
|
:cond_0
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public f(Ljava/net/URI;)Z
|
|
.locals 3
|
|
|
|
.line 1
|
|
iget-object v0, p0, Ldg/q0;->a:Ljava/util/Set;
|
|
|
|
invoke-interface {v0, p1}, Ljava/util/Set;->remove(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 2
|
|
iget-object v1, p0, Ldg/q0;->b:Ljava/util/List;
|
|
|
|
invoke-interface {v1}, Ljava/util/List;->iterator()Ljava/util/Iterator;
|
|
|
|
move-result-object v1
|
|
|
|
.line 3
|
|
:cond_0
|
|
:goto_0
|
|
invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
move-result v2
|
|
|
|
if-eqz v2, :cond_1
|
|
|
|
.line 4
|
|
invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
move-result-object v2
|
|
|
|
check-cast v2, Ljava/net/URI;
|
|
|
|
.line 5
|
|
invoke-virtual {v2, p1}, Ljava/net/URI;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v2
|
|
|
|
if-eqz v2, :cond_0
|
|
|
|
.line 6
|
|
invoke-interface {v1}, Ljava/util/Iterator;->remove()V
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
return v0
|
|
.end method
|
|
|
|
.method public bridge synthetic get(I)Ljava/lang/Object;
|
|
.locals 0
|
|
|
|
.line 1
|
|
invoke-virtual {p0, p1}, Ldg/q0;->c(I)Ljava/net/URI;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public bridge synthetic remove(I)Ljava/lang/Object;
|
|
.locals 0
|
|
|
|
.line 1
|
|
invoke-virtual {p0, p1}, Ldg/q0;->e(I)Ljava/net/URI;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public set(ILjava/lang/Object;)Ljava/lang/Object;
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Ldg/q0;->b:Ljava/util/List;
|
|
|
|
check-cast p2, Ljava/net/URI;
|
|
|
|
invoke-interface {v0, p1, p2}, Ljava/util/List;->set(ILjava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
|
|
check-cast p1, Ljava/net/URI;
|
|
|
|
.line 2
|
|
iget-object v0, p0, Ldg/q0;->a:Ljava/util/Set;
|
|
|
|
invoke-interface {v0, p1}, Ljava/util/Set;->remove(Ljava/lang/Object;)Z
|
|
|
|
.line 3
|
|
iget-object v0, p0, Ldg/q0;->a:Ljava/util/Set;
|
|
|
|
invoke-interface {v0, p2}, Ljava/util/Set;->add(Ljava/lang/Object;)Z
|
|
|
|
.line 4
|
|
iget-object p2, p0, Ldg/q0;->b:Ljava/util/List;
|
|
|
|
invoke-interface {p2}, Ljava/util/List;->size()I
|
|
|
|
move-result p2
|
|
|
|
iget-object v0, p0, Ldg/q0;->a:Ljava/util/Set;
|
|
|
|
invoke-interface {v0}, Ljava/util/Set;->size()I
|
|
|
|
move-result v0
|
|
|
|
if-eq p2, v0, :cond_0
|
|
|
|
.line 5
|
|
iget-object p2, p0, Ldg/q0;->a:Ljava/util/Set;
|
|
|
|
iget-object v0, p0, Ldg/q0;->b:Ljava/util/List;
|
|
|
|
invoke-interface {p2, v0}, Ljava/util/Set;->addAll(Ljava/util/Collection;)Z
|
|
|
|
:cond_0
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public size()I
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Ldg/q0;->b:Ljava/util/List;
|
|
|
|
invoke-interface {v0}, Ljava/util/List;->size()I
|
|
|
|
move-result v0
|
|
|
|
return v0
|
|
.end method
|