42 lines
1.1 KiB
Java
42 lines
1.1 KiB
Java
package c.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> i = new ArrayList();
|
|
|
|
@Override // com.google.gson.JsonElement
|
|
public int c() {
|
|
if (this.i.size() == 1) {
|
|
return this.i.get(0).c();
|
|
}
|
|
throw new IllegalStateException();
|
|
}
|
|
|
|
@Override // java.lang.Object
|
|
public boolean equals(Object obj) {
|
|
return obj == this || ((obj instanceof g) && ((g) obj).i.equals(this.i));
|
|
}
|
|
|
|
@Override // com.google.gson.JsonElement
|
|
public String g() {
|
|
if (this.i.size() == 1) {
|
|
return this.i.get(0).g();
|
|
}
|
|
throw new IllegalStateException();
|
|
}
|
|
|
|
@Override // java.lang.Object
|
|
public int hashCode() {
|
|
return this.i.hashCode();
|
|
}
|
|
|
|
@Override // java.lang.Iterable
|
|
public Iterator<JsonElement> iterator() {
|
|
return this.i.iterator();
|
|
}
|
|
}
|