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

44 lines
1.6 KiB
Java

package d0.w;
import d0.z.d.m;
import kotlin.coroutines.CoroutineContext;
import kotlin.jvm.functions.Function2;
/* compiled from: CoroutineContextImpl.kt */
public abstract class a implements CoroutineContext.Element {
private final CoroutineContext.Key<?> key;
public a(CoroutineContext.Key<?> key) {
m.checkNotNullParameter(key, "key");
this.key = key;
}
@Override // kotlin.coroutines.CoroutineContext
public <R> R fold(R r, Function2<? super R, ? super CoroutineContext.Element, ? extends R> function2) {
m.checkNotNullParameter(function2, "operation");
return (R) CoroutineContext.Element.a.fold(this, r, function2);
}
@Override // kotlin.coroutines.CoroutineContext.Element, kotlin.coroutines.CoroutineContext
public <E extends CoroutineContext.Element> E get(CoroutineContext.Key<E> key) {
m.checkNotNullParameter(key, "key");
return (E) CoroutineContext.Element.a.get(this, key);
}
@Override // kotlin.coroutines.CoroutineContext.Element
public CoroutineContext.Key<?> getKey() {
return this.key;
}
@Override // kotlin.coroutines.CoroutineContext
public CoroutineContext minusKey(CoroutineContext.Key<?> key) {
m.checkNotNullParameter(key, "key");
return CoroutineContext.Element.a.minusKey(this, key);
}
@Override // kotlin.coroutines.CoroutineContext
public CoroutineContext plus(CoroutineContext coroutineContext) {
m.checkNotNullParameter(coroutineContext, "context");
return CoroutineContext.Element.a.plus(this, coroutineContext);
}
}