package t8; import java.util.Collection; import java.util.Iterator; /* loaded from: classes2.dex */ final class d implements Collection { /* renamed from: a, reason: collision with root package name */ private final Object[] f14430a; /* renamed from: b, reason: collision with root package name */ private final boolean f14431b; public d(Object[] objArr, boolean z10) { d9.j.e(objArr, "values"); this.f14430a = objArr; this.f14431b = z10; } public int a() { return this.f14430a.length; } @Override // java.util.Collection public boolean add(Object obj) { throw new UnsupportedOperationException("Operation is not supported for read-only collection"); } @Override // java.util.Collection public boolean addAll(Collection collection) { throw new UnsupportedOperationException("Operation is not supported for read-only collection"); } @Override // java.util.Collection public void clear() { throw new UnsupportedOperationException("Operation is not supported for read-only collection"); } @Override // java.util.Collection public boolean contains(Object obj) { return i.e(this.f14430a, obj); } @Override // java.util.Collection public boolean containsAll(Collection collection) { d9.j.e(collection, "elements"); Collection collection2 = collection; if (collection2.isEmpty()) { return true; } Iterator it = collection2.iterator(); while (it.hasNext()) { if (!contains(it.next())) { return false; } } return true; } @Override // java.util.Collection public boolean isEmpty() { return this.f14430a.length == 0; } @Override // java.util.Collection, java.lang.Iterable public Iterator iterator() { return d9.b.a(this.f14430a); } @Override // java.util.Collection public boolean remove(Object obj) { throw new UnsupportedOperationException("Operation is not supported for read-only collection"); } @Override // java.util.Collection public boolean removeAll(Collection collection) { throw new UnsupportedOperationException("Operation is not supported for read-only collection"); } @Override // java.util.Collection public boolean retainAll(Collection collection) { throw new UnsupportedOperationException("Operation is not supported for read-only collection"); } @Override // java.util.Collection public final /* bridge */ int size() { return a(); } @Override // java.util.Collection public Object[] toArray(Object[] objArr) { d9.j.e(objArr, "array"); return d9.f.b(this, objArr); } @Override // java.util.Collection public final Object[] toArray() { return l.a(this.f14430a, this.f14431b); } }