Files
rr3-apk/decompiled-community/sources/kotlin/collections/EmptyList.java
Daniel Elliott c080f0d97f Add Discord community version (64-bit only)
- Added realracing3-community.apk (71.57 MB)
- Removed 32-bit support (armeabi-v7a)
- Only includes arm64-v8a libraries
- Decompiled source code included
- Added README-community.md with analysis
2026-02-18 15:48:36 -08:00

187 lines
5.8 KiB
Java

package kotlin.collections;
import java.io.Serializable;
import java.util.Collection;
import java.util.Iterator;
import java.util.List;
import java.util.ListIterator;
import java.util.RandomAccess;
import kotlin.jvm.internal.CollectionToArray;
import kotlin.jvm.internal.Intrinsics;
import kotlin.jvm.internal.markers.KMappedMarker;
/* loaded from: classes5.dex */
public final class EmptyList implements List, Serializable, RandomAccess, KMappedMarker {
public static final EmptyList INSTANCE = new EmptyList();
private static final long serialVersionUID = -7390468764508069838L;
private final Object readResolve() {
return INSTANCE;
}
@Override // java.util.List
public /* bridge */ /* synthetic */ void add(int i, Object obj) {
throw new UnsupportedOperationException("Operation is not supported for read-only collection");
}
@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
public boolean addAll(int i, 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");
}
public boolean contains(Void element) {
Intrinsics.checkNotNullParameter(element, "element");
return false;
}
public int getSize() {
return 0;
}
@Override // java.util.List, java.util.Collection
public int hashCode() {
return 1;
}
public int indexOf(Void element) {
Intrinsics.checkNotNullParameter(element, "element");
return -1;
}
@Override // java.util.List, java.util.Collection
public boolean isEmpty() {
return true;
}
public int lastIndexOf(Void element) {
Intrinsics.checkNotNullParameter(element, "element");
return -1;
}
@Override // java.util.List
public /* bridge */ /* synthetic */ Object remove(int i) {
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 /* bridge */ /* synthetic */ Object set(int i, Object obj) {
throw new UnsupportedOperationException("Operation is not supported for read-only collection");
}
@Override // java.util.List, java.util.Collection
public Object[] toArray() {
return CollectionToArray.toArray(this);
}
@Override // java.util.List, java.util.Collection
public Object[] toArray(Object[] array) {
Intrinsics.checkNotNullParameter(array, "array");
return CollectionToArray.toArray(this, array);
}
public String toString() {
return "[]";
}
@Override // java.util.List, java.util.Collection
public final /* bridge */ boolean contains(Object obj) {
if (obj instanceof Void) {
return contains((Void) obj);
}
return false;
}
@Override // java.util.List
public final /* bridge */ int indexOf(Object obj) {
if (obj instanceof Void) {
return indexOf((Void) obj);
}
return -1;
}
@Override // java.util.List
public final /* bridge */ int lastIndexOf(Object obj) {
if (obj instanceof Void) {
return lastIndexOf((Void) obj);
}
return -1;
}
@Override // java.util.List, java.util.Collection
public final /* bridge */ int size() {
return getSize();
}
@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 boolean containsAll(Collection elements) {
Intrinsics.checkNotNullParameter(elements, "elements");
return elements.isEmpty();
}
@Override // java.util.List
public Void get(int i) {
throw new IndexOutOfBoundsException("Empty list doesn't contain element at index " + i + '.');
}
@Override // java.util.List, java.util.Collection, java.lang.Iterable
public Iterator iterator() {
return EmptyIterator.INSTANCE;
}
@Override // java.util.List
public ListIterator listIterator() {
return EmptyIterator.INSTANCE;
}
@Override // java.util.List
public ListIterator listIterator(int i) {
if (i != 0) {
throw new IndexOutOfBoundsException("Index: " + i);
}
return EmptyIterator.INSTANCE;
}
@Override // java.util.List
public List subList(int i, int i2) {
if (i == 0 && i2 == 0) {
return this;
}
throw new IndexOutOfBoundsException("fromIndex: " + i + ", toIndex: " + i2);
}
}