discord-jadx/app/src/main/java/d0/w/b.java

34 lines
1.4 KiB
Java

package d0.w;
import d0.z.d.m;
import kotlin.coroutines.CoroutineContext;
import kotlin.coroutines.CoroutineContext.Element;
import kotlin.jvm.functions.Function1;
/* compiled from: CoroutineContextImpl.kt */
/* loaded from: classes3.dex */
public abstract class b<B extends CoroutineContext.Element, E extends B> implements CoroutineContext.Key<E> {
public final CoroutineContext.Key<?> a;
/* renamed from: b reason: collision with root package name */
public final Function1<CoroutineContext.Element, E> f3567b;
/* JADX WARN: Multi-variable type inference failed */
public b(CoroutineContext.Key<B> key, Function1<? super CoroutineContext.Element, ? extends E> function1) {
m.checkNotNullParameter(key, "baseKey");
m.checkNotNullParameter(function1, "safeCast");
this.f3567b = function1;
this.a = key instanceof b ? (CoroutineContext.Key<B>) ((b) key).a : key;
}
public final boolean isSubKey$kotlin_stdlib(CoroutineContext.Key<?> key) {
m.checkNotNullParameter(key, "key");
return key == this || this.a == key;
}
/* JADX WARN: Incorrect return type in method signature: (Lkotlin/coroutines/CoroutineContext$Element;)TE; */
public final CoroutineContext.Element tryCast$kotlin_stdlib(CoroutineContext.Element element) {
m.checkNotNullParameter(element, "element");
return (CoroutineContext.Element) this.f3567b.invoke(element);
}
}