discord-jadx/app/src/main/java/b/i/d/g.java

42 lines
1.1 KiB
Java

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<JsonElement> {
public final List<JsonElement> 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<JsonElement> iterator() {
return this.j.iterator();
}
}