PatriciaTrie$d.smali
.class Lorg/ardverk/collection/PatriciaTrie$d;
.super Ljava/util/AbstractSet;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lorg/ardverk/collection/PatriciaTrie;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x0
name = "d"
.end annotation
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lorg/ardverk/collection/PatriciaTrie$d$a;
}
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/AbstractSet",
"<",
"Ljava/util/Map$Entry",
"<TK;TV;>;>;"
}
.end annotation
# instance fields
.field private final a:Lorg/ardverk/collection/PatriciaTrie$e;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lorg/ardverk/collection/PatriciaTrie",
"<TK;TV;>.e;"
}
.end annotation
.end field
.field final synthetic b:Lorg/ardverk/collection/PatriciaTrie;
.field private c:I
.field private d:I
# direct methods
.method public constructor <init>(Lorg/ardverk/collection/PatriciaTrie;Lorg/ardverk/collection/PatriciaTrie$e;)V
.registers 5
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lorg/ardverk/collection/PatriciaTrie",
"<TK;TV;>.e;)V"
}
.end annotation
const/4 v0, -0x1
iput-object p1, p0, Lorg/ardverk/collection/PatriciaTrie$d;->b:Lorg/ardverk/collection/PatriciaTrie;
invoke-direct {p0}, Ljava/util/AbstractSet;-><init>()V
iput v0, p0, Lorg/ardverk/collection/PatriciaTrie$d;->c:I
iput v0, p0, Lorg/ardverk/collection/PatriciaTrie$d;->d:I
if-nez p2, :cond_14
new-instance v0, Ljava/lang/NullPointerException;
const-string v1, "delegate"
invoke-direct {v0, v1}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V
throw v0
:cond_14
iput-object p2, p0, Lorg/ardverk/collection/PatriciaTrie$d;->a:Lorg/ardverk/collection/PatriciaTrie$e;
return-void
.end method
# virtual methods
.method public contains(Ljava/lang/Object;)Z
.registers 5
const/4 v0, 0x0
instance-of v1, p1, Ljava/util/Map$Entry;
if-nez v1, :cond_6
:cond_5
:goto_5
return v0
:cond_6
check-cast p1, Ljava/util/Map$Entry;
invoke-interface {p1}, Ljava/util/Map$Entry;->getKey()Ljava/lang/Object;
move-result-object v1
iget-object v2, p0, Lorg/ardverk/collection/PatriciaTrie$d;->a:Lorg/ardverk/collection/PatriciaTrie$e;
invoke-virtual {v2, v1}, Lorg/ardverk/collection/PatriciaTrie$e;->a(Ljava/lang/Object;)Z
move-result v2
if-eqz v2, :cond_5
iget-object v2, p0, Lorg/ardverk/collection/PatriciaTrie$d;->b:Lorg/ardverk/collection/PatriciaTrie;
invoke-virtual {v2, v1}, Lorg/ardverk/collection/PatriciaTrie;->getEntry(Ljava/lang/Object;)Lorg/ardverk/collection/AbstractPatriciaTrie$TrieEntry;
move-result-object v1
if-eqz v1, :cond_5
invoke-virtual {v1}, Lorg/ardverk/collection/AbstractPatriciaTrie$TrieEntry;->getValue()Ljava/lang/Object;
move-result-object v1
invoke-interface {p1}, Ljava/util/Map$Entry;->getValue()Ljava/lang/Object;
move-result-object v2
invoke-static {v1, v2}, Lorg/ardverk/collection/Tries;->a(Ljava/lang/Object;Ljava/lang/Object;)Z
move-result v1
if-eqz v1, :cond_5
const/4 v0, 0x1
goto :goto_5
.end method
.method public isEmpty()Z
.registers 2
invoke-virtual {p0}, Lorg/ardverk/collection/PatriciaTrie$d;->iterator()Ljava/util/Iterator;
move-result-object v0
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
move-result v0
if-nez v0, :cond_c
const/4 v0, 0x1
:goto_b
return v0
:cond_c
const/4 v0, 0x0
goto :goto_b
.end method
.method public iterator()Ljava/util/Iterator;
.registers 5
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/Iterator",
"<",
"Ljava/util/Map$Entry",
"<TK;TV;>;>;"
}
.end annotation
const/4 v1, 0x0
iget-object v0, p0, Lorg/ardverk/collection/PatriciaTrie$d;->a:Lorg/ardverk/collection/PatriciaTrie$e;
invoke-virtual {v0}, Lorg/ardverk/collection/PatriciaTrie$e;->b()Ljava/lang/Object;
move-result-object v0
iget-object v2, p0, Lorg/ardverk/collection/PatriciaTrie$d;->a:Lorg/ardverk/collection/PatriciaTrie$e;
invoke-virtual {v2}, Lorg/ardverk/collection/PatriciaTrie$e;->c()Ljava/lang/Object;
move-result-object v3
if-nez v0, :cond_24
iget-object v0, p0, Lorg/ardverk/collection/PatriciaTrie$d;->b:Lorg/ardverk/collection/PatriciaTrie;
invoke-virtual {v0}, Lorg/ardverk/collection/PatriciaTrie;->firstEntry()Lorg/ardverk/collection/AbstractPatriciaTrie$TrieEntry;
move-result-object v0
move-object v2, v0
:goto_16
if-eqz v3, :cond_2c
iget-object v0, p0, Lorg/ardverk/collection/PatriciaTrie$d;->b:Lorg/ardverk/collection/PatriciaTrie;
invoke-virtual {v0, v3}, Lorg/ardverk/collection/PatriciaTrie;->ceilingEntry(Ljava/lang/Object;)Lorg/ardverk/collection/AbstractPatriciaTrie$TrieEntry;
move-result-object v0
:goto_1e
new-instance v3, Lorg/ardverk/collection/PatriciaTrie$d$a;
invoke-direct {v3, p0, v2, v0, v1}, Lorg/ardverk/collection/PatriciaTrie$d$a;-><init>(Lorg/ardverk/collection/PatriciaTrie$d;Lorg/ardverk/collection/AbstractPatriciaTrie$TrieEntry;Lorg/ardverk/collection/AbstractPatriciaTrie$TrieEntry;Lorg/ardverk/collection/PatriciaTrie$1;)V
return-object v3
:cond_24
iget-object v2, p0, Lorg/ardverk/collection/PatriciaTrie$d;->b:Lorg/ardverk/collection/PatriciaTrie;
invoke-virtual {v2, v0}, Lorg/ardverk/collection/PatriciaTrie;->ceilingEntry(Ljava/lang/Object;)Lorg/ardverk/collection/AbstractPatriciaTrie$TrieEntry;
move-result-object v0
move-object v2, v0
goto :goto_16
:cond_2c
move-object v0, v1
goto :goto_1e
.end method
.method public remove(Ljava/lang/Object;)Z
.registers 6
const/4 v0, 0x0
instance-of v1, p1, Ljava/util/Map$Entry;
if-nez v1, :cond_6
:cond_5
:goto_5
return v0
:cond_6
check-cast p1, Ljava/util/Map$Entry;
invoke-interface {p1}, Ljava/util/Map$Entry;->getKey()Ljava/lang/Object;
move-result-object v1
iget-object v2, p0, Lorg/ardverk/collection/PatriciaTrie$d;->a:Lorg/ardverk/collection/PatriciaTrie$e;
invoke-virtual {v2, v1}, Lorg/ardverk/collection/PatriciaTrie$e;->a(Ljava/lang/Object;)Z
move-result v2
if-eqz v2, :cond_5
iget-object v2, p0, Lorg/ardverk/collection/PatriciaTrie$d;->b:Lorg/ardverk/collection/PatriciaTrie;
invoke-virtual {v2, v1}, Lorg/ardverk/collection/PatriciaTrie;->getEntry(Ljava/lang/Object;)Lorg/ardverk/collection/AbstractPatriciaTrie$TrieEntry;
move-result-object v1
if-eqz v1, :cond_5
invoke-virtual {v1}, Lorg/ardverk/collection/AbstractPatriciaTrie$TrieEntry;->getValue()Ljava/lang/Object;
move-result-object v2
invoke-interface {p1}, Ljava/util/Map$Entry;->getValue()Ljava/lang/Object;
move-result-object v3
invoke-static {v2, v3}, Lorg/ardverk/collection/Tries;->a(Ljava/lang/Object;Ljava/lang/Object;)Z
move-result v2
if-eqz v2, :cond_5
iget-object v0, p0, Lorg/ardverk/collection/PatriciaTrie$d;->b:Lorg/ardverk/collection/PatriciaTrie;
invoke-virtual {v0, v1}, Lorg/ardverk/collection/PatriciaTrie;->removeEntry(Lorg/ardverk/collection/AbstractPatriciaTrie$TrieEntry;)Ljava/lang/Object;
const/4 v0, 0x1
goto :goto_5
.end method
.method public size()I
.registers 3
iget v0, p0, Lorg/ardverk/collection/PatriciaTrie$d;->c:I
const/4 v1, -0x1
if-eq v0, v1, :cond_d
iget v0, p0, Lorg/ardverk/collection/PatriciaTrie$d;->d:I
iget-object v1, p0, Lorg/ardverk/collection/PatriciaTrie$d;->b:Lorg/ardverk/collection/PatriciaTrie;
iget v1, v1, Lorg/ardverk/collection/PatriciaTrie;->modCount:I
if-eq v0, v1, :cond_2a
:cond_d
const/4 v0, 0x0
iput v0, p0, Lorg/ardverk/collection/PatriciaTrie$d;->c:I
invoke-virtual {p0}, Lorg/ardverk/collection/PatriciaTrie$d;->iterator()Ljava/util/Iterator;
move-result-object v0
:goto_14
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
move-result v1
if-eqz v1, :cond_24
iget v1, p0, Lorg/ardverk/collection/PatriciaTrie$d;->c:I
add-int/lit8 v1, v1, 0x1
iput v1, p0, Lorg/ardverk/collection/PatriciaTrie$d;->c:I
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
goto :goto_14
:cond_24
iget-object v0, p0, Lorg/ardverk/collection/PatriciaTrie$d;->b:Lorg/ardverk/collection/PatriciaTrie;
iget v0, v0, Lorg/ardverk/collection/PatriciaTrie;->modCount:I
iput v0, p0, Lorg/ardverk/collection/PatriciaTrie$d;->d:I
:cond_2a
iget v0, p0, Lorg/ardverk/collection/PatriciaTrie$d;->c:I
return v0
.end method