package FSaI4_7.IFxWkV_5;

import java.util.Collection;
import java.util.Iterator;
/* compiled from: Collections.kt */
/* loaded from: classes.dex */
public final class KQgRr5e_0<T> implements Collection<T> {
    public final T[] KQgRr5e_0;
    public final boolean QxJ9d_1;

    public KQgRr5e_0(T[] tArr, boolean z) {
        FSaI4_7.Xgtqvk_8.QxJ9d_1.IFxWkV_5.QxJ9d_1(tArr, "values");
        this.KQgRr5e_0 = tArr;
        this.QxJ9d_1 = z;
    }

    public int KQgRr5e_0() {
        return this.KQgRr5e_0.length;
    }

    @Override // java.util.Collection
    public boolean add(T t) {
        throw new UnsupportedOperationException("Operation is not supported for read-only collection");
    }

    @Override // java.util.Collection
    public boolean addAll(Collection<? extends T> 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 X6FRs_4.m2KQgRr5e_0((Object[]) this.KQgRr5e_0, obj);
    }

    @Override // java.util.Collection
    public boolean containsAll(Collection<? extends Object> collection) {
        FSaI4_7.Xgtqvk_8.QxJ9d_1.IFxWkV_5.QxJ9d_1(collection, "elements");
        if (collection.isEmpty()) {
            return true;
        }
        Iterator<T> it = collection.iterator();
        while (it.hasNext()) {
            if (!contains(it.next())) {
                return false;
            }
        }
        return true;
    }

    @Override // java.util.Collection
    public boolean isEmpty() {
        return this.KQgRr5e_0.length == 0;
    }

    @Override // java.util.Collection, java.lang.Iterable
    public Iterator<T> iterator() {
        return FSaI4_7.Xgtqvk_8.QxJ9d_1.QxJ9d_1.KQgRr5e_0(this.KQgRr5e_0);
    }

    @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<? extends Object> collection) {
        throw new UnsupportedOperationException("Operation is not supported for read-only collection");
    }

    @Override // java.util.Collection
    public boolean retainAll(Collection<? extends Object> collection) {
        throw new UnsupportedOperationException("Operation is not supported for read-only collection");
    }

    @Override // java.util.Collection
    public final /* bridge */ int size() {
        return KQgRr5e_0();
    }

    @Override // java.util.Collection
    public final Object[] toArray() {
        return IMuAHx_6.KQgRr5e_0(this.KQgRr5e_0, this.QxJ9d_1);
    }

    @Override // java.util.Collection
    public <T> T[] toArray(T[] tArr) {
        return (T[]) FSaI4_7.Xgtqvk_8.QxJ9d_1.PGPF6hQ_2.KQgRr5e_0(this, tArr);
    }
}
