a.smali
.class public final Lcom/bignerdranch/expandablerecyclerview/model/a;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/Signature;
value = {
"<P::",
"Lcom/bignerdranch/expandablerecyclerview/model/b<",
"TC;>;C:",
"Ljava/lang/Object;",
">",
"Ljava/lang/Object;"
}
.end annotation
# instance fields
.field public a:Lcom/bignerdranch/expandablerecyclerview/model/b;
.annotation system Ldalvik/annotation/Signature;
value = {
"TP;"
}
.end annotation
.end field
.field public b:Ljava/lang/Object;
.annotation system Ldalvik/annotation/Signature;
value = {
"TC;"
}
.end annotation
.end field
.field public c:Z
.field public d:Z
.field public e:Ljava/util/ArrayList;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/List<",
"Lcom/bignerdranch/expandablerecyclerview/model/a<",
"TP;TC;>;>;"
}
.end annotation
.end field
# direct methods
.method public constructor <init>(Lcom/bignerdranch/expandablerecyclerview/model/b;)V
.registers 5
.annotation system Ldalvik/annotation/Signature;
value = {
"(TP;)V"
}
.end annotation
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 2
iput-object p1, p0, Lcom/bignerdranch/expandablerecyclerview/model/a;->a:Lcom/bignerdranch/expandablerecyclerview/model/b;
const/4 v0, 0x1
.line 3
iput-boolean v0, p0, Lcom/bignerdranch/expandablerecyclerview/model/a;->c:Z
const/4 v0, 0x0
.line 4
iput-boolean v0, p0, Lcom/bignerdranch/expandablerecyclerview/model/a;->d:Z
.line 5
new-instance v0, Ljava/util/ArrayList;
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
.line 6
invoke-interface {p1}, Lcom/bignerdranch/expandablerecyclerview/model/b;->getChildList()Ljava/util/List;
move-result-object p1
invoke-interface {p1}, Ljava/util/List;->iterator()Ljava/util/Iterator;
move-result-object p1
:goto_18
invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z
move-result v1
if-eqz v1, :cond_2b
invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v1
.line 7
new-instance v2, Lcom/bignerdranch/expandablerecyclerview/model/a;
invoke-direct {v2, v1}, Lcom/bignerdranch/expandablerecyclerview/model/a;-><init>(Ljava/lang/Object;)V
invoke-virtual {v0, v2}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
goto :goto_18
.line 8
:cond_2b
iput-object v0, p0, Lcom/bignerdranch/expandablerecyclerview/model/a;->e:Ljava/util/ArrayList;
return-void
.end method
.method public constructor <init>(Ljava/lang/Object;)V
.registers 2
.annotation system Ldalvik/annotation/Signature;
value = {
"(TC;)V"
}
.end annotation
.line 9
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 10
iput-object p1, p0, Lcom/bignerdranch/expandablerecyclerview/model/a;->b:Ljava/lang/Object;
const/4 p1, 0x0
.line 11
iput-boolean p1, p0, Lcom/bignerdranch/expandablerecyclerview/model/a;->c:Z
.line 12
iput-boolean p1, p0, Lcom/bignerdranch/expandablerecyclerview/model/a;->d:Z
return-void
.end method
# virtual methods
.method public final a()Ljava/util/List;
.registers 3
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/List<",
"Lcom/bignerdranch/expandablerecyclerview/model/a<",
"TP;TC;>;>;"
}
.end annotation
.line 1
iget-boolean v0, p0, Lcom/bignerdranch/expandablerecyclerview/model/a;->c:Z
if-eqz v0, :cond_7
.line 2
iget-object v0, p0, Lcom/bignerdranch/expandablerecyclerview/model/a;->e:Ljava/util/ArrayList;
return-object v0
.line 3
:cond_7
new-instance v0, Ljava/lang/IllegalStateException;
const-string v1, "Parent not wrapped"
invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw v0
.end method
.method public final equals(Ljava/lang/Object;)Z
.registers 6
const/4 v0, 0x1
if-ne p0, p1, :cond_4
return v0
:cond_4
const/4 v1, 0x0
if-eqz p1, :cond_34
.line 1
const-class v2, Lcom/bignerdranch/expandablerecyclerview/model/a;
invoke-virtual {p1}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
move-result-object v3
if-eq v2, v3, :cond_10
goto :goto_34
.line 2
:cond_10
check-cast p1, Lcom/bignerdranch/expandablerecyclerview/model/a;
.line 3
iget-object v2, p0, Lcom/bignerdranch/expandablerecyclerview/model/a;->a:Lcom/bignerdranch/expandablerecyclerview/model/b;
if-eqz v2, :cond_1f
iget-object v3, p1, Lcom/bignerdranch/expandablerecyclerview/model/a;->a:Lcom/bignerdranch/expandablerecyclerview/model/b;
invoke-virtual {v2, v3}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z
move-result v2
if-nez v2, :cond_24
goto :goto_23
:cond_1f
iget-object v2, p1, Lcom/bignerdranch/expandablerecyclerview/model/a;->a:Lcom/bignerdranch/expandablerecyclerview/model/b;
if-eqz v2, :cond_24
:goto_23
return v1
.line 4
:cond_24
iget-object v2, p0, Lcom/bignerdranch/expandablerecyclerview/model/a;->b:Ljava/lang/Object;
iget-object p1, p1, Lcom/bignerdranch/expandablerecyclerview/model/a;->b:Ljava/lang/Object;
if-eqz v2, :cond_2f
invoke-virtual {v2, p1}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z
move-result v0
goto :goto_33
:cond_2f
if-nez p1, :cond_32
goto :goto_33
:cond_32
const/4 v0, 0x0
:goto_33
return v0
:cond_34
:goto_34
return v1
.end method
.method public final hashCode()I
.registers 4
.line 1
iget-object v0, p0, Lcom/bignerdranch/expandablerecyclerview/model/a;->a:Lcom/bignerdranch/expandablerecyclerview/model/b;
const/4 v1, 0x0
if-eqz v0, :cond_a
invoke-virtual {v0}, Ljava/lang/Object;->hashCode()I
move-result v0
goto :goto_b
:cond_a
const/4 v0, 0x0
:goto_b
mul-int/lit8 v0, v0, 0x1f
.line 2
iget-object v2, p0, Lcom/bignerdranch/expandablerecyclerview/model/a;->b:Ljava/lang/Object;
if-eqz v2, :cond_15
invoke-virtual {v2}, Ljava/lang/Object;->hashCode()I
move-result v1
:cond_15
add-int/2addr v0, v1
return v0
.end method