224 lines
6.6 KiB
Java
224 lines
6.6 KiB
Java
|
package o;
|
||
|
|
||
|
import com.airbnb.deeplinkdispatch.UrlTreeKt;
|
||
|
import java.util.AbstractMap;
|
||
|
import java.util.AbstractSet;
|
||
|
import java.util.EnumSet;
|
||
|
import java.util.Iterator;
|
||
|
import java.util.Locale;
|
||
|
import java.util.Map;
|
||
|
import java.util.Objects;
|
||
|
import java.util.Set;
|
||
|
import o.OLO;
|
||
|
|
||
|
/* renamed from: o.dzE, reason: case insensitive filesystem */
|
||
|
/* loaded from: classes2.dex */
|
||
|
public class C10246dzE extends AbstractMap<String, Object> implements Cloneable {
|
||
|
final Coa classInfo;
|
||
|
Map<String, Object> unknownFields;
|
||
|
|
||
|
/* renamed from: o.dzE$IeS */
|
||
|
/* loaded from: classes2.dex */
|
||
|
public enum IeS {
|
||
|
IGNORE_CASE
|
||
|
}
|
||
|
|
||
|
public C10246dzE() {
|
||
|
this(EnumSet.noneOf(IeS.class));
|
||
|
}
|
||
|
|
||
|
public C10246dzE(EnumSet<IeS> enumSet) {
|
||
|
this.unknownFields = YjD.c();
|
||
|
this.classInfo = Coa.c(getClass(), enumSet.contains(IeS.IGNORE_CASE));
|
||
|
}
|
||
|
|
||
|
@Override // java.util.AbstractMap, java.util.Map
|
||
|
public final Object get(Object obj) {
|
||
|
if (!(obj instanceof String)) {
|
||
|
return null;
|
||
|
}
|
||
|
String str = (String) obj;
|
||
|
NIm c = this.classInfo.c(str);
|
||
|
if (c != null) {
|
||
|
return NIm.d(c.a, this);
|
||
|
}
|
||
|
if (this.classInfo.d) {
|
||
|
str = str.toLowerCase(Locale.US);
|
||
|
}
|
||
|
return this.unknownFields.get(str);
|
||
|
}
|
||
|
|
||
|
@Override // java.util.AbstractMap, java.util.Map
|
||
|
public final Object put(String str, Object obj) {
|
||
|
NIm c = this.classInfo.c(str);
|
||
|
if (c != null) {
|
||
|
Object d = NIm.d(c.a, this);
|
||
|
c.c(this, obj);
|
||
|
return d;
|
||
|
}
|
||
|
if (this.classInfo.d) {
|
||
|
str = str.toLowerCase(Locale.US);
|
||
|
}
|
||
|
return this.unknownFields.put(str, obj);
|
||
|
}
|
||
|
|
||
|
public C10246dzE set(String str, Object obj) {
|
||
|
NIm c = this.classInfo.c(str);
|
||
|
if (c != null) {
|
||
|
c.c(this, obj);
|
||
|
} else {
|
||
|
if (this.classInfo.d) {
|
||
|
str = str.toLowerCase(Locale.US);
|
||
|
}
|
||
|
this.unknownFields.put(str, obj);
|
||
|
}
|
||
|
return this;
|
||
|
}
|
||
|
|
||
|
@Override // java.util.AbstractMap, java.util.Map
|
||
|
public final void putAll(Map<? extends String, ?> map) {
|
||
|
for (Map.Entry<? extends String, ?> entry : map.entrySet()) {
|
||
|
set(entry.getKey(), entry.getValue());
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@Override // java.util.AbstractMap, java.util.Map
|
||
|
public final Object remove(Object obj) {
|
||
|
if (!(obj instanceof String)) {
|
||
|
return null;
|
||
|
}
|
||
|
String str = (String) obj;
|
||
|
if (this.classInfo.c(str) != null) {
|
||
|
throw new UnsupportedOperationException();
|
||
|
}
|
||
|
if (this.classInfo.d) {
|
||
|
str = str.toLowerCase(Locale.US);
|
||
|
}
|
||
|
return this.unknownFields.remove(str);
|
||
|
}
|
||
|
|
||
|
@Override // java.util.AbstractMap, java.util.Map
|
||
|
public Set<Map.Entry<String, Object>> entrySet() {
|
||
|
return new HBt(this);
|
||
|
}
|
||
|
|
||
|
@Override // java.util.AbstractMap
|
||
|
public C10246dzE clone() {
|
||
|
try {
|
||
|
C10246dzE c10246dzE = (C10246dzE) super.clone();
|
||
|
C1169XbG.c(this, c10246dzE);
|
||
|
c10246dzE.unknownFields = (Map) C1169XbG.c(this.unknownFields);
|
||
|
return c10246dzE;
|
||
|
} catch (CloneNotSupportedException e) {
|
||
|
throw new IllegalStateException(e);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@Override // java.util.AbstractMap, java.util.Map
|
||
|
public boolean equals(Object obj) {
|
||
|
if (obj == this) {
|
||
|
return true;
|
||
|
}
|
||
|
if (obj == null || !(obj instanceof C10246dzE)) {
|
||
|
return false;
|
||
|
}
|
||
|
C10246dzE c10246dzE = (C10246dzE) obj;
|
||
|
return super.equals(c10246dzE) && Objects.equals(this.classInfo, c10246dzE.classInfo);
|
||
|
}
|
||
|
|
||
|
@Override // java.util.AbstractMap, java.util.Map
|
||
|
public int hashCode() {
|
||
|
int hashCode = super.hashCode();
|
||
|
return Objects.hash(Integer.valueOf(hashCode), this.classInfo);
|
||
|
}
|
||
|
|
||
|
@Override // java.util.AbstractMap
|
||
|
public String toString() {
|
||
|
StringBuilder sb = new StringBuilder("GenericData{classInfo=");
|
||
|
sb.append(this.classInfo.c);
|
||
|
sb.append(", ");
|
||
|
sb.append(super.toString());
|
||
|
sb.append(UrlTreeKt.componentParamSuffix);
|
||
|
return sb.toString();
|
||
|
}
|
||
|
|
||
|
/* renamed from: o.dzE$HBt */
|
||
|
/* loaded from: classes2.dex */
|
||
|
final class HBt extends AbstractSet<Map.Entry<String, Object>> {
|
||
|
private final OLO.LWm b;
|
||
|
private C10246dzE c;
|
||
|
|
||
|
HBt(C10246dzE c10246dzE) {
|
||
|
this.c = c10246dzE;
|
||
|
this.b = new OLO.LWm(new OLO(c10246dzE, c10246dzE.classInfo.d));
|
||
|
}
|
||
|
|
||
|
@Override // java.util.AbstractCollection, java.util.Collection, java.lang.Iterable, java.util.Set
|
||
|
public final Iterator<Map.Entry<String, Object>> iterator() {
|
||
|
return new Sts(this.c, this.b);
|
||
|
}
|
||
|
|
||
|
@Override // java.util.AbstractCollection, java.util.Collection, java.util.Set
|
||
|
public final int size() {
|
||
|
return this.c.unknownFields.size() + this.b.size();
|
||
|
}
|
||
|
|
||
|
@Override // java.util.AbstractCollection, java.util.Collection, java.util.Set
|
||
|
public final void clear() {
|
||
|
this.c.unknownFields.clear();
|
||
|
this.b.clear();
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/* renamed from: o.dzE$Sts */
|
||
|
/* loaded from: classes2.dex */
|
||
|
final class Sts implements Iterator<Map.Entry<String, Object>> {
|
||
|
private boolean a;
|
||
|
private final Iterator<Map.Entry<String, Object>> b;
|
||
|
private C10246dzE c;
|
||
|
private final Iterator<Map.Entry<String, Object>> e;
|
||
|
|
||
|
@Override // java.util.Iterator
|
||
|
public final /* synthetic */ Map.Entry<String, Object> next() {
|
||
|
if (!this.a) {
|
||
|
if (this.b.hasNext()) {
|
||
|
return this.b.next();
|
||
|
}
|
||
|
this.a = true;
|
||
|
}
|
||
|
return this.e.next();
|
||
|
}
|
||
|
|
||
|
Sts(C10246dzE c10246dzE, OLO.LWm lWm) {
|
||
|
this.c = c10246dzE;
|
||
|
this.b = new OLO.RVV(lWm.e);
|
||
|
this.e = c10246dzE.unknownFields.entrySet().iterator();
|
||
|
}
|
||
|
|
||
|
@Override // java.util.Iterator
|
||
|
public final boolean hasNext() {
|
||
|
return this.b.hasNext() || this.e.hasNext();
|
||
|
}
|
||
|
|
||
|
@Override // java.util.Iterator
|
||
|
public final void remove() {
|
||
|
if (this.a) {
|
||
|
this.e.remove();
|
||
|
}
|
||
|
this.b.remove();
|
||
|
}
|
||
|
}
|
||
|
|
||
|
public final void setUnknownKeys(Map<String, Object> map) {
|
||
|
this.unknownFields = map;
|
||
|
}
|
||
|
|
||
|
public final Map<String, Object> getUnknownKeys() {
|
||
|
return this.unknownFields;
|
||
|
}
|
||
|
|
||
|
public final Coa getClassInfo() {
|
||
|
return this.classInfo;
|
||
|
}
|
||
|
}
|