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

123 lines
2.8 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package o;
import java.util.Collection;
import java.util.Map;
import java.util.Set;
import o.qXr;
/* loaded from: classes.dex */
public class nyh<K, V> extends DFj<K, V> implements Map<K, V> {
private qXr<K, V> c;
public nyh() {
}
public nyh(int i) {
super(i);
}
public nyh(DFj dFj) {
super(dFj);
}
/* renamed from: o.nyh$4, reason: invalid class name */
/* loaded from: classes.dex */
final class AnonymousClass4 extends qXr<K, V> {
final nyh e;
AnonymousClass4(nyh nyhVar) {
this.e = nyhVar;
}
@Override // o.qXr
protected final int e() {
return this.e.b;
}
@Override // o.qXr
protected final Object e(int i, int i2) {
return this.e.e[(i << 1) + i2];
}
@Override // o.qXr
protected final int a(Object obj) {
return this.e.c(obj);
}
@Override // o.qXr
protected final void b(K k, V v) {
this.e.put(k, v);
}
@Override // o.qXr
protected final V c(int i, V v) {
return this.e.d(i, v);
}
@Override // o.qXr
protected final void a(int i) {
this.e.c(i);
}
@Override // o.qXr
protected final void a() {
this.e.clear();
}
@Override // o.qXr
protected final int b(Object obj) {
nyh nyhVar = this.e;
return obj == null ? nyhVar.d() : nyhVar.c(obj, obj.hashCode());
}
@Override // o.qXr
protected final Map<K, V> b() {
return this.e;
}
}
@Override // java.util.Map
public void putAll(Map<? extends K, ? extends V> map) {
d(this.b + map.size());
for (Map.Entry<? extends K, ? extends V> entry : map.entrySet()) {
put(entry.getKey(), entry.getValue());
}
}
@Override // java.util.Map
public Set<Map.Entry<K, V>> entrySet() {
if (this.c == null) {
this.c = new AnonymousClass4(this);
}
qXr<K, V> qxr = this.c;
if (qxr.c == null) {
qxr.c = new qXr.IeS(qxr);
}
return qxr.c;
}
@Override // java.util.Map
public Set<K> keySet() {
if (this.c == null) {
this.c = new AnonymousClass4(this);
}
qXr<K, V> qxr = this.c;
if (qxr.a == null) {
qxr.a = new qXr.LWm(qxr);
}
return qxr.a;
}
@Override // java.util.Map
public Collection<V> values() {
if (this.c == null) {
this.c = new AnonymousClass4(this);
}
qXr<K, V> qxr = this.c;
if (qxr.b == null) {
qxr.b = new qXr.Sts(qxr);
}
return qxr.b;
}
}