mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2024-12-28 01:52:26 -06:00
40 lines
2.6 KiB
Java
40 lines
2.6 KiB
Java
package kotlin.collections;
|
|
|
|
import androidx.exifinterface.media.ExifInterface;
|
|
import java.util.List;
|
|
import java.util.RandomAccess;
|
|
import kotlin.Metadata;
|
|
import kotlin.jvm.internal.Intrinsics;
|
|
|
|
/* compiled from: SlidingWindow.kt */
|
|
@Metadata(d1 = {"\u0000,\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010 \n\u0002\b\u0002\n\u0002\u0010\b\n\u0002\b\b\n\u0002\u0010\u0002\n\u0002\b\u0002\b\u0000\u0018\u0000*\u0006\b\u0000\u0010\u0001 \u00012\b\u0012\u0004\u0012\u0002H\u00010\u00022\u00060\u0003j\u0002`\u0004B\u0013\u0012\f\u0010\u0005\u001a\b\u0012\u0004\u0012\u00028\u00000\u0006¢\u0006\u0002\u0010\u0007J\u0016\u0010\u000e\u001a\u00028\u00002\u0006\u0010\u000f\u001a\u00020\tH\u0096\u0002¢\u0006\u0002\u0010\u0010J\u0016\u0010\u0011\u001a\u00020\u00122\u0006\u0010\n\u001a\u00020\t2\u0006\u0010\u0013\u001a\u00020\tR\u000e\u0010\b\u001a\u00020\tX\u0082\u000e¢\u0006\u0002\n\u0000R\u000e\u0010\n\u001a\u00020\tX\u0082\u000e¢\u0006\u0002\n\u0000R\u0014\u0010\u0005\u001a\b\u0012\u0004\u0012\u00028\u00000\u0006X\u0082\u0004¢\u0006\u0002\n\u0000R\u0014\u0010\u000b\u001a\u00020\t8VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b\f\u0010\r¨\u0006\u0014"}, d2 = {"Lkotlin/collections/MovingSubList;", ExifInterface.LONGITUDE_EAST, "Lkotlin/collections/AbstractList;", "Ljava/util/RandomAccess;", "Lkotlin/collections/RandomAccess;", "list", "", "(Ljava/util/List;)V", "_size", "", "fromIndex", "size", "getSize", "()I", "get", "index", "(I)Ljava/lang/Object;", "move", "", "toIndex", "kotlin-stdlib"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
|
/* loaded from: classes3.dex */
|
|
public final class MovingSubList<E> extends AbstractList<E> implements RandomAccess {
|
|
private int _size;
|
|
private int fromIndex;
|
|
private final List<E> list;
|
|
|
|
@Override // kotlin.collections.AbstractList, kotlin.collections.AbstractCollection
|
|
/* renamed from: getSize, reason: from getter */
|
|
public int get_size() {
|
|
return this._size;
|
|
}
|
|
|
|
/* JADX WARN: Multi-variable type inference failed */
|
|
public MovingSubList(List<? extends E> list) {
|
|
Intrinsics.checkNotNullParameter(list, "list");
|
|
this.list = list;
|
|
}
|
|
|
|
public final void move(int fromIndex, int toIndex) {
|
|
AbstractList.INSTANCE.checkRangeIndexes$kotlin_stdlib(fromIndex, toIndex, this.list.size());
|
|
this.fromIndex = fromIndex;
|
|
this._size = toIndex - fromIndex;
|
|
}
|
|
|
|
@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);
|
|
}
|
|
}
|