2021-06-27 20:44:35 +00:00
|
|
|
package c.j.a.f;
|
|
|
|
|
|
|
|
import com.hcaptcha.sdk.HCaptchaException;
|
|
|
|
import java.util.ArrayList;
|
|
|
|
import java.util.Iterator;
|
|
|
|
import java.util.List;
|
|
|
|
public abstract class d<TResult> {
|
|
|
|
public TResult a;
|
|
|
|
public HCaptchaException b;
|
|
|
|
|
|
|
|
/* renamed from: c reason: collision with root package name */
|
2021-07-13 20:23:20 +00:00
|
|
|
public final List<c<TResult>> f1450c = new ArrayList();
|
2021-06-27 20:44:35 +00:00
|
|
|
public final List<a> d = new ArrayList();
|
|
|
|
|
|
|
|
public final void a() {
|
|
|
|
if (this.a != null) {
|
2021-07-13 20:23:20 +00:00
|
|
|
Iterator<c<TResult>> it = this.f1450c.iterator();
|
2021-06-27 20:44:35 +00:00
|
|
|
while (it.hasNext()) {
|
|
|
|
it.next().onSuccess(this.a);
|
|
|
|
it.remove();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (this.b != null) {
|
|
|
|
Iterator<a> it2 = this.d.iterator();
|
|
|
|
while (it2.hasNext()) {
|
|
|
|
it2.next().onFailure(this.b);
|
|
|
|
it2.remove();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|