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

211 lines
6.5 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package o;
import com.google.common.base.Preconditions;
import java.util.AbstractMap;
import java.util.AbstractSet;
import java.util.Iterator;
import java.util.Locale;
import java.util.Map;
import java.util.NoSuchElementException;
import java.util.Set;
/* JADX INFO: Access modifiers changed from: package-private */
/* loaded from: classes2.dex */
public final class OLO extends AbstractMap<String, Object> {
final Object d;
final Coa e;
@Override // java.util.AbstractMap, java.util.Map
public final /* synthetic */ Object put(Object obj, Object obj2) {
String str = (String) obj;
NIm c = this.e.c(str);
Preconditions.checkNotNull(c, "no field of key ".concat(String.valueOf(str)));
Object d = NIm.d(c.a, this.d);
c.c(this.d, Preconditions.checkNotNull(obj2));
return d;
}
/* JADX INFO: Access modifiers changed from: package-private */
public OLO(Object obj, boolean z) {
this.d = obj;
this.e = Coa.c(obj.getClass(), z);
}
@Override // java.util.AbstractMap, java.util.Map
public final boolean containsKey(Object obj) {
return get(obj) != null;
}
@Override // java.util.AbstractMap, java.util.Map
public final Object get(Object obj) {
NIm c;
if ((obj instanceof String) && (c = this.e.c((String) obj)) != null) {
return NIm.d(c.a, this.d);
}
return null;
}
/* JADX INFO: Access modifiers changed from: package-private */
/* loaded from: classes2.dex */
public final class LWm extends AbstractSet<Map.Entry<String, Object>> {
final OLO e;
/* JADX INFO: Access modifiers changed from: package-private */
public LWm(OLO olo) {
this.e = olo;
}
@Override // java.util.AbstractCollection, java.util.Collection, java.util.Set
public final int size() {
Iterator<String> it = this.e.e.c.iterator();
int i = 0;
while (it.hasNext()) {
NIm c = this.e.e.c(it.next());
if (NIm.d(c.a, this.e.d) != null) {
i++;
}
}
return i;
}
@Override // java.util.AbstractCollection, java.util.Collection, java.util.Set
public final void clear() {
Iterator<String> it = this.e.e.c.iterator();
while (it.hasNext()) {
this.e.e.c(it.next()).c(this.e.d, null);
}
}
@Override // java.util.AbstractCollection, java.util.Collection, java.util.Set
public final boolean isEmpty() {
Iterator<String> it = this.e.e.c.iterator();
while (it.hasNext()) {
NIm c = this.e.e.c(it.next());
if (NIm.d(c.a, this.e.d) != null) {
return false;
}
}
return true;
}
@Override // java.util.AbstractCollection, java.util.Collection, java.lang.Iterable, java.util.Set
public final /* synthetic */ Iterator iterator() {
return new RVV(this.e);
}
}
/* JADX INFO: Access modifiers changed from: package-private */
/* loaded from: classes2.dex */
public final class RVV implements Iterator<Map.Entry<String, Object>> {
private boolean a;
private NIm b;
private NIm c;
private Object d;
private boolean e;
private OLO i;
private int j = -1;
/* JADX INFO: Access modifiers changed from: package-private */
public RVV(OLO olo) {
this.i = olo;
}
@Override // java.util.Iterator
public final boolean hasNext() {
if (!this.e) {
this.e = true;
this.d = null;
while (this.d == null) {
int i = this.j + 1;
this.j = i;
if (i >= this.i.e.c.size()) {
break;
}
NIm c = this.i.e.c(this.i.e.c.get(this.j));
this.c = c;
this.d = NIm.d(c.a, this.i.d);
}
}
return this.d != null;
}
@Override // java.util.Iterator
public final /* synthetic */ Map.Entry<String, Object> next() {
if (!hasNext()) {
throw new NoSuchElementException();
}
NIm nIm = this.c;
this.b = nIm;
Object obj = this.d;
this.e = false;
this.a = false;
this.c = null;
this.d = null;
return new Sts(this.i, nIm, obj);
}
@Override // java.util.Iterator
public final void remove() {
Preconditions.checkState((this.b == null || this.a) ? false : true);
this.a = true;
this.b.c(this.i.d, null);
}
}
/* loaded from: classes2.dex */
final class Sts implements Map.Entry<String, Object> {
private OLO a;
private final NIm b;
private Object c;
Sts(OLO olo, NIm nIm, Object obj) {
this.a = olo;
this.b = nIm;
this.c = Preconditions.checkNotNull(obj);
}
@Override // java.util.Map.Entry
public final int hashCode() {
return getKey().hashCode() ^ getValue().hashCode();
}
@Override // java.util.Map.Entry
public final boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (!(obj instanceof Map.Entry)) {
return false;
}
Map.Entry entry = (Map.Entry) obj;
return getKey().equals(entry.getKey()) && getValue().equals(entry.getValue());
}
/* JADX INFO: Access modifiers changed from: private */
@Override // java.util.Map.Entry
/* renamed from: b, reason: merged with bridge method [inline-methods] */
public String getKey() {
String str = this.b.b;
return this.a.e.d ? str.toLowerCase(Locale.US) : str;
}
@Override // java.util.Map.Entry
public final Object setValue(Object obj) {
Object obj2 = this.c;
this.c = Preconditions.checkNotNull(obj);
this.b.c(this.a.d, obj);
return obj2;
}
@Override // java.util.Map.Entry
public final Object getValue() {
return this.c;
}
}
@Override // java.util.AbstractMap, java.util.Map
public final /* synthetic */ Set entrySet() {
return new LWm(this);
}
}