package o; import java.util.Collection; import java.util.Iterator; /* renamed from: o.gai, reason: case insensitive filesystem */ /* loaded from: classes.dex */ public abstract class AbstractC14868gai implements Collection, InterfaceC14932gcO { public abstract int d(); @Override // java.util.Collection public final int size() { return d(); } @Override // java.util.Collection public boolean contains(E e) { AbstractC14868gai abstractC14868gai = this; if (abstractC14868gai.isEmpty()) { return false; } Iterator it = abstractC14868gai.iterator(); while (it.hasNext()) { if (C14957gcv.b(it.next(), e)) { return true; } } return false; } /* JADX WARN: Multi-variable type inference failed */ @Override // java.util.Collection public boolean containsAll(Collection collection) { C14957gcv.e(collection, ""); 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 size() == 0; } /* renamed from: o.gai$HBt */ /* loaded from: classes.dex */ static final class HBt extends AbstractC14961gcz implements InterfaceC14894gbR { private AbstractC14868gai a; @Override // o.InterfaceC14894gbR public final /* synthetic */ CharSequence invoke(Object obj) { return obj == this.a ? "(this Collection)" : String.valueOf(obj); } /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ /* JADX WARN: Multi-variable type inference failed */ HBt(AbstractC14868gai abstractC14868gai) { super(1); this.a = abstractC14868gai; } } public String toString() { return C14881gav.b(this, ", ", "[", "]", 0, null, new HBt(this), 24); } @Override // java.util.Collection public Object[] toArray() { return C14952gcq.c(this); } @Override // java.util.Collection public T[] toArray(T[] tArr) { C14957gcv.e(tArr, ""); return (T[]) C14952gcq.d(this, tArr); } @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 boolean removeAll(Collection collection) { throw new UnsupportedOperationException("Operation is not supported for read-only collection"); } @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 void clear() { 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 boolean add(E e) { throw new UnsupportedOperationException("Operation is not supported for read-only collection"); } }