125 lines
		
	
	
		
			8.4 KiB
		
	
	
	
		
			Java
		
	
	
	
	
	
			
		
		
	
	
			125 lines
		
	
	
		
			8.4 KiB
		
	
	
	
		
			Java
		
	
	
	
	
	
| package kotlinx.coroutines;
 | |
| 
 | |
| import kotlin.Metadata;
 | |
| import kotlin.Unit;
 | |
| import kotlin.jvm.functions.Function1;
 | |
| import kotlin.jvm.internal.DefaultConstructorMarker;
 | |
| import kotlin.jvm.internal.Intrinsics;
 | |
| 
 | |
| /* compiled from: CancellableContinuationImpl.kt */
 | |
| @Metadata(d1 = {"\u0000F\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0010\u0003\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u0002\n\u0002\b\u0004\n\u0002\u0010\u000b\n\u0002\b\u000b\n\u0002\u0010\b\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000e\n\u0000\b\u0082\b\u0018\u00002\u00020\u0001BZ\u0012\b\u0010\u0002\u001a\u0004\u0018\u00010\u0001\u0012\n\b\u0002\u0010\u0003\u001a\u0004\u0018\u00010\u0004\u0012%\b\u0002\u0010\u0005\u001a\u001f\u0012\u0013\u0012\u00110\u0007¢\u0006\f\b\b\u0012\b\b\t\u0012\u0004\b\b(\n\u0012\u0004\u0012\u00020\u000b\u0018\u00010\u0006\u0012\n\b\u0002\u0010\f\u001a\u0004\u0018\u00010\u0001\u0012\n\b\u0002\u0010\r\u001a\u0004\u0018\u00010\u0007¢\u0006\u0002\u0010\u000eJ\u000b\u0010\u0013\u001a\u0004\u0018\u00010\u0001HÆ\u0003J\u000b\u0010\u0014\u001a\u0004\u0018\u00010\u0004HÆ\u0003J&\u0010\u0015\u001a\u001f\u0012\u0013\u0012\u00110\u0007¢\u0006\f\b\b\u0012\b\b\t\u0012\u0004\b\b(\n\u0012\u0004\u0012\u00020\u000b\u0018\u00010\u0006HÆ\u0003J\u000b\u0010\u0016\u001a\u0004\u0018\u00010\u0001HÆ\u0003J\u000b\u0010\u0017\u001a\u0004\u0018\u00010\u0007HÆ\u0003J`\u0010\u0018\u001a\u00020\u00002\n\b\u0002\u0010\u0002\u001a\u0004\u0018\u00010\u00012\n\b\u0002\u0010\u0003\u001a\u0004\u0018\u00010\u00042%\b\u0002\u0010\u0005\u001a\u001f\u0012\u0013\u0012\u00110\u0007¢\u0006\f\b\b\u0012\b\b\t\u0012\u0004\b\b(\n\u0012\u0004\u0012\u00020\u000b\u0018\u00010\u00062\n\b\u0002\u0010\f\u001a\u0004\u0018\u00010\u00012\n\b\u0002\u0010\r\u001a\u0004\u0018\u00010\u0007HÆ\u0001J\u0013\u0010\u0019\u001a\u00020\u00102\b\u0010\u001a\u001a\u0004\u0018\u00010\u0001HÖ\u0003J\t\u0010\u001b\u001a\u00020\u001cHÖ\u0001J\u001a\u0010\u001d\u001a\u00020\u000b2\n\u0010\u001e\u001a\u0006\u0012\u0002\b\u00030\u001f2\u0006\u0010\n\u001a\u00020\u0007J\t\u0010 \u001a\u00020!HÖ\u0001R\u0012\u0010\r\u001a\u0004\u0018\u00010\u00078\u0006X\u0087\u0004¢\u0006\u0002\n\u0000R\u0012\u0010\u0003\u001a\u0004\u0018\u00010\u00048\u0006X\u0087\u0004¢\u0006\u0002\n\u0000R\u0011\u0010\u000f\u001a\u00020\u00108F¢\u0006\u0006\u001a\u0004\b\u0011\u0010\u0012R\u0012\u0010\f\u001a\u0004\u0018\u00010\u00018\u0006X\u0087\u0004¢\u0006\u0002\n\u0000R-\u0010\u0005\u001a\u001f\u0012\u0013\u0012\u00110\u0007¢\u0006\f\b\b\u0012\b\b\t\u0012\u0004\b\b(\n\u0012\u0004\u0012\u00020\u000b\u0018\u00010\u00068\u0006X\u0087\u0004¢\u0006\u0002\n\u0000R\u0012\u0010\u0002\u001a\u0004\u0018\u00010\u00018\u0006X\u0087\u0004¢\u0006\u0002\n\u0000¨\u0006\""}, d2 = {"Lkotlinx/coroutines/CompletedContinuation;", "", "result", "cancelHandler", "Lkotlinx/coroutines/CancelHandler;", "onCancellation", "Lkotlin/Function1;", "", "Lkotlin/ParameterName;", "name", "cause", "", "idempotentResume", "cancelCause", "(Ljava/lang/Object;Lkotlinx/coroutines/CancelHandler;Lkotlin/jvm/functions/Function1;Ljava/lang/Object;Ljava/lang/Throwable;)V", "cancelled", "", "getCancelled", "()Z", "component1", "component2", "component3", "component4", "component5", "copy", "equals", "other", "hashCode", "", "invokeHandlers", "cont", "Lkotlinx/coroutines/CancellableContinuationImpl;", "toString", "", "kotlinx-coroutines-core"}, k = 1, mv = {1, 8, 0}, xi = 48)
 | |
