discord-jadx/app/src/main/java/d0/t/f0.java

20 lines
626 B
Java

package d0.t;
import d0.z.d.m;
import java.util.Map;
import java.util.NoSuchElementException;
/* compiled from: MapWithDefault.kt */
public class f0 {
public static final <K, V> V getOrImplicitDefaultNullable(Map<K, ? extends V> map, K k) {
m.checkNotNullParameter(map, "$this$getOrImplicitDefault");
if (map instanceof e0) {
return (V) ((e0) map).getOrImplicitDefault(k);
}
V v = (V) map.get(k);
if (v != null || map.containsKey(k)) {
return v;
}
throw new NoSuchElementException("Key " + ((Object) k) + " is missing in the map.");
}
}