32 lines
880 B
Java
32 lines
880 B
Java
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 */
|
|
public final List<c<TResult>> f1450c = new ArrayList();
|
|
public final List<a> d = new ArrayList();
|
|
|
|
public final void a() {
|
|
if (this.a != null) {
|
|
Iterator<c<TResult>> it = this.f1450c.iterator();
|
|
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();
|
|
}
|
|
}
|
|
}
|
|
}
|