* Decompile and recreate Soul Browser v1.4.85 with APK CI builds Co-authored-by: KaKi87 <KaKi87@pm.me> * Fix CI build: include bundled google.jks and remove PR trigger The apktool build failed in CI because app/unknown/.../google.jks was excluded by the *.jks gitignore rule. Whitelist app-bundled JKS files and commit the missing resource. Also remove the redundant pull_request workflow trigger. Co-authored-by: KaKi87 <KaKi87@pm.me> * Change package ID to com.github.kaki87.soulbrowser Rename the application ID so the rebuilt APK can be installed alongside the original Soul Browser from Google Play. - Update AndroidManifest package, permissions, providers, and actions - Update R class references in smali (com/github/kaki87/soulbrowser/R) - Update shortcuts.xml targetPackage - Rename app label to "Soul Rebuild" for easy identification Co-authored-by: KaKi87 <KaKi87@pm.me> * Fix install compatibility: remove split APK metadata and bundle native libs The rebuilt APK still declared requiredSplitTypes and Play Store split metadata, causing Android to reject standalone installs as incompatible. - Remove requiredSplitTypes and split-related manifest meta-data - Merge native libs from all ABI splits with uncompressed storage - Page-align before signing for extractNativeLibs=false - Add .so to apktool doNotCompress list Co-authored-by: KaKi87 <KaKi87@pm.me> * Fix install failure: use apksigner v2/v3 and bundle arm64 native libs Target SDK 36 requires APK Signature Scheme v2+, but jarsigner only produces v1 signatures, causing Android to reject the install. - Sign with apksigner (v1+v2+v3) instead of jarsigner - Add arm64-v8a native libraries from universal Soul Browser 1.4.79 - Set extractNativeLibs=true for reliable sideload installs - Commit stable debug keystore for consistent signatures across builds Co-authored-by: KaKi87 <KaKi87@pm.me> * Add committed debug keystore for consistent APK signatures Co-authored-by: KaKi87 <KaKi87@pm.me> * Fix startup crash: use original classes2.dex desugar libraries Apktool recompiles smali_classes2 into a broken classes2.dex, causing ClassNotFoundException for j$.com.android.tools.r8.a at ML Kit init. Inject the original classes2.dex (Java 8+ desugar libs) after apktool build instead of using the recompiled version. Co-authored-by: KaKi87 <KaKi87@pm.me> * Fix missing drawable resources from density split APKs The base APK is an app bundle module; density-specific drawables like seek_thumb_nor_b live in config.xhdpi.apk and were missing after rebuild, causing Resources$NotFoundException at runtime. - Merge non-9-patch resources from split APKs before apktool build - Sync public.xml IDs from R smali only when backing files exist - Add 713 density-specific resource IDs to public.xml Co-authored-by: KaKi87 <KaKi87@pm.me> --------- Co-authored-by: Cursor Agent <cursoragent@cursor.com>
343 lines
20 KiB
Java
343 lines
20 KiB
Java
package kotlin.collections;
|
|
|
|
import com.google.android.gms.ads.RequestConfiguration;
|
|
import java.util.Collection;
|
|
import java.util.Iterator;
|
|
import java.util.List;
|
|
import java.util.ListIterator;
|
|
import java.util.NoSuchElementException;
|
|
import java.util.RandomAccess;
|
|
import kotlin.Metadata;
|
|
import kotlin.SinceKotlin;
|
|
import kotlin.jvm.internal.DefaultConstructorMarker;
|
|
import kotlin.jvm.internal.Intrinsics;
|
|
import kotlin.jvm.internal.SourceDebugExtension;
|
|
import kotlin.jvm.internal.markers.KMappedMarker;
|
|
import org.jetbrains.annotations.NotNull;
|
|
import org.jetbrains.annotations.Nullable;
|
|
|
|
@SinceKotlin(version = "1.1")
|
|
@Metadata(d1 = {"\u00008\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0010 \n\u0002\b\u0003\n\u0002\u0010\b\n\u0002\b\u0006\n\u0002\u0010(\n\u0002\b\u0005\n\u0002\u0010*\n\u0002\b\u0004\n\u0002\u0010\u000b\n\u0000\n\u0002\u0010\u0000\n\u0002\b\u0006\b'\u0018\u0000 *\u0006\b\u0000\u0010\u0001 \u00012\b\u0012\u0004\u0012\u0002H\u00010\u00022\b\u0012\u0004\u0012\u0002H\u00010\u0003:\u0004\u001d\u001e\u001f B\t\b\u0004¢\u0006\u0004\b\u0004\u0010\u0005J\u0016\u0010\n\u001a\u00028\u00002\u0006\u0010\u000b\u001a\u00020\u0007H¦\u0002¢\u0006\u0002\u0010\fJ\u000f\u0010\r\u001a\b\u0012\u0004\u0012\u00028\u00000\u000eH\u0096\u0002J\u0015\u0010\u000f\u001a\u00020\u00072\u0006\u0010\u0010\u001a\u00028\u0000H\u0016¢\u0006\u0002\u0010\u0011J\u0015\u0010\u0012\u001a\u00020\u00072\u0006\u0010\u0010\u001a\u00028\u0000H\u0016¢\u0006\u0002\u0010\u0011J\u000e\u0010\u0013\u001a\b\u0012\u0004\u0012\u00028\u00000\u0014H\u0016J\u0016\u0010\u0013\u001a\b\u0012\u0004\u0012\u00028\u00000\u00142\u0006\u0010\u000b\u001a\u00020\u0007H\u0016J\u001e\u0010\u0015\u001a\b\u0012\u0004\u0012\u00028\u00000\u00032\u0006\u0010\u0016\u001a\u00020\u00072\u0006\u0010\u0017\u001a\u00020\u0007H\u0016J\u0013\u0010\u0018\u001a\u00020\u00192\b\u0010\u001a\u001a\u0004\u0018\u00010\u001bH\u0096\u0002J\b\u0010\u001c\u001a\u00020\u0007H\u0016R\u0012\u0010\u0006\u001a\u00020\u0007X¦\u0004¢\u0006\u0006\u001a\u0004\b\b\u0010\t¨\u0006!"}, d2 = {"Lkotlin/collections/AbstractList;", "E", "Lkotlin/collections/AbstractCollection;", RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED, "<init>", "()V", "size", RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED, "getSize", "()I", "get", "index", "(I)Ljava/lang/Object;", "iterator", RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED, "indexOf", "element", "(Ljava/lang/Object;)I", "lastIndexOf", "listIterator", RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED, "subList", "fromIndex", "toIndex", "equals", RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED, "other", RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED, "hashCode", "SubList", "IteratorImpl", "ListIteratorImpl", "Companion", "kotlin-stdlib"}, k = 1, mv = {2, 2, 0}, xi = 48)
|
|
@SourceDebugExtension({"SMAP\nAbstractList.kt\nKotlin\n*S Kotlin\n*F\n+ 1 AbstractList.kt\nkotlin/collections/AbstractList\n+ 2 _Collections.kt\nkotlin/collections/CollectionsKt___CollectionsKt\n*L\n1#1,181:1\n360#2,7:182\n388#2,7:189\n*S KotlinDebug\n*F\n+ 1 AbstractList.kt\nkotlin/collections/AbstractList\n*L\n27#1:182,7\n29#1:189,7\n*E\n"})
|
|
/* loaded from: classes3.dex */
|
|
public abstract class AbstractList<E> extends AbstractCollection<E> implements List<E>, KMappedMarker {
|
|
|
|
/* renamed from: Companion, reason: from kotlin metadata */
|
|
@NotNull
|
|
public static final Companion INSTANCE = new Companion(null);
|
|
private static final int maxArraySize = 2147483639;
|
|
|
|
@Metadata(d1 = {"\u0000*\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0003\n\u0002\u0010\u0002\n\u0000\n\u0002\u0010\b\n\u0002\b\u0013\n\u0002\u0010\u001e\n\u0002\b\u0002\n\u0002\u0010\u000b\n\u0002\b\u0003\b\u0080\u0003\u0018\u00002\u00020\u0001B\t\b\u0002¢\u0006\u0004\b\u0002\u0010\u0003J\u001d\u0010\u0004\u001a\u00020\u00052\u0006\u0010\u0006\u001a\u00020\u00072\u0006\u0010\b\u001a\u00020\u0007H\u0000¢\u0006\u0002\b\tJ\u001d\u0010\n\u001a\u00020\u00052\u0006\u0010\u0006\u001a\u00020\u00072\u0006\u0010\b\u001a\u00020\u0007H\u0000¢\u0006\u0002\b\u000bJ%\u0010\f\u001a\u00020\u00052\u0006\u0010\r\u001a\u00020\u00072\u0006\u0010\u000e\u001a\u00020\u00072\u0006\u0010\b\u001a\u00020\u0007H\u0000¢\u0006\u0002\b\u000fJ%\u0010\u0010\u001a\u00020\u00052\u0006\u0010\u0011\u001a\u00020\u00072\u0006\u0010\u0012\u001a\u00020\u00072\u0006\u0010\b\u001a\u00020\u0007H\u0000¢\u0006\u0002\b\u0013J\u001d\u0010\u0015\u001a\u00020\u00072\u0006\u0010\u0016\u001a\u00020\u00072\u0006\u0010\u0017\u001a\u00020\u0007H\u0000¢\u0006\u0002\b\u0018J\u0019\u0010\u0019\u001a\u00020\u00072\n\u0010\u001a\u001a\u0006\u0012\u0002\b\u00030\u001bH\u0000¢\u0006\u0002\b\u001cJ%\u0010\u001d\u001a\u00020\u001e2\n\u0010\u001a\u001a\u0006\u0012\u0002\b\u00030\u001b2\n\u0010\u001f\u001a\u0006\u0012\u0002\b\u00030\u001bH\u0000¢\u0006\u0002\b R\u000e\u0010\u0014\u001a\u00020\u0007X\u0082T¢\u0006\u0002\n\u0000¨\u0006!"}, d2 = {"Lkotlin/collections/AbstractList$Companion;", RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED, "<init>", "()V", "checkElementIndex", RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED, "index", RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED, "size", "checkElementIndex$kotlin_stdlib", "checkPositionIndex", "checkPositionIndex$kotlin_stdlib", "checkRangeIndexes", "fromIndex", "toIndex", "checkRangeIndexes$kotlin_stdlib", "checkBoundsIndexes", "startIndex", "endIndex", "checkBoundsIndexes$kotlin_stdlib", "maxArraySize", "newCapacity", "oldCapacity", "minCapacity", "newCapacity$kotlin_stdlib", "orderedHashCode", "c", RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED, "orderedHashCode$kotlin_stdlib", "orderedEquals", RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED, "other", "orderedEquals$kotlin_stdlib", "kotlin-stdlib"}, k = 1, mv = {2, 2, 0}, xi = 48)
|
|
/* loaded from: classes3.dex */
|
|
public static final class Companion {
|
|
public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
|
|
this();
|
|
}
|
|
|
|
public final void checkBoundsIndexes$kotlin_stdlib(int startIndex, int endIndex, int size) {
|
|
if (startIndex >= 0 && endIndex <= size) {
|
|
if (startIndex <= endIndex) {
|
|
} else {
|
|
throw new IllegalArgumentException(androidx.work.impl.workers.a.s("startIndex: ", startIndex, endIndex, " > endIndex: "));
|
|
}
|
|
} else {
|
|
StringBuilder u = android.support.v4.media.a.u("startIndex: ", startIndex, endIndex, ", endIndex: ", ", size: ");
|
|
u.append(size);
|
|
throw new IndexOutOfBoundsException(u.toString());
|
|
}
|
|
}
|
|
|
|
public final void checkElementIndex$kotlin_stdlib(int index, int size) {
|
|
if (index >= 0 && index < size) {
|
|
} else {
|
|
throw new IndexOutOfBoundsException(androidx.work.impl.workers.a.s("index: ", index, size, ", size: "));
|
|
}
|
|
}
|
|
|
|
public final void checkPositionIndex$kotlin_stdlib(int index, int size) {
|
|
if (index >= 0 && index <= size) {
|
|
} else {
|
|
throw new IndexOutOfBoundsException(androidx.work.impl.workers.a.s("index: ", index, size, ", size: "));
|
|
}
|
|
}
|
|
|
|
public final void checkRangeIndexes$kotlin_stdlib(int fromIndex, int toIndex, int size) {
|
|
if (fromIndex >= 0 && toIndex <= size) {
|
|
if (fromIndex <= toIndex) {
|
|
} else {
|
|
throw new IllegalArgumentException(androidx.work.impl.workers.a.s("fromIndex: ", fromIndex, toIndex, " > toIndex: "));
|
|
}
|
|
} else {
|
|
StringBuilder u = android.support.v4.media.a.u("fromIndex: ", fromIndex, toIndex, ", toIndex: ", ", size: ");
|
|
u.append(size);
|
|
throw new IndexOutOfBoundsException(u.toString());
|
|
}
|
|
}
|
|
|
|
public final int newCapacity$kotlin_stdlib(int oldCapacity, int minCapacity) {
|
|
int i = oldCapacity + (oldCapacity >> 1);
|
|
if (i - minCapacity < 0) {
|
|
i = minCapacity;
|
|
}
|
|
if (i - AbstractList.maxArraySize <= 0) {
|
|
return i;
|
|
}
|
|
if (minCapacity > AbstractList.maxArraySize) {
|
|
return Integer.MAX_VALUE;
|
|
}
|
|
return AbstractList.maxArraySize;
|
|
}
|
|
|
|
public final boolean orderedEquals$kotlin_stdlib(@NotNull Collection<?> c2, @NotNull Collection<?> other) {
|
|
Intrinsics.checkNotNullParameter(c2, "c");
|
|
Intrinsics.checkNotNullParameter(other, "other");
|
|
if (c2.size() != other.size()) {
|
|
return false;
|
|
}
|
|
Iterator<?> it = other.iterator();
|
|
Iterator<?> it2 = c2.iterator();
|
|
while (it2.hasNext()) {
|
|
if (!Intrinsics.areEqual(it2.next(), it.next())) {
|
|
return false;
|
|
}
|
|
}
|
|
return true;
|
|
}
|
|
|
|
public final int orderedHashCode$kotlin_stdlib(@NotNull Collection<?> c2) {
|
|
int i;
|
|
Intrinsics.checkNotNullParameter(c2, "c");
|
|
int i2 = 1;
|
|
for (Object obj : c2) {
|
|
int i3 = i2 * 31;
|
|
if (obj != null) {
|
|
i = obj.hashCode();
|
|
} else {
|
|
i = 0;
|
|
}
|
|
i2 = i3 + i;
|
|
}
|
|
return i2;
|
|
}
|
|
|
|
private Companion() {
|
|
}
|
|
}
|
|
|
|
@Metadata(d1 = {"\u0000\u001c\n\u0002\u0018\u0002\n\u0002\u0010(\n\u0002\b\u0003\n\u0002\u0010\b\n\u0002\b\u0005\n\u0002\u0010\u000b\n\u0002\b\u0003\b\u0092\u0004\u0018\u00002\b\u0012\u0004\u0012\u00028\u00000\u0001B\u0007¢\u0006\u0004\b\u0002\u0010\u0003J\t\u0010\n\u001a\u00020\u000bH\u0096\u0002J\u000e\u0010\f\u001a\u00028\u0000H\u0096\u0002¢\u0006\u0002\u0010\rR\u001a\u0010\u0004\u001a\u00020\u0005X\u0084\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b\u0006\u0010\u0007\"\u0004\b\b\u0010\t¨\u0006\u000e"}, d2 = {"Lkotlin/collections/AbstractList$IteratorImpl;", RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED, "<init>", "(Lkotlin/collections/AbstractList;)V", "index", RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED, "getIndex", "()I", "setIndex", "(I)V", "hasNext", RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED, "next", "()Ljava/lang/Object;", "kotlin-stdlib"}, k = 1, mv = {2, 2, 0}, xi = 48)
|
|
/* loaded from: classes3.dex */
|
|
public class IteratorImpl implements Iterator<E>, KMappedMarker {
|
|
private int index;
|
|
|
|
public IteratorImpl() {
|
|
}
|
|
|
|
public final int getIndex() {
|
|
return this.index;
|
|
}
|
|
|
|
@Override // java.util.Iterator
|
|
public boolean hasNext() {
|
|
if (this.index < AbstractList.this.size()) {
|
|
return true;
|
|
}
|
|
return false;
|
|
}
|
|
|
|
@Override // java.util.Iterator
|
|
public E next() {
|
|
if (hasNext()) {
|
|
AbstractList<E> abstractList = AbstractList.this;
|
|
int i = this.index;
|
|
this.index = i + 1;
|
|
return abstractList.get(i);
|
|
}
|
|
throw new NoSuchElementException();
|
|
}
|
|
|
|
@Override // java.util.Iterator
|
|
public void remove() {
|
|
throw new UnsupportedOperationException("Operation is not supported for read-only collection");
|
|
}
|
|
|
|
public final void setIndex(int i) {
|
|
this.index = i;
|
|
}
|
|
}
|
|
|
|
@Metadata(d1 = {"\u0000\"\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0010*\n\u0000\n\u0002\u0010\b\n\u0002\b\u0003\n\u0002\u0010\u000b\n\u0002\b\u0005\b\u0092\u0004\u0018\u00002\f0\u0001R\b\u0012\u0004\u0012\u00028\u00000\u00022\b\u0012\u0004\u0012\u00028\u00000\u0003B\u000f\u0012\u0006\u0010\u0004\u001a\u00020\u0005¢\u0006\u0004\b\u0006\u0010\u0007J\b\u0010\b\u001a\u00020\tH\u0016J\b\u0010\n\u001a\u00020\u0005H\u0016J\r\u0010\u000b\u001a\u00028\u0000H\u0016¢\u0006\u0002\u0010\fJ\b\u0010\r\u001a\u00020\u0005H\u0016¨\u0006\u000e"}, d2 = {"Lkotlin/collections/AbstractList$ListIteratorImpl;", "Lkotlin/collections/AbstractList$IteratorImpl;", "Lkotlin/collections/AbstractList;", RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED, "index", RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED, "<init>", "(Lkotlin/collections/AbstractList;I)V", "hasPrevious", RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED, "nextIndex", "previous", "()Ljava/lang/Object;", "previousIndex", "kotlin-stdlib"}, k = 1, mv = {2, 2, 0}, xi = 48)
|
|
/* loaded from: classes3.dex */
|
|
public class ListIteratorImpl extends AbstractList<E>.IteratorImpl implements ListIterator<E>, KMappedMarker {
|
|
public ListIteratorImpl(int i) {
|
|
super();
|
|
AbstractList.INSTANCE.checkPositionIndex$kotlin_stdlib(i, AbstractList.this.size());
|
|
setIndex(i);
|
|
}
|
|
|
|
@Override // java.util.ListIterator
|
|
public void add(E e) {
|
|
throw new UnsupportedOperationException("Operation is not supported for read-only collection");
|
|
}
|
|
|
|
@Override // java.util.ListIterator
|
|
public boolean hasPrevious() {
|
|
if (getIndex() > 0) {
|
|
return true;
|
|
}
|
|
return false;
|
|
}
|
|
|
|
@Override // java.util.ListIterator
|
|
public int nextIndex() {
|
|
return getIndex();
|
|
}
|
|
|
|
@Override // java.util.ListIterator
|
|
public E previous() {
|
|
if (hasPrevious()) {
|
|
AbstractList<E> abstractList = AbstractList.this;
|
|
setIndex(getIndex() - 1);
|
|
return abstractList.get(getIndex());
|
|
}
|
|
throw new NoSuchElementException();
|
|
}
|
|
|
|
@Override // java.util.ListIterator
|
|
public int previousIndex() {
|
|
return getIndex() - 1;
|
|
}
|
|
|
|
@Override // java.util.ListIterator
|
|
public void set(E e) {
|
|
throw new UnsupportedOperationException("Operation is not supported for read-only collection");
|
|
}
|
|
}
|
|
|
|
@Metadata(d1 = {"\u0000$\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\b\n\u0002\b\u000b\n\u0002\u0010 \n\u0000\b\u0002\u0018\u0000*\u0006\b\u0001\u0010\u0001 \u00012\b\u0012\u0004\u0012\u0002H\u00010\u00022\u00060\u0003j\u0002`\u0004B%\u0012\f\u0010\u0005\u001a\b\u0012\u0004\u0012\u00028\u00010\u0002\u0012\u0006\u0010\u0006\u001a\u00020\u0007\u0012\u0006\u0010\b\u001a\u00020\u0007¢\u0006\u0004\b\t\u0010\nJ\u0016\u0010\f\u001a\u00028\u00012\u0006\u0010\r\u001a\u00020\u0007H\u0096\u0002¢\u0006\u0002\u0010\u000eJ\u001e\u0010\u0012\u001a\b\u0012\u0004\u0012\u00028\u00010\u00132\u0006\u0010\u0006\u001a\u00020\u00072\u0006\u0010\b\u001a\u00020\u0007H\u0016R\u0014\u0010\u0005\u001a\b\u0012\u0004\u0012\u00028\u00010\u0002X\u0082\u0004¢\u0006\u0002\n\u0000R\u000e\u0010\u0006\u001a\u00020\u0007X\u0082\u0004¢\u0006\u0002\n\u0000R\u000e\u0010\u000b\u001a\u00020\u0007X\u0082\u000e¢\u0006\u0002\n\u0000R\u0014\u0010\u000f\u001a\u00020\u00078VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b\u0010\u0010\u0011¨\u0006\u0014"}, d2 = {"Lkotlin/collections/AbstractList$SubList;", "E", "Lkotlin/collections/AbstractList;", "Ljava/util/RandomAccess;", "Lkotlin/collections/RandomAccess;", "list", "fromIndex", RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED, "toIndex", "<init>", "(Lkotlin/collections/AbstractList;II)V", "_size", "get", "index", "(I)Ljava/lang/Object;", "size", "getSize", "()I", "subList", RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED, "kotlin-stdlib"}, k = 1, mv = {2, 2, 0}, xi = 48)
|
|
/* loaded from: classes3.dex */
|
|
public static final class SubList<E> extends AbstractList<E> implements RandomAccess {
|
|
private int _size;
|
|
private final int fromIndex;
|
|
|
|
@NotNull
|
|
private final AbstractList<E> list;
|
|
|
|
/* JADX WARN: Multi-variable type inference failed */
|
|
public SubList(@NotNull AbstractList<? extends E> list, int i, int i2) {
|
|
Intrinsics.checkNotNullParameter(list, "list");
|
|
this.list = list;
|
|
this.fromIndex = i;
|
|
AbstractList.INSTANCE.checkRangeIndexes$kotlin_stdlib(i, i2, list.size());
|
|
this._size = i2 - i;
|
|
}
|
|
|
|
@Override // kotlin.collections.AbstractList, java.util.List
|
|
public E get(int index) {
|
|
AbstractList.INSTANCE.checkElementIndex$kotlin_stdlib(index, this._size);
|
|
return this.list.get(this.fromIndex + index);
|
|
}
|
|
|
|
@Override // kotlin.collections.AbstractList, kotlin.collections.AbstractCollection
|
|
/* renamed from: getSize, reason: from getter */
|
|
public int get_size() {
|
|
return this._size;
|
|
}
|
|
|
|
@Override // kotlin.collections.AbstractList, java.util.List
|
|
@NotNull
|
|
public List<E> subList(int fromIndex, int toIndex) {
|
|
AbstractList.INSTANCE.checkRangeIndexes$kotlin_stdlib(fromIndex, toIndex, this._size);
|
|
AbstractList<E> abstractList = this.list;
|
|
int i = this.fromIndex;
|
|
return new SubList(abstractList, fromIndex + i, i + toIndex);
|
|
}
|
|
}
|
|
|
|
@Override // java.util.List
|
|
public void add(int i, E e) {
|
|
throw new UnsupportedOperationException("Operation is not supported for read-only collection");
|
|
}
|
|
|
|
@Override // java.util.List
|
|
public boolean addAll(int i, Collection<? extends E> collection) {
|
|
throw new UnsupportedOperationException("Operation is not supported for read-only collection");
|
|
}
|
|
|
|
@Override // java.util.Collection, java.util.List
|
|
public boolean equals(@Nullable Object other) {
|
|
if (other == this) {
|
|
return true;
|
|
}
|
|
if (!(other instanceof List)) {
|
|
return false;
|
|
}
|
|
return INSTANCE.orderedEquals$kotlin_stdlib(this, (Collection) other);
|
|
}
|
|
|
|
public abstract E get(int index);
|
|
|
|
@Override // kotlin.collections.AbstractCollection
|
|
/* renamed from: getSize */
|
|
public abstract int get_size();
|
|
|
|
@Override // java.util.Collection, java.util.List
|
|
public int hashCode() {
|
|
return INSTANCE.orderedHashCode$kotlin_stdlib(this);
|
|
}
|
|
|
|
public int indexOf(Object element) {
|
|
Iterator<E> it = iterator();
|
|
int i = 0;
|
|
while (it.hasNext()) {
|
|
if (Intrinsics.areEqual(it.next(), element)) {
|
|
return i;
|
|
}
|
|
i++;
|
|
}
|
|
return -1;
|
|
}
|
|
|
|
@Override // kotlin.collections.AbstractCollection, java.util.Collection, java.lang.Iterable
|
|
@NotNull
|
|
public Iterator<E> iterator() {
|
|
return new IteratorImpl();
|
|
}
|
|
|
|
public int lastIndexOf(Object element) {
|
|
ListIterator<E> listIterator = listIterator(size());
|
|
while (listIterator.hasPrevious()) {
|
|
if (Intrinsics.areEqual(listIterator.previous(), element)) {
|
|
return listIterator.nextIndex();
|
|
}
|
|
}
|
|
return -1;
|
|
}
|
|
|
|
@Override // java.util.List
|
|
@NotNull
|
|
public ListIterator<E> listIterator() {
|
|
return new ListIteratorImpl(0);
|
|
}
|
|
|
|
@Override // java.util.List
|
|
public E remove(int i) {
|
|
throw new UnsupportedOperationException("Operation is not supported for read-only collection");
|
|
}
|
|
|
|
@Override // java.util.List
|
|
public E set(int i, E e) {
|
|
throw new UnsupportedOperationException("Operation is not supported for read-only collection");
|
|
}
|
|
|
|
@Override // java.util.List
|
|
@NotNull
|
|
public List<E> subList(int fromIndex, int toIndex) {
|
|
return new SubList(this, fromIndex, toIndex);
|
|
}
|
|
|
|
@Override // java.util.List
|
|
@NotNull
|
|
public ListIterator<E> listIterator(int index) {
|
|
return new ListIteratorImpl(index);
|
|
}
|
|
}
|