package g;

import java.util.Arrays;
import java.util.Collection;
import java.util.Iterator;
import java.util.NoSuchElementException;

/* JADX INFO: compiled from: UIntArray.kt */
/* JADX INFO: loaded from: classes.dex */
@i
public final class t implements Collection<s>, g.h0.c.g0.a {

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final int[] f4193b;

    /* JADX INFO: compiled from: UIntArray.kt */
    @i
    public static final class a implements Iterator<s>, g.h0.c.g0.a {

        /* JADX INFO: renamed from: b, reason: collision with root package name */
        public final int[] f4194b;

        /* JADX INFO: renamed from: e, reason: collision with root package name */
        public int f4195e;

        public a(int[] iArr) {
            g.h0.c.l.f(iArr, "array");
            this.f4194b = iArr;
        }

        @Override // java.util.Iterator
        public boolean hasNext() {
            return this.f4195e < this.f4194b.length;
        }

        @Override // java.util.Iterator
        public s next() {
            int i2 = this.f4195e;
            int[] iArr = this.f4194b;
            if (i2 >= iArr.length) {
                throw new NoSuchElementException(String.valueOf(this.f4195e));
            }
            this.f4195e = i2 + 1;
            return new s(iArr[i2]);
        }

        @Override // java.util.Iterator
        public void remove() {
            throw new UnsupportedOperationException("Operation is not supported for read-only collection");
        }
    }

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

    @Override // java.util.Collection
    public boolean addAll(Collection<? extends s> 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 final boolean contains(Object obj) {
        if (!(obj instanceof s)) {
            return false;
        }
        return f.a.y.a.F(this.f4193b, ((s) obj).f4192e);
    }

    @Override // java.util.Collection
    public boolean containsAll(Collection<? extends Object> collection) {
        g.h0.c.l.f(collection, "elements");
        int[] iArr = this.f4193b;
        g.h0.c.l.f(collection, "elements");
        if (!collection.isEmpty()) {
            for (Object obj : collection) {
                if (!((obj instanceof s) && f.a.y.a.F(iArr, ((s) obj).f4192e))) {
                    return false;
                }
            }
        }
        return true;
    }

    @Override // java.util.Collection
    public boolean equals(Object obj) {
        return (obj instanceof t) && g.h0.c.l.a(this.f4193b, ((t) obj).f4193b);
    }

    @Override // java.util.Collection
    public int hashCode() {
        return Arrays.hashCode(this.f4193b);
    }

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

    @Override // java.util.Collection, java.lang.Iterable
    public Iterator<s> iterator() {
        return new a(this.f4193b);
    }

    @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 int size() {
        return this.f4193b.length;
    }

    @Override // java.util.Collection
    public Object[] toArray() {
        return g.h0.c.f.a(this);
    }

    @Override // java.util.Collection
    public <T> T[] toArray(T[] tArr) {
        g.h0.c.l.f(tArr, "array");
        return (T[]) g.h0.c.f.b(this, tArr);
    }

    public String toString() {
        int[] iArr = this.f4193b;
        StringBuilder sbB = d.b.a.a.a.B("UIntArray(storage=");
        sbB.append(Arrays.toString(iArr));
        sbB.append(')');
        return sbB.toString();
    }
}
