185 lines
5.5 KiB
Java
185 lines
5.5 KiB
Java
package d0.t;
|
|
|
|
import d0.z.d.g;
|
|
import d0.z.d.g0.a;
|
|
import d0.z.d.m;
|
|
import java.io.Serializable;
|
|
import java.util.Collection;
|
|
import java.util.Iterator;
|
|
import java.util.List;
|
|
import java.util.ListIterator;
|
|
import java.util.RandomAccess;
|
|
/* compiled from: Collections.kt */
|
|
public final class w implements List, Serializable, RandomAccess, a {
|
|
public static final w i = new w();
|
|
private static final long serialVersionUID = -7390468764508069838L;
|
|
|
|
private final Object readResolve() {
|
|
return i;
|
|
}
|
|
|
|
@Override // java.util.List
|
|
public /* synthetic */ void add(int i2, Object obj) {
|
|
throw new UnsupportedOperationException("Operation is not supported for read-only collection");
|
|
}
|
|
|
|
@Override // java.util.List, java.util.Collection
|
|
public /* synthetic */ boolean add(Object obj) {
|
|
throw new UnsupportedOperationException("Operation is not supported for read-only collection");
|
|
}
|
|
|
|
@Override // java.util.List
|
|
public boolean addAll(int i2, Collection collection) {
|
|
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, 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 contains((Void) obj);
|
|
}
|
|
return false;
|
|
}
|
|
|
|
public boolean contains(Void r2) {
|
|
m.checkNotNullParameter(r2, "element");
|
|
return false;
|
|
}
|
|
|
|
@Override // java.util.List, java.util.Collection
|
|
public boolean containsAll(Collection collection) {
|
|
m.checkNotNullParameter(collection, "elements");
|
|
return collection.isEmpty();
|
|
}
|
|
|
|
@Override // java.util.List, java.util.Collection, java.lang.Object
|
|
public boolean equals(Object obj) {
|
|
return (obj instanceof List) && ((List) obj).isEmpty();
|
|
}
|
|
|
|
@Override // java.util.List
|
|
public Void get(int i2) {
|
|
throw new IndexOutOfBoundsException("Empty list doesn't contain element at index " + i2 + '.');
|
|
}
|
|
|
|
public int getSize() {
|
|
return 0;
|
|
}
|
|
|
|
@Override // java.util.List, java.util.Collection, java.lang.Object
|
|
public int hashCode() {
|
|
return 1;
|
|
}
|
|
|
|
@Override // java.util.List
|
|
public final /* bridge */ int indexOf(Object obj) {
|
|
if (obj instanceof Void) {
|
|
return indexOf((Void) obj);
|
|
}
|
|
return -1;
|
|
}
|
|
|
|
public int indexOf(Void r2) {
|
|
m.checkNotNullParameter(r2, "element");
|
|
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.i;
|
|
}
|
|
|
|
@Override // java.util.List
|
|
public final /* bridge */ int lastIndexOf(Object obj) {
|
|
if (obj instanceof Void) {
|
|
return lastIndexOf((Void) obj);
|
|
}
|
|
return -1;
|
|
}
|
|
|
|
public int lastIndexOf(Void r2) {
|
|
m.checkNotNullParameter(r2, "element");
|
|
return -1;
|
|
}
|
|
|
|
@Override // java.util.List
|
|
public ListIterator listIterator() {
|
|
return v.i;
|
|
}
|
|
|
|
@Override // java.util.List
|
|
public ListIterator listIterator(int i2) {
|
|
if (i2 == 0) {
|
|
return v.i;
|
|
}
|
|
throw new IndexOutOfBoundsException(c.d.b.a.a.k("Index: ", i2));
|
|
}
|
|
|
|
@Override // java.util.List
|
|
public /* synthetic */ Object remove(int i2) {
|
|
throw new UnsupportedOperationException("Operation is not supported for read-only collection");
|
|
}
|
|
|
|
@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 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 /* synthetic */ Object set(int i2, 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 getSize();
|
|
}
|
|
|
|
@Override // java.util.List
|
|
public List subList(int i2, int i3) {
|
|
if (i2 == 0 && i3 == 0) {
|
|
return this;
|
|
}
|
|
throw new IndexOutOfBoundsException(c.d.b.a.a.n("fromIndex: ", i2, ", toIndex: ", i3));
|
|
}
|
|
|
|
@Override // java.util.List, java.util.Collection
|
|
public Object[] toArray() {
|
|
return g.toArray(this);
|
|
}
|
|
|
|
@Override // java.util.List, java.util.Collection
|
|
public <T> T[] toArray(T[] tArr) {
|
|
return (T[]) g.toArray(this, tArr);
|
|
}
|
|
|
|
@Override // java.lang.Object
|
|
public String toString() {
|
|
return "[]";
|
|
}
|
|
}
|