what-the-bank/sources/com/google/android/gms/common/api/BatchResult.java

27 lines
945 B
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package com.google.android.gms.common.api;
import com.google.android.gms.common.internal.Preconditions;
import java.util.concurrent.TimeUnit;
/* loaded from: classes.dex */
public final class BatchResult implements Result {
private final Status zaa;
private final PendingResult<?>[] zab;
public final <R extends Result> R take(BatchResultToken<R> batchResultToken) {
Preconditions.checkArgument(batchResultToken.mId < this.zab.length, "The result token does not belong to this batch");
return (R) this.zab[batchResultToken.mId].await(0L, TimeUnit.MILLISECONDS);
}
@Override // com.google.android.gms.common.api.Result
public final Status getStatus() {
return this.zaa;
}
/* JADX INFO: Access modifiers changed from: package-private */
public BatchResult(Status status, PendingResult<?>[] pendingResultArr) {
this.zaa = status;
this.zab = pendingResultArr;
}
}