package t8; import java.io.Serializable; import java.util.Collection; import java.util.Iterator; import java.util.List; import java.util.ListIterator; import java.util.RandomAccess; /* loaded from: classes2.dex */ public final class w implements List, Serializable, RandomAccess { /* renamed from: a, reason: collision with root package name */ public static final w f14455a = new w(); private w() { } public boolean a(Void r22) { d9.j.e(r22, "element"); return false; } @Override // java.util.List public /* bridge */ /* synthetic */ void add(int i10, Object obj) { throw new UnsupportedOperationException("Operation is not supported for read-only collection"); } @Override // java.util.List public boolean addAll(int i10, Collection collection) { throw new UnsupportedOperationException("Operation is not supported for read-only collection"); } @Override // java.util.List /* renamed from: b, reason: merged with bridge method [inline-methods] */ public Void get(int i10) { throw new IndexOutOfBoundsException("Empty list doesn't contain element at index " + i10 + '.'); } public int c() { return 0; } @Override // java.util.List, java.util.Collection public void clear() { throw new UnsupportedOperationException("Operation is not supported for read-only collection"); } @Override // java.util.List, java.util.Collection public final /* bridge */ boolean contains(Object obj) { if (obj instanceof Void) { return a((Void) obj); } return false; } @Override // java.util.List, java.util.Collection public boolean containsAll(Collection collection) { d9.j.e(collection, "elements"); return collection.isEmpty(); } public int d(Void r22) { d9.j.e(r22, "element"); return -1; } public int e(Void r22) { d9.j.e(r22, "element"); return -1; } @Override // java.util.List, java.util.Collection public boolean equals(Object obj) { return (obj instanceof List) && ((List) obj).isEmpty(); } @Override // java.util.List, java.util.Collection public int hashCode() { return 1; } @Override // java.util.List public final /* bridge */ int indexOf(Object obj) { if (obj instanceof Void) { return d((Void) obj); } return -1; } @Override // java.util.List, java.util.Collection public boolean isEmpty() { return true; } @Override // java.util.List, java.util.Collection, java.lang.Iterable public Iterator iterator() { return v.f14454a; } @Override // java.util.List public final /* bridge */ int lastIndexOf(Object obj) { if (obj instanceof Void) { return e((Void) obj); } return -1; } @Override // java.util.List public ListIterator listIterator() { return v.f14454a; } @Override // java.util.List public /* bridge */ /* synthetic */ Object remove(int i10) { throw new UnsupportedOperationException("Operation is not supported for read-only collection"); } @Override // java.util.List, java.util.Collection public boolean removeAll(Collection collection) { throw new UnsupportedOperationException("Operation is not supported for read-only collection"); } @Override // java.util.List, java.util.Collection public boolean retainAll(Collection collection) { throw new UnsupportedOperationException("Operation is not supported for read-only collection"); } @Override // java.util.List public /* bridge */ /* synthetic */ Object set(int i10, Object obj) { throw new UnsupportedOperationException("Operation is not supported for read-only collection"); } @Override // java.util.List, java.util.Collection public final /* bridge */ int size() { return c(); } @Override // java.util.List public List subList(int i10, int i11) { if (i10 == 0 && i11 == 0) { return this; } throw new IndexOutOfBoundsException("fromIndex: " + i10 + ", toIndex: " + i11); } @Override // java.util.List, java.util.Collection public Object[] toArray() { return d9.f.a(this); } public String toString() { return "[]"; } @Override // java.util.List, java.util.Collection public /* bridge */ /* synthetic */ boolean add(Object obj) { throw new UnsupportedOperationException("Operation is not supported for read-only collection"); } @Override // java.util.List, java.util.Collection public boolean addAll(Collection collection) { throw new UnsupportedOperationException("Operation is not supported for read-only collection"); } @Override // java.util.List public ListIterator listIterator(int i10) { if (i10 == 0) { return v.f14454a; } throw new IndexOutOfBoundsException("Index: " + i10); } @Override // java.util.List, java.util.Collection public boolean remove(Object obj) { throw new UnsupportedOperationException("Operation is not supported for read-only collection"); } @Override // java.util.List, java.util.Collection public Object[] toArray(Object[] objArr) { d9.j.e(objArr, "array"); return d9.f.b(this, objArr); } }