2021-11-08 18:25:28 +00:00
|
|
|
package d0.w;
|
2021-06-27 20:44:35 +00:00
|
|
|
|
2021-11-08 18:25:28 +00:00
|
|
|
import d0.z.d.m;
|
2021-06-27 20:44:35 +00:00
|
|
|
import kotlin.coroutines.CoroutineContext;
|
|
|
|
import kotlin.coroutines.CoroutineContext.Element;
|
|
|
|
import kotlin.jvm.functions.Function1;
|
|
|
|
/* compiled from: CoroutineContextImpl.kt */
|
2022-03-02 20:59:20 +00:00
|
|
|
/* loaded from: classes3.dex */
|
2021-06-27 20:44:35 +00:00
|
|
|
public abstract class b<B extends CoroutineContext.Element, E extends B> implements CoroutineContext.Key<E> {
|
|
|
|
public final CoroutineContext.Key<?> a;
|
2021-12-21 23:37:30 +00:00
|
|
|
|
|
|
|
/* renamed from: b reason: collision with root package name */
|
2022-03-30 16:43:10 +00:00
|
|
|
public final Function1<CoroutineContext.Element, E> f3567b;
|
2021-06-27 20:44:35 +00:00
|
|
|
|
|
|
|
/* 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");
|
2022-03-30 16:43:10 +00:00
|
|
|
this.f3567b = function1;
|
2021-06-27 20:44:35 +00:00
|
|
|
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;
|
|
|
|
}
|
|
|
|
|
2022-03-02 20:59:20 +00:00
|
|
|
/* JADX WARN: Incorrect return type in method signature: (Lkotlin/coroutines/CoroutineContext$Element;)TE; */
|
|
|
|
public final CoroutineContext.Element tryCast$kotlin_stdlib(CoroutineContext.Element element) {
|
2021-06-27 20:44:35 +00:00
|
|
|
m.checkNotNullParameter(element, "element");
|
2022-03-30 16:43:10 +00:00
|
|
|
return (CoroutineContext.Element) this.f3567b.invoke(element);
|
2021-06-27 20:44:35 +00:00
|
|
|
}
|
|
|
|
}
|