Files
rr3-apk/decompiled/sources/kotlin/coroutines/AbstractCoroutineContextKey.java
Daniel Elliott f9d20bb3fc Add decompiled APK source code (JADX)
- 28,932 files
- Full Java source code
- Smali files
- Resources

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-02-18 14:52:23 -08:00

29 lines
1.2 KiB
Java

package kotlin.coroutines;
import kotlin.coroutines.CoroutineContext;
import kotlin.jvm.functions.Function1;
import kotlin.jvm.internal.Intrinsics;
/* loaded from: classes5.dex */
public abstract class AbstractCoroutineContextKey implements CoroutineContext.Key {
public final Function1 safeCast;
public final CoroutineContext.Key topmostKey;
public final boolean isSubKey$kotlin_stdlib(CoroutineContext.Key key) {
Intrinsics.checkNotNullParameter(key, "key");
return key == this || this.topmostKey == key;
}
public AbstractCoroutineContextKey(CoroutineContext.Key baseKey, Function1 safeCast) {
Intrinsics.checkNotNullParameter(baseKey, "baseKey");
Intrinsics.checkNotNullParameter(safeCast, "safeCast");
this.safeCast = safeCast;
this.topmostKey = baseKey instanceof AbstractCoroutineContextKey ? ((AbstractCoroutineContextKey) baseKey).topmostKey : baseKey;
}
public final CoroutineContext.Element tryCast$kotlin_stdlib(CoroutineContext.Element element) {
Intrinsics.checkNotNullParameter(element, "element");
return (CoroutineContext.Element) this.safeCast.invoke(element);
}
}