g.smali
.class public final Lcom/google/gson/g;
.super Lcom/google/gson/j;
.source "SourceFile"
# interfaces
.implements Ljava/lang/Iterable;
# annotations
.annotation system Ldalvik/annotation/Signature;
value = {
"Lcom/google/gson/j;",
"Ljava/lang/Iterable<",
"Lcom/google/gson/j;",
">;"
}
.end annotation
# instance fields
.field private final a:Ljava/util/List;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/List<",
"Lcom/google/gson/j;",
">;"
}
.end annotation
.end field
# direct methods
.method public constructor <init>()V
.registers 2
invoke-direct {p0}, Lcom/google/gson/j;-><init>()V
new-instance v0, Ljava/util/ArrayList;
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
iput-object v0, p0, Lcom/google/gson/g;->a:Ljava/util/List;
return-void
.end method
# virtual methods
.method public equals(Ljava/lang/Object;)Z
.registers 3
if-eq p1, p0, :cond_15
instance-of v0, p1, Lcom/google/gson/g;
if-eqz v0, :cond_13
check-cast p1, Lcom/google/gson/g;
iget-object p1, p1, Lcom/google/gson/g;->a:Ljava/util/List;
iget-object v0, p0, Lcom/google/gson/g;->a:Ljava/util/List;
invoke-interface {p1, v0}, Ljava/util/List;->equals(Ljava/lang/Object;)Z
move-result p1
if-eqz p1, :cond_13
goto :goto_15
:cond_13
const/4 p1, 0x0
goto :goto_16
:cond_15
:goto_15
const/4 p1, 0x1
:goto_16
return p1
.end method
.method public g()Ljava/lang/String;
.registers 3
iget-object v0, p0, Lcom/google/gson/g;->a:Ljava/util/List;
invoke-interface {v0}, Ljava/util/List;->size()I
move-result v0
const/4 v1, 0x1
if-ne v0, v1, :cond_17
iget-object v0, p0, Lcom/google/gson/g;->a:Ljava/util/List;
const/4 v1, 0x0
invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object v0
check-cast v0, Lcom/google/gson/j;
invoke-virtual {v0}, Lcom/google/gson/j;->g()Ljava/lang/String;
move-result-object v0
return-object v0
:cond_17
new-instance v0, Ljava/lang/IllegalStateException;
invoke-direct {v0}, Ljava/lang/IllegalStateException;-><init>()V
throw v0
.end method
.method public hashCode()I
.registers 2
iget-object v0, p0, Lcom/google/gson/g;->a:Ljava/util/List;
invoke-interface {v0}, Ljava/util/List;->hashCode()I
move-result v0
return v0
.end method
.method public iterator()Ljava/util/Iterator;
.registers 2
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/Iterator<",
"Lcom/google/gson/j;",
">;"
}
.end annotation
iget-object v0, p0, Lcom/google/gson/g;->a:Ljava/util/List;
invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;
move-result-object v0
return-object v0
.end method
.method public n(Lcom/google/gson/j;)V
.registers 3
if-nez p1, :cond_4
sget-object p1, Lcom/google/gson/l;->a:Lcom/google/gson/l;
:cond_4
iget-object v0, p0, Lcom/google/gson/g;->a:Ljava/util/List;
invoke-interface {v0, p1}, Ljava/util/List;->add(Ljava/lang/Object;)Z
return-void
.end method