115 lines
3.1 KiB
Smali
115 lines
3.1 KiB
Smali
.class public Lcom/franmontiel/persistentcookiejar/cache/SetCookieCache;
|
|
.super Ljava/lang/Object;
|
|
|
|
# interfaces
|
|
.implements Lcom/franmontiel/persistentcookiejar/cache/CookieCache;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Lcom/franmontiel/persistentcookiejar/cache/SetCookieCache$SetCookieCacheIterator;
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field private WK:Ljava/util/Set;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/Set<",
|
|
"Lcom/franmontiel/persistentcookiejar/cache/IdentifiableCookie;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>()V
|
|
.locals 1
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
new-instance v0, Ljava/util/HashSet;
|
|
|
|
invoke-direct {v0}, Ljava/util/HashSet;-><init>()V
|
|
|
|
iput-object v0, p0, Lcom/franmontiel/persistentcookiejar/cache/SetCookieCache;->WK:Ljava/util/Set;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method static synthetic a(Lcom/franmontiel/persistentcookiejar/cache/SetCookieCache;)Ljava/util/Set;
|
|
.locals 0
|
|
|
|
iget-object p0, p0, Lcom/franmontiel/persistentcookiejar/cache/SetCookieCache;->WK:Ljava/util/Set;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final addAll(Ljava/util/Collection;)V
|
|
.locals 2
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Ljava/util/Collection<",
|
|
"Lokhttp3/l;",
|
|
">;)V"
|
|
}
|
|
.end annotation
|
|
|
|
invoke-static {p1}, Lcom/franmontiel/persistentcookiejar/cache/IdentifiableCookie;->e(Ljava/util/Collection;)Ljava/util/List;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-interface {p1}, Ljava/util/List;->iterator()Ljava/util/Iterator;
|
|
|
|
move-result-object p1
|
|
|
|
:goto_0
|
|
invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Lcom/franmontiel/persistentcookiejar/cache/IdentifiableCookie;
|
|
|
|
iget-object v1, p0, Lcom/franmontiel/persistentcookiejar/cache/SetCookieCache;->WK:Ljava/util/Set;
|
|
|
|
invoke-interface {v1, v0}, Ljava/util/Set;->remove(Ljava/lang/Object;)Z
|
|
|
|
iget-object v1, p0, Lcom/franmontiel/persistentcookiejar/cache/SetCookieCache;->WK:Ljava/util/Set;
|
|
|
|
invoke-interface {v1, v0}, Ljava/util/Set;->add(Ljava/lang/Object;)Z
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public iterator()Ljava/util/Iterator;
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"()",
|
|
"Ljava/util/Iterator<",
|
|
"Lokhttp3/l;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
new-instance v0, Lcom/franmontiel/persistentcookiejar/cache/SetCookieCache$SetCookieCacheIterator;
|
|
|
|
invoke-direct {v0, p0}, Lcom/franmontiel/persistentcookiejar/cache/SetCookieCache$SetCookieCacheIterator;-><init>(Lcom/franmontiel/persistentcookiejar/cache/SetCookieCache;)V
|
|
|
|
return-object v0
|
|
.end method
|