package b.i.d; import com.google.gson.JsonElement; import java.util.ArrayList; import java.util.Iterator; import java.util.List; /* compiled from: JsonArray */ public final class g extends JsonElement implements Iterable { public final List j = new ArrayList(); @Override // com.google.gson.JsonElement public int c() { if (this.j.size() == 1) { return this.j.get(0).c(); } throw new IllegalStateException(); } @Override // java.lang.Object public boolean equals(Object obj) { return obj == this || ((obj instanceof g) && ((g) obj).j.equals(this.j)); } @Override // com.google.gson.JsonElement public String g() { if (this.j.size() == 1) { return this.j.get(0).g(); } throw new IllegalStateException(); } @Override // java.lang.Object public int hashCode() { return this.j.hashCode(); } @Override // java.lang.Iterable public Iterator iterator() { return this.j.iterator(); } }