package com.facebook; import android.os.Handler; import java.util.AbstractList; import java.util.ArrayList; import java.util.Arrays; import java.util.Collection; import java.util.List; import java.util.concurrent.atomic.AtomicInteger; /* loaded from: classes.dex */ public class GraphRequestBatch extends AbstractList { private static AtomicInteger g = new AtomicInteger(); private Handler a; private List b; private int c = 0; private final String d = Integer.valueOf(g.incrementAndGet()).toString(); private List e = new ArrayList(); private String f; public interface Callback { void a(GraphRequestBatch graphRequestBatch); } public interface OnProgressCallback extends Callback { void a(GraphRequestBatch graphRequestBatch, long j, long j2); } public GraphRequestBatch(Collection collection) { this.b = new ArrayList(); this.b = new ArrayList(collection); } public void a(Callback callback) { if (this.e.contains(callback)) { return; } this.e.add(callback); } @Override // java.util.AbstractList, java.util.List /* renamed from: b, reason: merged with bridge method [inline-methods] */ public final GraphRequest set(int i, GraphRequest graphRequest) { return this.b.set(i, graphRequest); } public final GraphRequestAsyncTask c() { return d(); } @Override // java.util.AbstractList, java.util.AbstractCollection, java.util.Collection, java.util.List public final void clear() { this.b.clear(); } GraphRequestAsyncTask d() { return GraphRequest.b(this); } public final String e() { return this.f; } final Handler f() { return this.a; } final List g() { return this.e; } final String j() { return this.d; } final List k() { return this.b; } public int l() { return this.c; } @Override // java.util.AbstractCollection, java.util.Collection, java.util.List public final int size() { return this.b.size(); } List b() { return GraphRequest.a(this); } @Override // java.util.AbstractList, java.util.List public final GraphRequest get(int i) { return this.b.get(i); } @Override // java.util.AbstractList, java.util.List public final GraphRequest remove(int i) { return this.b.remove(i); } @Override // java.util.AbstractList, java.util.AbstractCollection, java.util.Collection, java.util.List /* renamed from: a, reason: merged with bridge method [inline-methods] */ public final boolean add(GraphRequest graphRequest) { return this.b.add(graphRequest); } @Override // java.util.AbstractList, java.util.List /* renamed from: a, reason: merged with bridge method [inline-methods] */ public final void add(int i, GraphRequest graphRequest) { this.b.add(i, graphRequest); } final void a(Handler handler) { this.a = handler; } public final List a() { return b(); } public GraphRequestBatch(GraphRequest... graphRequestArr) { this.b = new ArrayList(); this.b = Arrays.asList(graphRequestArr); } }