what-the-bank/sources/com/google/android/gms/internal/firebase_ml/zzlj.java

143 lines
3.7 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package com.google.android.gms.internal.firebase_ml;
import com.airbnb.deeplinkdispatch.UrlTreeKt;
import java.io.Serializable;
import java.util.Collection;
import java.util.Map;
import java.util.Set;
/* loaded from: classes2.dex */
public abstract class zzlj<K, V> implements Serializable, Map<K, V> {
private static final Map.Entry<?, ?>[] zzacz = new Map.Entry[0];
private transient zzll<Map.Entry<K, V>> zzada;
private transient zzll<K> zzadb;
private transient zzlf<V> zzadc;
@Override // java.util.Map
public abstract V get(Object obj);
abstract zzll<Map.Entry<K, V>> zziq();
abstract zzll<K> zzir();
abstract zzlf<V> zzis();
@Override // java.util.Map
@Deprecated
public final V put(K k, V v) {
throw new UnsupportedOperationException();
}
@Override // java.util.Map
@Deprecated
public final V remove(Object obj) {
throw new UnsupportedOperationException();
}
@Override // java.util.Map
@Deprecated
public final void putAll(Map<? extends K, ? extends V> map) {
throw new UnsupportedOperationException();
}
@Override // java.util.Map
@Deprecated
public final void clear() {
throw new UnsupportedOperationException();
}
@Override // java.util.Map
public boolean isEmpty() {
return size() == 0;
}
@Override // java.util.Map
public boolean containsKey(Object obj) {
return get(obj) != null;
}
@Override // java.util.Map
public boolean containsValue(Object obj) {
return ((zzlf) values()).contains(obj);
}
@Override // java.util.Map
public final V getOrDefault(Object obj, V v) {
V v2 = get(obj);
return v2 != null ? v2 : v;
}
@Override // java.util.Map
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (obj instanceof Map) {
return entrySet().equals(((Map) obj).entrySet());
}
return false;
}
@Override // java.util.Map
public int hashCode() {
return zzls.zzb((zzll) entrySet());
}
public String toString() {
int size = size();
if (size < 0) {
StringBuilder sb = new StringBuilder(44);
sb.append("size cannot be negative but was: ");
sb.append(size);
throw new IllegalArgumentException(sb.toString());
}
StringBuilder sb2 = new StringBuilder((int) Math.min(size << 3, 1073741824L));
sb2.append(UrlTreeKt.componentParamPrefixChar);
boolean z = true;
for (Map.Entry<K, V> entry : entrySet()) {
if (!z) {
sb2.append(", ");
}
sb2.append(entry.getKey());
sb2.append('=');
sb2.append(entry.getValue());
z = false;
}
sb2.append(UrlTreeKt.componentParamSuffixChar);
return sb2.toString();
}
@Override // java.util.Map
public /* synthetic */ Set entrySet() {
zzll<Map.Entry<K, V>> zzllVar = this.zzada;
if (zzllVar != null) {
return zzllVar;
}
zzll<Map.Entry<K, V>> zziq = zziq();
this.zzada = zziq;
return zziq;
}
@Override // java.util.Map
public /* synthetic */ Collection values() {
zzlf<V> zzlfVar = this.zzadc;
if (zzlfVar != null) {
return zzlfVar;
}
zzlf<V> zzis = zzis();
this.zzadc = zzis;
return zzis;
}
@Override // java.util.Map
public /* synthetic */ Set keySet() {
zzll<K> zzllVar = this.zzadb;
if (zzllVar != null) {
return zzllVar;
}
zzll<K> zzir = zzir();
this.zzadb = zzir;
return zzir;
}
}