what-the-bank/sources/o/AhE.java

81 lines
2.2 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package o;
import com.google.protobuf.CodedOutputStream;
import java.util.Iterator;
import java.util.Map;
import o.xdS;
/* loaded from: classes2.dex */
final class AhE implements IIk {
@Override // o.IIk
public final Map<?, ?> c(Object obj) {
return (C16063kpL) obj;
}
@Override // o.IIk
public final xdS.IeS<?, ?> a(Object obj) {
return ((xdS) obj).b;
}
@Override // o.IIk
public final Map<?, ?> d(Object obj) {
return (C16063kpL) obj;
}
@Override // o.IIk
public final boolean e(Object obj) {
return !((C16063kpL) obj).a;
}
@Override // o.IIk
public final Object b(Object obj) {
((C16063kpL) obj).a = false;
return obj;
}
@Override // o.IIk
public final Object b() {
C16063kpL a = C16063kpL.a();
return a.isEmpty() ? new C16063kpL() : new C16063kpL(a);
}
@Override // o.IIk
public final int d(int i, Object obj, Object obj2) {
C16063kpL c16063kpL = (C16063kpL) obj;
xdS xds = (xdS) obj2;
int i2 = 0;
if (c16063kpL.isEmpty()) {
return 0;
}
Iterator it = c16063kpL.entrySet().iterator();
while (it.hasNext()) {
Map.Entry entry = (Map.Entry) it.next();
Object key = entry.getKey();
Object value = entry.getValue();
int o2 = CodedOutputStream.o(i);
xdS.IeS<K, V> ieS = xds.b;
i2 += o2 + CodedOutputStream.h(Rkw.b(ieS.d, 1, key) + Rkw.b(ieS.b, 2, value));
}
return i2;
}
@Override // o.IIk
public final Object b(Object obj, Object obj2) {
C16063kpL c16063kpL = (C16063kpL) obj;
C16063kpL c16063kpL2 = (C16063kpL) obj2;
if (!c16063kpL2.isEmpty()) {
if (!c16063kpL.a) {
c16063kpL = c16063kpL.isEmpty() ? new C16063kpL() : new C16063kpL(c16063kpL);
}
if (c16063kpL.a) {
if (!c16063kpL2.isEmpty()) {
c16063kpL.putAll(c16063kpL2);
}
} else {
throw new UnsupportedOperationException();
}
}
return c16063kpL;
}
}