| /* loaded from: classes.dex */
 | |
| final /* data */ class CompletedContinuation {
 | |
|     public final Throwable cancelCause;
 | |
|     public final CancelHandler cancelHandler;
 | |
|     public final Object idempotentResume;
 | |
|     public final Function1<Throwable, Unit> onCancellation;
 | |
|     public final Object result;
 | |
| 
 | |
|     public static /* synthetic */ CompletedContinuation copy$default(CompletedContinuation completedContinuation, Object obj, CancelHandler cancelHandler, Function1 function1, Object obj2, Throwable th, int i, Object obj3) {
 | |
|         if ((i & 1) != 0) {
 | |
|             obj = completedContinuation.result;
 | |
|         }
 | |
|         if ((i & 2) != 0) {
 | |
|             cancelHandler = completedContinuation.cancelHandler;
 | |
|         }
 | |
|         CancelHandler cancelHandler2 = cancelHandler;
 | |
|         if ((i & 4) != 0) {
 | |
|             function1 = completedContinuation.onCancellation;
 | |
|         }
 | |
|         Function1 function12 = function1;
 | |
|         if ((i & 8) != 0) {
 | |
|             obj2 = completedContinuation.idempotentResume;
 | |
|         }
 | |
|         Object obj4 = obj2;
 | |
|         if ((i & 16) != 0) {
 | |
|             th = completedContinuation.cancelCause;
 | |
|         }
 | |
|         return completedContinuation.copy(obj, cancelHandler2, function12, obj4, th);
 | |
|     }
 | |
| 
 | |
|     /* renamed from: component1, reason: from getter */
 | |
|     public final Object getResult() {
 | |
|         return this.result;
 | |
|     }
 | |
| 
 | |
|     /* renamed from: component2, reason: from getter */
 | |
|     public final CancelHandler getCancelHandler() {
 | |
|         return this.cancelHandler;
 | |
|     }
 | |
| 
 | |
|     public final Function1<Throwable, Unit> component3() {
 | |
|         return this.onCancellation;
 | |
|     }
 | |
| 
 | |
|     /* renamed from: component4, reason: from getter */
 | |
|     public final Object getIdempotentResume() {
 | |
|         return this.idempotentResume;
 | |
|     }
 | |
| 
 | |
|     /* renamed from: component5, reason: from getter */
 | |
|     public final Throwable getCancelCause() {
 | |
|         return this.cancelCause;
 | |
|     }
 | |
| 
 | |
|     public final CompletedContinuation copy(Object result, CancelHandler cancelHandler, Function1<? super Throwable, Unit> onCancellation, Object idempotentResume, Throwable cancelCause) {
 | |
|         return new CompletedContinuation(result, cancelHandler, onCancellation, idempotentResume, cancelCause);
 | |
|     }
 | |
| 
 | |
|     public boolean equals(Object other) {
 | |
|         if (this == other) {
 | |
|             return true;
 | |
|         }
 | |
|         if (!(other instanceof CompletedContinuation)) {
 | |
|             return false;
 | |
|         }
 | |
|         CompletedContinuation completedContinuation = (CompletedContinuation) other;
 | |
|         return Intrinsics.areEqual(this.result, completedContinuation.result) && Intrinsics.areEqual(this.cancelHandler, completedContinuation.cancelHandler) && Intrinsics.areEqual(this.onCancellation, completedContinuation.onCancellation) && Intrinsics.areEqual(this.idempotentResume, completedContinuation.idempotentResume) && Intrinsics.areEqual(this.cancelCause, completedContinuation.cancelCause);
 | |
|     }
 | |
| 
 | |
|     public final boolean getCancelled() {
 | |
|         return this.cancelCause != null;
 | |
|     }
 | |
| 
 | |
|     public int hashCode() {
 | |
|         Object obj = this.result;
 | |
|         int hashCode = (obj == null ? 0 : obj.hashCode()) * 31;
 | |
|         CancelHandler cancelHandler = this.cancelHandler;
 | |
|         int hashCode2 = (hashCode + (cancelHandler == null ? 0 : cancelHandler.hashCode())) * 31;
 | |
|         Function1<Throwable, Unit> function1 = this.onCancellation;
 | |
|         int hashCode3 = (hashCode2 + (function1 == null ? 0 : function1.hashCode())) * 31;
 | |
|         Object obj2 = this.idempotentResume;
 | |
|         int hashCode4 = (hashCode3 + (obj2 == null ? 0 : obj2.hashCode())) * 31;
 | |
|         Throwable th = this.cancelCause;
 | |
|         return hashCode4 + (th != null ? th.hashCode() : 0);
 | |
|     }
 | |
| 
 | |
|     public String toString() {
 | |
|         return "CompletedContinuation(result=" + this.result + ", cancelHandler=" + this.cancelHandler + ", onCancellation=" + this.onCancellation + ", idempotentResume=" + this.idempotentResume + ", cancelCause=" + this.cancelCause + ')';
 | |
|     }
 | |
| 
 | |
|     /* JADX WARN: Multi-variable type inference failed */
 | |
|     public CompletedContinuation(Object obj, CancelHandler cancelHandler, Function1<? super Throwable, Unit> function1, Object obj2, Throwable th) {
 | |
|         this.result = obj;
 | |
|         this.cancelHandler = cancelHandler;
 | |
|         this.onCancellation = function1;
 | |
|         this.idempotentResume = obj2;
 | |
|         this.cancelCause = th;
 | |
|     }
 | |
| 
 | |
|     public /* synthetic */ CompletedContinuation(Object obj, CancelHandler cancelHandler, Function1 function1, Object obj2, Throwable th, int i, DefaultConstructorMarker defaultConstructorMarker) {
 | |
|         this(obj, (i & 2) != 0 ? null : cancelHandler, (i & 4) != 0 ? null : function1, (i & 8) != 0 ? null : obj2, (i & 16) != 0 ? null : th);
 | |
|     }
 | |
| 
 | |
|     public final void invokeHandlers(CancellableContinuationImpl<?> cont, Throwable cause) {
 | |
|         CancelHandler cancelHandler = this.cancelHandler;
 | |
|         if (cancelHandler != null) {
 | |
|             cont.callCancelHandler(cancelHandler, cause);
 | |
|         }
 | |
|         Function1<Throwable, Unit> function1 = this.onCancellation;
 | |
|         if (function1 != null) {
 | |
|             cont.callOnCancellation(function1, cause);
 | |
|         }
 | |
|     }
 | |
| }
 |