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

42 lines
1.1 KiB
Java
Raw Normal View History

2021-12-17 21:59:34 +00:00
package b.i.d;
2021-08-03 07:33:18 +00:00
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> {
2021-12-02 18:53:44 +00:00
public final List<JsonElement> j = new ArrayList();
2021-08-03 07:33:18 +00:00
@Override // com.google.gson.JsonElement
public int c() {
2021-12-02 18:53:44 +00:00
if (this.j.size() == 1) {
return this.j.get(0).c();
2021-08-03 07:33:18 +00:00
}
throw new IllegalStateException();
}
@Override // java.lang.Object
public boolean equals(Object obj) {
2021-12-02 18:53:44 +00:00
return obj == this || ((obj instanceof g) && ((g) obj).j.equals(this.j));
2021-08-03 07:33:18 +00:00
}
@Override // com.google.gson.JsonElement
public String g() {
2021-12-02 18:53:44 +00:00
if (this.j.size() == 1) {
return this.j.get(0).g();
2021-08-03 07:33:18 +00:00
}
throw new IllegalStateException();
}
@Override // java.lang.Object
public int hashCode() {
2021-12-02 18:53:44 +00:00
return this.j.hashCode();
2021-08-03 07:33:18 +00:00
}
@Override // java.lang.Iterable
public Iterator<JsonElement> iterator() {
2021-12-02 18:53:44 +00:00
return this.j.iterator();
2021-08-03 07:33:18 +00:00
}
}