package com.discord.utilities.coroutines; import b.d.b.a.a; import d0.z.d.m; import kotlin.coroutines.CoroutineContext; import kotlin.jvm.functions.Function2; /* compiled from: AppCoroutineScope.kt */ /* loaded from: classes2.dex */ public final class AppErrorTag implements CoroutineContext.Element { private final String errorTag; private final CoroutineContext.Key key = Key.INSTANCE; /* compiled from: AppCoroutineScope.kt */ /* loaded from: classes2.dex */ public static final class Key implements CoroutineContext.Key { public static final Key INSTANCE = new Key(); private Key() { } } public AppErrorTag(String str) { m.checkNotNullParameter(str, "errorTag"); this.errorTag = str; } public static /* synthetic */ AppErrorTag copy$default(AppErrorTag appErrorTag, String str, int i, Object obj) { if ((i & 1) != 0) { str = appErrorTag.errorTag; } return appErrorTag.copy(str); } public final String component1() { return this.errorTag; } public final AppErrorTag copy(String str) { m.checkNotNullParameter(str, "errorTag"); return new AppErrorTag(str); } public boolean equals(Object obj) { if (this != obj) { return (obj instanceof AppErrorTag) && m.areEqual(this.errorTag, ((AppErrorTag) obj).errorTag); } return true; } @Override // kotlin.coroutines.CoroutineContext public R fold(R r, Function2 function2) { m.checkNotNullParameter(function2, "operation"); return (R) CoroutineContext.Element.a.fold(this, r, function2); } @Override // kotlin.coroutines.CoroutineContext.Element, kotlin.coroutines.CoroutineContext public E get(CoroutineContext.Key key) { m.checkNotNullParameter(key, "key"); return (E) CoroutineContext.Element.a.get(this, key); } public final String getErrorTag() { return this.errorTag; } @Override // kotlin.coroutines.CoroutineContext.Element public CoroutineContext.Key getKey() { return this.key; } public int hashCode() { String str = this.errorTag; if (str != null) { return str.hashCode(); } return 0; } @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); } public String toString() { return a.H(a.R("AppErrorTag(errorTag="), this.errorTag, ")"); } }