ADD week 5
This commit is contained in:
131
02-Easy5/E5/sources/kotlin/collections/AbstractCollection.java
Normal file
131
02-Easy5/E5/sources/kotlin/collections/AbstractCollection.java
Normal file
@ -0,0 +1,131 @@
|
||||
package kotlin.collections;
|
||||
|
||||
import java.util.Collection;
|
||||
import java.util.Iterator;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.functions.Function1;
|
||||
import kotlin.jvm.internal.CollectionToArray;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.jvm.internal.markers.KMappedMarker;
|
||||
|
||||
/* compiled from: AbstractCollection.kt */
|
||||
@Metadata(d1 = {"\u00006\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u001e\n\u0002\b\u0002\n\u0002\u0010\b\n\u0002\b\u0003\n\u0002\u0010\u000b\n\u0002\b\u0006\n\u0002\u0010(\n\u0000\n\u0002\u0010\u0011\n\u0002\u0010\u0000\n\u0002\b\u0005\n\u0002\u0010\u000e\n\u0000\b'\u0018\u0000*\u0006\b\u0000\u0010\u0001 \u00012\b\u0012\u0004\u0012\u0002H\u00010\u0002B\u0007\b\u0004¢\u0006\u0002\u0010\u0003J\u0016\u0010\b\u001a\u00020\t2\u0006\u0010\n\u001a\u00028\u0000H\u0096\u0002¢\u0006\u0002\u0010\u000bJ\u0016\u0010\f\u001a\u00020\t2\f\u0010\r\u001a\b\u0012\u0004\u0012\u00028\u00000\u0002H\u0016J\b\u0010\u000e\u001a\u00020\tH\u0016J\u000f\u0010\u000f\u001a\b\u0012\u0004\u0012\u00028\u00000\u0010H¦\u0002J\u0015\u0010\u0011\u001a\n\u0012\u0006\u0012\u0004\u0018\u00010\u00130\u0012H\u0015¢\u0006\u0002\u0010\u0014J'\u0010\u0011\u001a\b\u0012\u0004\u0012\u0002H\u00150\u0012\"\u0004\b\u0001\u0010\u00152\f\u0010\u0016\u001a\b\u0012\u0004\u0012\u0002H\u00150\u0012H\u0014¢\u0006\u0002\u0010\u0017J\b\u0010\u0018\u001a\u00020\u0019H\u0016R\u0012\u0010\u0004\u001a\u00020\u0005X¦\u0004¢\u0006\u0006\u001a\u0004\b\u0006\u0010\u0007¨\u0006\u001a"}, d2 = {"Lkotlin/collections/AbstractCollection;", "E", "", "()V", "size", "", "getSize", "()I", "contains", "", "element", "(Ljava/lang/Object;)Z", "containsAll", "elements", "isEmpty", "iterator", "", "toArray", "", "", "()[Ljava/lang/Object;", "T", "array", "([Ljava/lang/Object;)[Ljava/lang/Object;", "toString", "", "kotlin-stdlib"}, k = 1, mv = {1, 8, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public abstract class AbstractCollection<E> implements Collection<E>, KMappedMarker {
|
||||
@Override // java.util.Collection
|
||||
public boolean add(E e) {
|
||||
throw new UnsupportedOperationException("Operation is not supported for read-only collection");
|
||||
}
|
||||
|
||||
@Override // java.util.Collection
|
||||
public boolean addAll(Collection<? extends E> collection) {
|
||||
throw new UnsupportedOperationException("Operation is not supported for read-only collection");
|
||||
}
|
||||
|
||||
@Override // java.util.Collection
|
||||
public void clear() {
|
||||
throw new UnsupportedOperationException("Operation is not supported for read-only collection");
|
||||
}
|
||||
|
||||
/* renamed from: getSize */
|
||||
public abstract int get_size();
|
||||
|
||||
@Override // java.util.Collection, java.lang.Iterable
|
||||
public abstract Iterator<E> iterator();
|
||||
|
||||
@Override // java.util.Collection
|
||||
public boolean remove(Object obj) {
|
||||
throw new UnsupportedOperationException("Operation is not supported for read-only collection");
|
||||
}
|
||||
|
||||
@Override // java.util.Collection
|
||||
public boolean removeAll(Collection<? extends Object> collection) {
|
||||
throw new UnsupportedOperationException("Operation is not supported for read-only collection");
|
||||
}
|
||||
|
||||
@Override // java.util.Collection
|
||||
public boolean retainAll(Collection<? extends Object> collection) {
|
||||
throw new UnsupportedOperationException("Operation is not supported for read-only collection");
|
||||
}
|
||||
|
||||
protected AbstractCollection() {
|
||||
}
|
||||
|
||||
@Override // java.util.Collection
|
||||
public final /* bridge */ int size() {
|
||||
return get_size();
|
||||
}
|
||||
|
||||
@Override // java.util.Collection
|
||||
public boolean contains(E element) {
|
||||
AbstractCollection<E> abstractCollection = this;
|
||||
if ((abstractCollection instanceof Collection) && abstractCollection.isEmpty()) {
|
||||
return false;
|
||||
}
|
||||
Iterator<E> it = abstractCollection.iterator();
|
||||
while (it.hasNext()) {
|
||||
if (Intrinsics.areEqual(it.next(), element)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
@Override // java.util.Collection
|
||||
public boolean containsAll(Collection<? extends Object> elements) {
|
||||
Intrinsics.checkNotNullParameter(elements, "elements");
|
||||
Collection<? extends Object> collection = elements;
|
||||
if (collection.isEmpty()) {
|
||||
return true;
|
||||
}
|
||||
Iterator<T> it = collection.iterator();
|
||||
while (it.hasNext()) {
|
||||
if (!contains(it.next())) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override // java.util.Collection
|
||||
public boolean isEmpty() {
|
||||
return size() == 0;
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return CollectionsKt.joinToString$default(this, ", ", "[", "]", 0, null, new Function1<E, CharSequence>(this) { // from class: kotlin.collections.AbstractCollection$toString$1
|
||||
final /* synthetic */ AbstractCollection<E> this$0;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
{
|
||||
super(1);
|
||||
this.this$0 = this;
|
||||
}
|
||||
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
@Override // kotlin.jvm.functions.Function1
|
||||
public /* bridge */ /* synthetic */ CharSequence invoke(Object obj) {
|
||||
return invoke((AbstractCollection$toString$1<E>) obj);
|
||||
}
|
||||
|
||||
/* JADX WARN: Can't rename method to resolve collision */
|
||||
@Override // kotlin.jvm.functions.Function1
|
||||
public final CharSequence invoke(E e) {
|
||||
return e == this.this$0 ? "(this Collection)" : String.valueOf(e);
|
||||
}
|
||||
}, 24, null);
|
||||
}
|
||||
|
||||
@Override // java.util.Collection
|
||||
public Object[] toArray() {
|
||||
return CollectionToArray.toArray(this);
|
||||
}
|
||||
|
||||
@Override // java.util.Collection
|
||||
public <T> T[] toArray(T[] array) {
|
||||
Intrinsics.checkNotNullParameter(array, "array");
|
||||
return (T[]) CollectionToArray.toArray(this, array);
|
||||
}
|
||||
}
|
79
02-Easy5/E5/sources/kotlin/collections/AbstractIterator.java
Normal file
79
02-Easy5/E5/sources/kotlin/collections/AbstractIterator.java
Normal file
@ -0,0 +1,79 @@
|
||||
package kotlin.collections;
|
||||
|
||||
import java.util.Iterator;
|
||||
import java.util.NoSuchElementException;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.internal.markers.KMappedMarker;
|
||||
|
||||
/* compiled from: AbstractIterator.kt */
|
||||
@Metadata(d1 = {"\u0000$\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010(\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0002\n\u0002\u0010\u000b\n\u0002\b\u0007\b&\u0018\u0000*\u0004\b\u0000\u0010\u00012\b\u0012\u0004\u0012\u0002H\u00010\u0002B\u0005¢\u0006\u0002\u0010\u0003J\b\u0010\b\u001a\u00020\tH$J\b\u0010\n\u001a\u00020\tH\u0004J\t\u0010\u000b\u001a\u00020\fH\u0096\u0002J\u000e\u0010\r\u001a\u00028\u0000H\u0096\u0002¢\u0006\u0002\u0010\u000eJ\u0015\u0010\u000f\u001a\u00020\t2\u0006\u0010\u0010\u001a\u00028\u0000H\u0004¢\u0006\u0002\u0010\u0011J\b\u0010\u0012\u001a\u00020\fH\u0002R\u0012\u0010\u0004\u001a\u0004\u0018\u00018\u0000X\u0082\u000e¢\u0006\u0004\n\u0002\u0010\u0005R\u000e\u0010\u0006\u001a\u00020\u0007X\u0082\u000e¢\u0006\u0002\n\u0000¨\u0006\u0013"}, d2 = {"Lkotlin/collections/AbstractIterator;", "T", "", "()V", "nextValue", "Ljava/lang/Object;", "state", "Lkotlin/collections/State;", "computeNext", "", "done", "hasNext", "", "next", "()Ljava/lang/Object;", "setNext", "value", "(Ljava/lang/Object;)V", "tryToComputeNext", "kotlin-stdlib"}, k = 1, mv = {1, 8, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public abstract class AbstractIterator<T> implements Iterator<T>, KMappedMarker {
|
||||
private T nextValue;
|
||||
private State state = State.NotReady;
|
||||
|
||||
/* compiled from: AbstractIterator.kt */
|
||||
@Metadata(k = 3, mv = {1, 8, 0}, xi = 48)
|
||||
public /* synthetic */ class WhenMappings {
|
||||
public static final /* synthetic */ int[] $EnumSwitchMapping$0;
|
||||
|
||||
static {
|
||||
int[] iArr = new int[State.values().length];
|
||||
try {
|
||||
iArr[State.Done.ordinal()] = 1;
|
||||
} catch (NoSuchFieldError unused) {
|
||||
}
|
||||
try {
|
||||
iArr[State.Ready.ordinal()] = 2;
|
||||
} catch (NoSuchFieldError unused2) {
|
||||
}
|
||||
$EnumSwitchMapping$0 = iArr;
|
||||
}
|
||||
}
|
||||
|
||||
protected abstract void computeNext();
|
||||
|
||||
@Override // java.util.Iterator
|
||||
public void remove() {
|
||||
throw new UnsupportedOperationException("Operation is not supported for read-only collection");
|
||||
}
|
||||
|
||||
@Override // java.util.Iterator
|
||||
public boolean hasNext() {
|
||||
if (this.state == State.Failed) {
|
||||
throw new IllegalArgumentException("Failed requirement.".toString());
|
||||
}
|
||||
int i = WhenMappings.$EnumSwitchMapping$0[this.state.ordinal()];
|
||||
if (i == 1) {
|
||||
return false;
|
||||
}
|
||||
if (i != 2) {
|
||||
return tryToComputeNext();
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override // java.util.Iterator
|
||||
public T next() {
|
||||
if (!hasNext()) {
|
||||
throw new NoSuchElementException();
|
||||
}
|
||||
this.state = State.NotReady;
|
||||
return this.nextValue;
|
||||
}
|
||||
|
||||
private final boolean tryToComputeNext() {
|
||||
this.state = State.Failed;
|
||||
computeNext();
|
||||
return this.state == State.Ready;
|
||||
}
|
||||
|
||||
protected final void setNext(T value) {
|
||||
this.nextValue = value;
|
||||
this.state = State.Ready;
|
||||
}
|
||||
|
||||
protected final void done() {
|
||||
this.state = State.Done;
|
||||
}
|
||||
}
|
294
02-Easy5/E5/sources/kotlin/collections/AbstractList.java
Normal file
294
02-Easy5/E5/sources/kotlin/collections/AbstractList.java
Normal file
@ -0,0 +1,294 @@
|
||||
package kotlin.collections;
|
||||
|
||||
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.jvm.internal.DefaultConstructorMarker;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.jvm.internal.markers.KMappedMarker;
|
||||
|
||||
/* compiled from: AbstractList.kt */
|
||||
@Metadata(d1 = {"\u00008\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0010 \n\u0002\b\u0002\n\u0002\u0010\b\n\u0002\b\u0003\n\u0002\u0010\u000b\n\u0000\n\u0002\u0010\u0000\n\u0002\b\b\n\u0002\u0010(\n\u0002\b\u0002\n\u0002\u0010*\n\u0002\b\b\b'\u0018\u0000 \u001c*\u0006\b\u0000\u0010\u0001 \u00012\b\u0012\u0004\u0012\u0002H\u00010\u00022\b\u0012\u0004\u0012\u0002H\u00010\u0003:\u0004\u001c\u001d\u001e\u001fB\u0007\b\u0004¢\u0006\u0002\u0010\u0004J\u0013\u0010\t\u001a\u00020\n2\b\u0010\u000b\u001a\u0004\u0018\u00010\fH\u0096\u0002J\u0016\u0010\r\u001a\u00028\u00002\u0006\u0010\u000e\u001a\u00020\u0006H¦\u0002¢\u0006\u0002\u0010\u000fJ\b\u0010\u0010\u001a\u00020\u0006H\u0016J\u0015\u0010\u0011\u001a\u00020\u00062\u0006\u0010\u0012\u001a\u00028\u0000H\u0016¢\u0006\u0002\u0010\u0013J\u000f\u0010\u0014\u001a\b\u0012\u0004\u0012\u00028\u00000\u0015H\u0096\u0002J\u0015\u0010\u0016\u001a\u00020\u00062\u0006\u0010\u0012\u001a\u00028\u0000H\u0016¢\u0006\u0002\u0010\u0013J\u000e\u0010\u0017\u001a\b\u0012\u0004\u0012\u00028\u00000\u0018H\u0016J\u0016\u0010\u0017\u001a\b\u0012\u0004\u0012\u00028\u00000\u00182\u0006\u0010\u000e\u001a\u00020\u0006H\u0016J\u001e\u0010\u0019\u001a\b\u0012\u0004\u0012\u00028\u00000\u00032\u0006\u0010\u001a\u001a\u00020\u00062\u0006\u0010\u001b\u001a\u00020\u0006H\u0016R\u0012\u0010\u0005\u001a\u00020\u0006X¦\u0004¢\u0006\u0006\u001a\u0004\b\u0007\u0010\b¨\u0006 "}, d2 = {"Lkotlin/collections/AbstractList;", "E", "Lkotlin/collections/AbstractCollection;", "", "()V", "size", "", "getSize", "()I", "equals", "", "other", "", "get", "index", "(I)Ljava/lang/Object;", "hashCode", "indexOf", "element", "(Ljava/lang/Object;)I", "iterator", "", "lastIndexOf", "listIterator", "", "subList", "fromIndex", "toIndex", "Companion", "IteratorImpl", "ListIteratorImpl", "SubList", "kotlin-stdlib"}, k = 1, mv = {1, 8, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public abstract class AbstractList<E> extends AbstractCollection<E> implements List<E>, KMappedMarker {
|
||||
|
||||
/* renamed from: Companion, reason: from kotlin metadata */
|
||||
public static final Companion INSTANCE = new Companion(null);
|
||||
|
||||
@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.List
|
||||
public abstract E get(int index);
|
||||
|
||||
@Override // kotlin.collections.AbstractCollection
|
||||
/* renamed from: getSize */
|
||||
public abstract int get_size();
|
||||
|
||||
@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");
|
||||
}
|
||||
|
||||
protected AbstractList() {
|
||||
}
|
||||
|
||||
@Override // kotlin.collections.AbstractCollection, java.util.Collection, java.lang.Iterable
|
||||
public Iterator<E> iterator() {
|
||||
return new IteratorImpl();
|
||||
}
|
||||
|
||||
@Override // java.util.List
|
||||
public int indexOf(E element) {
|
||||
Iterator<E> it = iterator();
|
||||
int i = 0;
|
||||
while (it.hasNext()) {
|
||||
if (Intrinsics.areEqual(it.next(), element)) {
|
||||
return i;
|
||||
}
|
||||
i++;
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
|
||||
@Override // java.util.List
|
||||
public int lastIndexOf(E element) {
|
||||
AbstractList<E> abstractList = this;
|
||||
ListIterator<E> listIterator = abstractList.listIterator(abstractList.size());
|
||||
while (listIterator.hasPrevious()) {
|
||||
if (Intrinsics.areEqual(listIterator.previous(), element)) {
|
||||
return listIterator.nextIndex();
|
||||
}
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
|
||||
@Override // java.util.List
|
||||
public ListIterator<E> listIterator() {
|
||||
return new ListIteratorImpl(0);
|
||||
}
|
||||
|
||||
@Override // java.util.List
|
||||
public ListIterator<E> listIterator(int index) {
|
||||
return new ListIteratorImpl(index);
|
||||
}
|
||||
|
||||
@Override // java.util.List
|
||||
public List<E> subList(int fromIndex, int toIndex) {
|
||||
return new SubList(this, fromIndex, toIndex);
|
||||
}
|
||||
|
||||
/* compiled from: AbstractList.kt */
|
||||
@Metadata(d1 = {"\u0000\u001e\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\n\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\u0002\u0010\tJ\u0016\u0010\u000e\u001a\u00028\u00012\u0006\u0010\u000f\u001a\u00020\u0007H\u0096\u0002¢\u0006\u0002\u0010\u0010R\u000e\u0010\n\u001a\u00020\u0007X\u0082\u000e¢\u0006\u0002\n\u0000R\u000e\u0010\u0006\u001a\u00020\u0007X\u0082\u0004¢\u0006\u0002\n\u0000R\u0014\u0010\u0005\u001a\b\u0012\u0004\u0012\u00028\u00010\u0002X\u0082\u0004¢\u0006\u0002\n\u0000R\u0014\u0010\u000b\u001a\u00020\u00078VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b\f\u0010\r¨\u0006\u0011"}, d2 = {"Lkotlin/collections/AbstractList$SubList;", "E", "Lkotlin/collections/AbstractList;", "Ljava/util/RandomAccess;", "Lkotlin/collections/RandomAccess;", "list", "fromIndex", "", "toIndex", "(Lkotlin/collections/AbstractList;II)V", "_size", "size", "getSize", "()I", "get", "index", "(I)Ljava/lang/Object;", "kotlin-stdlib"}, k = 1, mv = {1, 8, 0}, xi = 48)
|
||||
private static final class SubList<E> extends AbstractList<E> implements RandomAccess {
|
||||
private int _size;
|
||||
private final int fromIndex;
|
||||
private final AbstractList<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 SubList(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 // java.util.Collection, java.util.List
|
||||
public boolean equals(Object other) {
|
||||
if (other == this) {
|
||||
return true;
|
||||
}
|
||||
if (other instanceof List) {
|
||||
return INSTANCE.orderedEquals$kotlin_stdlib(this, (Collection) other);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override // java.util.Collection, java.util.List
|
||||
public int hashCode() {
|
||||
return INSTANCE.orderedHashCode$kotlin_stdlib(this);
|
||||
}
|
||||
|
||||
/* compiled from: AbstractList.kt */
|
||||
@Metadata(d1 = {"\u0000\u001c\n\u0002\u0018\u0002\n\u0002\u0010(\n\u0002\b\u0002\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\u0005¢\u0006\u0002\u0010\u0002J\t\u0010\t\u001a\u00020\nH\u0096\u0002J\u000e\u0010\u000b\u001a\u00028\u0000H\u0096\u0002¢\u0006\u0002\u0010\fR\u001a\u0010\u0003\u001a\u00020\u0004X\u0084\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b\u0005\u0010\u0006\"\u0004\b\u0007\u0010\b¨\u0006\r"}, d2 = {"Lkotlin/collections/AbstractList$IteratorImpl;", "", "(Lkotlin/collections/AbstractList;)V", "index", "", "getIndex", "()I", "setIndex", "(I)V", "hasNext", "", "next", "()Ljava/lang/Object;", "kotlin-stdlib"}, k = 1, mv = {1, 8, 0}, xi = 48)
|
||||
private class IteratorImpl implements Iterator<E>, KMappedMarker {
|
||||
private int index;
|
||||
|
||||
protected final int getIndex() {
|
||||
return this.index;
|
||||
}
|
||||
|
||||
@Override // java.util.Iterator
|
||||
public void remove() {
|
||||
throw new UnsupportedOperationException("Operation is not supported for read-only collection");
|
||||
}
|
||||
|
||||
protected final void setIndex(int i) {
|
||||
this.index = i;
|
||||
}
|
||||
|
||||
public IteratorImpl() {
|
||||
}
|
||||
|
||||
@Override // java.util.Iterator
|
||||
public boolean hasNext() {
|
||||
return this.index < AbstractList.this.size();
|
||||
}
|
||||
|
||||
@Override // java.util.Iterator
|
||||
public E next() {
|
||||
if (!hasNext()) {
|
||||
throw new NoSuchElementException();
|
||||
}
|
||||
AbstractList<E> abstractList = AbstractList.this;
|
||||
int i = this.index;
|
||||
this.index = i + 1;
|
||||
return abstractList.get(i);
|
||||
}
|
||||
}
|
||||
|
||||
/* compiled from: AbstractList.kt */
|
||||
@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\u0002\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\r\u0012\u0006\u0010\u0004\u001a\u00020\u0005¢\u0006\u0002\u0010\u0006J\b\u0010\u0007\u001a\u00020\bH\u0016J\b\u0010\t\u001a\u00020\u0005H\u0016J\r\u0010\n\u001a\u00028\u0000H\u0016¢\u0006\u0002\u0010\u000bJ\b\u0010\f\u001a\u00020\u0005H\u0016¨\u0006\r"}, d2 = {"Lkotlin/collections/AbstractList$ListIteratorImpl;", "Lkotlin/collections/AbstractList$IteratorImpl;", "Lkotlin/collections/AbstractList;", "", "index", "", "(Lkotlin/collections/AbstractList;I)V", "hasPrevious", "", "nextIndex", "previous", "()Ljava/lang/Object;", "previousIndex", "kotlin-stdlib"}, k = 1, mv = {1, 8, 0}, xi = 48)
|
||||
private class ListIteratorImpl extends AbstractList<E>.IteratorImpl implements ListIterator<E>, KMappedMarker {
|
||||
@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 void set(E e) {
|
||||
throw new UnsupportedOperationException("Operation is not supported for read-only collection");
|
||||
}
|
||||
|
||||
public ListIteratorImpl(int i) {
|
||||
super();
|
||||
AbstractList.INSTANCE.checkPositionIndex$kotlin_stdlib(i, AbstractList.this.size());
|
||||
setIndex(i);
|
||||
}
|
||||
|
||||
@Override // java.util.ListIterator
|
||||
public boolean hasPrevious() {
|
||||
return getIndex() > 0;
|
||||
}
|
||||
|
||||
@Override // java.util.ListIterator
|
||||
public int nextIndex() {
|
||||
return getIndex();
|
||||
}
|
||||
|
||||
@Override // java.util.ListIterator
|
||||
public E previous() {
|
||||
if (!hasPrevious()) {
|
||||
throw new NoSuchElementException();
|
||||
}
|
||||
AbstractList<E> abstractList = AbstractList.this;
|
||||
setIndex(getIndex() - 1);
|
||||
return abstractList.get(getIndex());
|
||||
}
|
||||
|
||||
@Override // java.util.ListIterator
|
||||
public int previousIndex() {
|
||||
return getIndex() - 1;
|
||||
}
|
||||
}
|
||||
|
||||
/* compiled from: AbstractList.kt */
|
||||
@Metadata(d1 = {"\u0000(\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0010\u0002\n\u0000\n\u0002\u0010\b\n\u0002\b\r\n\u0002\u0010\u000b\n\u0000\n\u0002\u0010\u001e\n\u0002\b\u0005\b\u0080\u0003\u0018\u00002\u00020\u0001B\u0007\b\u0002¢\u0006\u0002\u0010\u0002J%\u0010\u0003\u001a\u00020\u00042\u0006\u0010\u0005\u001a\u00020\u00062\u0006\u0010\u0007\u001a\u00020\u00062\u0006\u0010\b\u001a\u00020\u0006H\u0000¢\u0006\u0002\b\tJ\u001d\u0010\n\u001a\u00020\u00042\u0006\u0010\u000b\u001a\u00020\u00062\u0006\u0010\b\u001a\u00020\u0006H\u0000¢\u0006\u0002\b\fJ\u001d\u0010\r\u001a\u00020\u00042\u0006\u0010\u000b\u001a\u00020\u00062\u0006\u0010\b\u001a\u00020\u0006H\u0000¢\u0006\u0002\b\u000eJ%\u0010\u000f\u001a\u00020\u00042\u0006\u0010\u0010\u001a\u00020\u00062\u0006\u0010\u0011\u001a\u00020\u00062\u0006\u0010\b\u001a\u00020\u0006H\u0000¢\u0006\u0002\b\u0012J%\u0010\u0013\u001a\u00020\u00142\n\u0010\u0015\u001a\u0006\u0012\u0002\b\u00030\u00162\n\u0010\u0017\u001a\u0006\u0012\u0002\b\u00030\u0016H\u0000¢\u0006\u0002\b\u0018J\u0019\u0010\u0019\u001a\u00020\u00062\n\u0010\u0015\u001a\u0006\u0012\u0002\b\u00030\u0016H\u0000¢\u0006\u0002\b\u001a¨\u0006\u001b"}, d2 = {"Lkotlin/collections/AbstractList$Companion;", "", "()V", "checkBoundsIndexes", "", "startIndex", "", "endIndex", "size", "checkBoundsIndexes$kotlin_stdlib", "checkElementIndex", "index", "checkElementIndex$kotlin_stdlib", "checkPositionIndex", "checkPositionIndex$kotlin_stdlib", "checkRangeIndexes", "fromIndex", "toIndex", "checkRangeIndexes$kotlin_stdlib", "orderedEquals", "", "c", "", "other", "orderedEquals$kotlin_stdlib", "orderedHashCode", "orderedHashCode$kotlin_stdlib", "kotlin-stdlib"}, k = 1, mv = {1, 8, 0}, xi = 48)
|
||||
public static final class Companion {
|
||||
public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
|
||||
this();
|
||||
}
|
||||
|
||||
private Companion() {
|
||||
}
|
||||
|
||||
public final void checkElementIndex$kotlin_stdlib(int index, int size) {
|
||||
if (index < 0 || index >= size) {
|
||||
throw new IndexOutOfBoundsException("index: " + index + ", size: " + size);
|
||||
}
|
||||
}
|
||||
|
||||
public final void checkPositionIndex$kotlin_stdlib(int index, int size) {
|
||||
if (index < 0 || index > size) {
|
||||
throw new IndexOutOfBoundsException("index: " + index + ", size: " + size);
|
||||
}
|
||||
}
|
||||
|
||||
public final void checkRangeIndexes$kotlin_stdlib(int fromIndex, int toIndex, int size) {
|
||||
if (fromIndex < 0 || toIndex > size) {
|
||||
throw new IndexOutOfBoundsException("fromIndex: " + fromIndex + ", toIndex: " + toIndex + ", size: " + size);
|
||||
}
|
||||
if (fromIndex <= toIndex) {
|
||||
return;
|
||||
}
|
||||
throw new IllegalArgumentException("fromIndex: " + fromIndex + " > toIndex: " + toIndex);
|
||||
}
|
||||
|
||||
public final void checkBoundsIndexes$kotlin_stdlib(int startIndex, int endIndex, int size) {
|
||||
if (startIndex < 0 || endIndex > size) {
|
||||
throw new IndexOutOfBoundsException("startIndex: " + startIndex + ", endIndex: " + endIndex + ", size: " + size);
|
||||
}
|
||||
if (startIndex <= endIndex) {
|
||||
return;
|
||||
}
|
||||
throw new IllegalArgumentException("startIndex: " + startIndex + " > endIndex: " + endIndex);
|
||||
}
|
||||
|
||||
public final int orderedHashCode$kotlin_stdlib(Collection<?> c) {
|
||||
Intrinsics.checkNotNullParameter(c, "c");
|
||||
Iterator<?> it = c.iterator();
|
||||
int i = 1;
|
||||
while (it.hasNext()) {
|
||||
Object next = it.next();
|
||||
i = (i * 31) + (next != null ? next.hashCode() : 0);
|
||||
}
|
||||
return i;
|
||||
}
|
||||
|
||||
public final boolean orderedEquals$kotlin_stdlib(Collection<?> c, Collection<?> other) {
|
||||
Intrinsics.checkNotNullParameter(c, "c");
|
||||
Intrinsics.checkNotNullParameter(other, "other");
|
||||
if (c.size() != other.size()) {
|
||||
return false;
|
||||
}
|
||||
Iterator<?> it = other.iterator();
|
||||
Iterator<?> it2 = c.iterator();
|
||||
while (it2.hasNext()) {
|
||||
if (!Intrinsics.areEqual(it2.next(), it.next())) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,34 @@
|
||||
package kotlin.collections;
|
||||
|
||||
import java.util.Iterator;
|
||||
import java.util.Map;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.internal.markers.KMappedMarker;
|
||||
|
||||
/* JADX INFO: Add missing generic type declarations: [K] */
|
||||
/* compiled from: AbstractMap.kt */
|
||||
@Metadata(d1 = {"\u0000\u0013\n\u0000\n\u0002\u0010(\n\u0000\n\u0002\u0010\u000b\n\u0002\b\u0003*\u0001\u0000\b\n\u0018\u00002\b\u0012\u0004\u0012\u00028\u00000\u0001J\t\u0010\u0002\u001a\u00020\u0003H\u0096\u0002J\u000e\u0010\u0004\u001a\u00028\u0000H\u0096\u0002¢\u0006\u0002\u0010\u0005¨\u0006\u0006"}, d2 = {"kotlin/collections/AbstractMap$keys$1$iterator$1", "", "hasNext", "", "next", "()Ljava/lang/Object;", "kotlin-stdlib"}, k = 1, mv = {1, 8, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public final class AbstractMap$keys$1$iterator$1<K> implements Iterator<K>, KMappedMarker {
|
||||
final /* synthetic */ Iterator<Map.Entry<K, V>> $entryIterator;
|
||||
|
||||
@Override // java.util.Iterator
|
||||
public void remove() {
|
||||
throw new UnsupportedOperationException("Operation is not supported for read-only collection");
|
||||
}
|
||||
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
AbstractMap$keys$1$iterator$1(Iterator<? extends Map.Entry<? extends K, ? extends V>> it) {
|
||||
this.$entryIterator = it;
|
||||
}
|
||||
|
||||
@Override // java.util.Iterator
|
||||
public boolean hasNext() {
|
||||
return this.$entryIterator.hasNext();
|
||||
}
|
||||
|
||||
@Override // java.util.Iterator
|
||||
public K next() {
|
||||
return (K) ((Map.Entry) this.$entryIterator.next()).getKey();
|
||||
}
|
||||
}
|
@ -0,0 +1,34 @@
|
||||
package kotlin.collections;
|
||||
|
||||
import java.util.Iterator;
|
||||
import java.util.Map;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.internal.markers.KMappedMarker;
|
||||
|
||||
/* JADX INFO: Add missing generic type declarations: [V] */
|
||||
/* compiled from: AbstractMap.kt */
|
||||
@Metadata(d1 = {"\u0000\u0013\n\u0000\n\u0002\u0010(\n\u0000\n\u0002\u0010\u000b\n\u0002\b\u0003*\u0001\u0000\b\n\u0018\u00002\b\u0012\u0004\u0012\u00028\u00000\u0001J\t\u0010\u0002\u001a\u00020\u0003H\u0096\u0002J\u000e\u0010\u0004\u001a\u00028\u0000H\u0096\u0002¢\u0006\u0002\u0010\u0005¨\u0006\u0006"}, d2 = {"kotlin/collections/AbstractMap$values$1$iterator$1", "", "hasNext", "", "next", "()Ljava/lang/Object;", "kotlin-stdlib"}, k = 1, mv = {1, 8, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public final class AbstractMap$values$1$iterator$1<V> implements Iterator<V>, KMappedMarker {
|
||||
final /* synthetic */ Iterator<Map.Entry<K, V>> $entryIterator;
|
||||
|
||||
@Override // java.util.Iterator
|
||||
public void remove() {
|
||||
throw new UnsupportedOperationException("Operation is not supported for read-only collection");
|
||||
}
|
||||
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
AbstractMap$values$1$iterator$1(Iterator<? extends Map.Entry<? extends K, ? extends V>> it) {
|
||||
this.$entryIterator = it;
|
||||
}
|
||||
|
||||
@Override // java.util.Iterator
|
||||
public boolean hasNext() {
|
||||
return this.$entryIterator.hasNext();
|
||||
}
|
||||
|
||||
@Override // java.util.Iterator
|
||||
public V next() {
|
||||
return (V) ((Map.Entry) this.$entryIterator.next()).getValue();
|
||||
}
|
||||
}
|
303
02-Easy5/E5/sources/kotlin/collections/AbstractMap.java
Normal file
303
02-Easy5/E5/sources/kotlin/collections/AbstractMap.java
Normal file
@ -0,0 +1,303 @@
|
||||
package kotlin.collections;
|
||||
|
||||
import java.util.Collection;
|
||||
import java.util.Iterator;
|
||||
import java.util.Map;
|
||||
import java.util.Set;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.functions.Function1;
|
||||
import kotlin.jvm.internal.DefaultConstructorMarker;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.jvm.internal.markers.KMappedMarker;
|
||||
|
||||
/* compiled from: AbstractMap.kt */
|
||||
@Metadata(d1 = {"\u0000D\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010$\n\u0002\b\u0002\n\u0002\u0010\"\n\u0000\n\u0002\u0010\u001e\n\u0002\b\u0004\n\u0002\u0010\b\n\u0002\b\u0006\n\u0002\u0010\u000b\n\u0000\n\u0002\u0010&\n\u0002\b\b\n\u0002\u0010\u0000\n\u0002\b\u0007\n\u0002\u0010\u000e\n\u0002\b\u0003\b'\u0018\u0000 )*\u0004\b\u0000\u0010\u0001*\u0006\b\u0001\u0010\u0002 \u00012\u000e\u0012\u0004\u0012\u0002H\u0001\u0012\u0004\u0012\u0002H\u00020\u0003:\u0001)B\u0007\b\u0004¢\u0006\u0002\u0010\u0004J\u001f\u0010\u0013\u001a\u00020\u00142\u0010\u0010\u0015\u001a\f\u0012\u0002\b\u0003\u0012\u0002\b\u0003\u0018\u00010\u0016H\u0000¢\u0006\u0002\b\u0017J\u0015\u0010\u0018\u001a\u00020\u00142\u0006\u0010\u0019\u001a\u00028\u0000H\u0016¢\u0006\u0002\u0010\u001aJ\u0015\u0010\u001b\u001a\u00020\u00142\u0006\u0010\u001c\u001a\u00028\u0001H\u0016¢\u0006\u0002\u0010\u001aJ\u0013\u0010\u001d\u001a\u00020\u00142\b\u0010\u001e\u001a\u0004\u0018\u00010\u001fH\u0096\u0002J\u0018\u0010 \u001a\u0004\u0018\u00018\u00012\u0006\u0010\u0019\u001a\u00028\u0000H\u0096\u0002¢\u0006\u0002\u0010!J\b\u0010\"\u001a\u00020\rH\u0016J#\u0010#\u001a\u0010\u0012\u0004\u0012\u00028\u0000\u0012\u0004\u0012\u00028\u0001\u0018\u00010\u00162\u0006\u0010\u0019\u001a\u00028\u0000H\u0002¢\u0006\u0002\u0010$J\b\u0010%\u001a\u00020\u0014H\u0016J\b\u0010&\u001a\u00020'H\u0016J\u0012\u0010&\u001a\u00020'2\b\u0010(\u001a\u0004\u0018\u00010\u001fH\u0002J\u001c\u0010&\u001a\u00020'2\u0012\u0010\u0015\u001a\u000e\u0012\u0004\u0012\u00028\u0000\u0012\u0004\u0012\u00028\u00010\u0016H\bR\u0016\u0010\u0005\u001a\n\u0012\u0004\u0012\u00028\u0000\u0018\u00010\u0006X\u0082\u000e¢\u0006\u0002\n\u0000R\u0016\u0010\u0007\u001a\n\u0012\u0004\u0012\u00028\u0001\u0018\u00010\bX\u0088\u000e¢\u0006\u0002\n\u0000R\u001a\u0010\t\u001a\b\u0012\u0004\u0012\u00028\u00000\u00068VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b\n\u0010\u000bR\u0014\u0010\f\u001a\u00020\r8VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b\u000e\u0010\u000fR\u001a\u0010\u0010\u001a\b\u0012\u0004\u0012\u00028\u00010\b8VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b\u0011\u0010\u0012¨\u0006*"}, d2 = {"Lkotlin/collections/AbstractMap;", "K", "V", "", "()V", "_keys", "", "_values", "", "keys", "getKeys", "()Ljava/util/Set;", "size", "", "getSize", "()I", "values", "getValues", "()Ljava/util/Collection;", "containsEntry", "", "entry", "", "containsEntry$kotlin_stdlib", "containsKey", "key", "(Ljava/lang/Object;)Z", "containsValue", "value", "equals", "other", "", "get", "(Ljava/lang/Object;)Ljava/lang/Object;", "hashCode", "implFindEntry", "(Ljava/lang/Object;)Ljava/util/Map$Entry;", "isEmpty", "toString", "", "o", "Companion", "kotlin-stdlib"}, k = 1, mv = {1, 8, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public abstract class AbstractMap<K, V> implements Map<K, V>, KMappedMarker {
|
||||
|
||||
/* renamed from: Companion, reason: from kotlin metadata */
|
||||
public static final Companion INSTANCE = new Companion(null);
|
||||
private volatile Set<? extends K> _keys;
|
||||
private volatile Collection<? extends V> _values;
|
||||
|
||||
@Override // java.util.Map
|
||||
public void clear() {
|
||||
throw new UnsupportedOperationException("Operation is not supported for read-only collection");
|
||||
}
|
||||
|
||||
public abstract Set getEntries();
|
||||
|
||||
@Override // java.util.Map
|
||||
public V put(K k, V v) {
|
||||
throw new UnsupportedOperationException("Operation is not supported for read-only collection");
|
||||
}
|
||||
|
||||
@Override // java.util.Map
|
||||
public void putAll(Map<? extends K, ? extends V> map) {
|
||||
throw new UnsupportedOperationException("Operation is not supported for read-only collection");
|
||||
}
|
||||
|
||||
@Override // java.util.Map
|
||||
public V remove(Object obj) {
|
||||
throw new UnsupportedOperationException("Operation is not supported for read-only collection");
|
||||
}
|
||||
|
||||
protected AbstractMap() {
|
||||
}
|
||||
|
||||
@Override // java.util.Map
|
||||
public final /* bridge */ Set<Map.Entry<K, V>> entrySet() {
|
||||
return getEntries();
|
||||
}
|
||||
|
||||
@Override // java.util.Map
|
||||
public final /* bridge */ Set<K> keySet() {
|
||||
return getKeys();
|
||||
}
|
||||
|
||||
@Override // java.util.Map
|
||||
public final /* bridge */ int size() {
|
||||
return getSize();
|
||||
}
|
||||
|
||||
@Override // java.util.Map
|
||||
public final /* bridge */ Collection<V> values() {
|
||||
return getValues();
|
||||
}
|
||||
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
@Override // java.util.Map
|
||||
public boolean containsKey(Object key) {
|
||||
return implFindEntry(key) != null;
|
||||
}
|
||||
|
||||
@Override // java.util.Map
|
||||
public boolean containsValue(Object value) {
|
||||
Set<Map.Entry<K, V>> entrySet = entrySet();
|
||||
if ((entrySet instanceof Collection) && entrySet.isEmpty()) {
|
||||
return false;
|
||||
}
|
||||
Iterator<T> it = entrySet.iterator();
|
||||
while (it.hasNext()) {
|
||||
if (Intrinsics.areEqual(((Map.Entry) it.next()).getValue(), value)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
public final boolean containsEntry$kotlin_stdlib(Map.Entry<?, ?> entry) {
|
||||
if (entry == null) {
|
||||
return false;
|
||||
}
|
||||
Object key = entry.getKey();
|
||||
Object value = entry.getValue();
|
||||
AbstractMap<K, V> abstractMap = this;
|
||||
Intrinsics.checkNotNull(abstractMap, "null cannot be cast to non-null type kotlin.collections.Map<K of kotlin.collections.MapsKt__MapsKt.get, V of kotlin.collections.MapsKt__MapsKt.get>");
|
||||
V v = abstractMap.get(key);
|
||||
if (!Intrinsics.areEqual(value, v)) {
|
||||
return false;
|
||||
}
|
||||
if (v != null) {
|
||||
return true;
|
||||
}
|
||||
Intrinsics.checkNotNull(abstractMap, "null cannot be cast to non-null type kotlin.collections.Map<K of kotlin.collections.MapsKt__MapsKt.containsKey, *>");
|
||||
return abstractMap.containsKey(key);
|
||||
}
|
||||
|
||||
@Override // java.util.Map
|
||||
public boolean equals(Object other) {
|
||||
if (other == this) {
|
||||
return true;
|
||||
}
|
||||
if (!(other instanceof Map)) {
|
||||
return false;
|
||||
}
|
||||
Map map = (Map) other;
|
||||
if (size() != map.size()) {
|
||||
return false;
|
||||
}
|
||||
Set<Map.Entry<K, V>> entrySet = map.entrySet();
|
||||
if ((entrySet instanceof Collection) && entrySet.isEmpty()) {
|
||||
return true;
|
||||
}
|
||||
Iterator<T> it = entrySet.iterator();
|
||||
while (it.hasNext()) {
|
||||
if (!containsEntry$kotlin_stdlib((Map.Entry) it.next())) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
@Override // java.util.Map
|
||||
public V get(Object key) {
|
||||
Map.Entry<K, V> implFindEntry = implFindEntry(key);
|
||||
if (implFindEntry != null) {
|
||||
return implFindEntry.getValue();
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override // java.util.Map
|
||||
public int hashCode() {
|
||||
return entrySet().hashCode();
|
||||
}
|
||||
|
||||
@Override // java.util.Map
|
||||
public boolean isEmpty() {
|
||||
return size() == 0;
|
||||
}
|
||||
|
||||
public int getSize() {
|
||||
return entrySet().size();
|
||||
}
|
||||
|
||||
public Set<K> getKeys() {
|
||||
if (this._keys == null) {
|
||||
this._keys = new AbstractSet<K>(this) { // from class: kotlin.collections.AbstractMap$keys$1
|
||||
final /* synthetic */ AbstractMap<K, V> this$0;
|
||||
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
{
|
||||
this.this$0 = this;
|
||||
}
|
||||
|
||||
@Override // kotlin.collections.AbstractCollection, java.util.Collection
|
||||
public boolean contains(Object element) {
|
||||
return this.this$0.containsKey(element);
|
||||
}
|
||||
|
||||
@Override // kotlin.collections.AbstractSet, kotlin.collections.AbstractCollection, java.util.Collection, java.lang.Iterable
|
||||
public Iterator<K> iterator() {
|
||||
return new AbstractMap$keys$1$iterator$1(this.this$0.entrySet().iterator());
|
||||
}
|
||||
|
||||
@Override // kotlin.collections.AbstractCollection
|
||||
/* renamed from: getSize */
|
||||
public int get_size() {
|
||||
return this.this$0.size();
|
||||
}
|
||||
};
|
||||
}
|
||||
Set<? extends K> set = this._keys;
|
||||
Intrinsics.checkNotNull(set);
|
||||
return set;
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return CollectionsKt.joinToString$default(entrySet(), ", ", "{", "}", 0, null, new Function1<Map.Entry<? extends K, ? extends V>, CharSequence>(this) { // from class: kotlin.collections.AbstractMap$toString$1
|
||||
final /* synthetic */ AbstractMap<K, V> this$0;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
{
|
||||
super(1);
|
||||
this.this$0 = this;
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function1
|
||||
public final CharSequence invoke(Map.Entry<? extends K, ? extends V> it) {
|
||||
String abstractMap;
|
||||
Intrinsics.checkNotNullParameter(it, "it");
|
||||
abstractMap = this.this$0.toString((Map.Entry) it);
|
||||
return abstractMap;
|
||||
}
|
||||
}, 24, null);
|
||||
}
|
||||
|
||||
/* JADX INFO: Access modifiers changed from: private */
|
||||
public final String toString(Map.Entry<? extends K, ? extends V> entry) {
|
||||
return toString(entry.getKey()) + '=' + toString(entry.getValue());
|
||||
}
|
||||
|
||||
private final String toString(Object o) {
|
||||
return o == this ? "(this Map)" : String.valueOf(o);
|
||||
}
|
||||
|
||||
public Collection<V> getValues() {
|
||||
if (this._values == null) {
|
||||
this._values = new AbstractCollection<V>(this) { // from class: kotlin.collections.AbstractMap$values$1
|
||||
final /* synthetic */ AbstractMap<K, V> this$0;
|
||||
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
{
|
||||
this.this$0 = this;
|
||||
}
|
||||
|
||||
@Override // kotlin.collections.AbstractCollection, java.util.Collection
|
||||
public boolean contains(Object element) {
|
||||
return this.this$0.containsValue(element);
|
||||
}
|
||||
|
||||
@Override // kotlin.collections.AbstractCollection, java.util.Collection, java.lang.Iterable
|
||||
public Iterator<V> iterator() {
|
||||
return new AbstractMap$values$1$iterator$1(this.this$0.entrySet().iterator());
|
||||
}
|
||||
|
||||
@Override // kotlin.collections.AbstractCollection
|
||||
/* renamed from: getSize */
|
||||
public int get_size() {
|
||||
return this.this$0.size();
|
||||
}
|
||||
};
|
||||
}
|
||||
Collection<? extends V> collection = this._values;
|
||||
Intrinsics.checkNotNull(collection);
|
||||
return collection;
|
||||
}
|
||||
|
||||
private final Map.Entry<K, V> implFindEntry(K key) {
|
||||
Object obj;
|
||||
Iterator<T> it = entrySet().iterator();
|
||||
while (true) {
|
||||
if (!it.hasNext()) {
|
||||
obj = null;
|
||||
break;
|
||||
}
|
||||
obj = it.next();
|
||||
if (Intrinsics.areEqual(((Map.Entry) obj).getKey(), key)) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
return (Map.Entry) obj;
|
||||
}
|
||||
|
||||
/* compiled from: AbstractMap.kt */
|
||||
@Metadata(d1 = {"\u0000*\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0010\u000b\n\u0000\n\u0002\u0010&\n\u0002\b\u0003\n\u0002\u0010\b\n\u0002\b\u0002\n\u0002\u0010\u000e\n\u0002\b\u0002\b\u0080\u0003\u0018\u00002\u00020\u0001B\u0007\b\u0002¢\u0006\u0002\u0010\u0002J'\u0010\u0003\u001a\u00020\u00042\u000e\u0010\u0005\u001a\n\u0012\u0002\b\u0003\u0012\u0002\b\u00030\u00062\b\u0010\u0007\u001a\u0004\u0018\u00010\u0001H\u0000¢\u0006\u0002\b\bJ\u001d\u0010\t\u001a\u00020\n2\u000e\u0010\u0005\u001a\n\u0012\u0002\b\u0003\u0012\u0002\b\u00030\u0006H\u0000¢\u0006\u0002\b\u000bJ\u001d\u0010\f\u001a\u00020\r2\u000e\u0010\u0005\u001a\n\u0012\u0002\b\u0003\u0012\u0002\b\u00030\u0006H\u0000¢\u0006\u0002\b\u000e¨\u0006\u000f"}, d2 = {"Lkotlin/collections/AbstractMap$Companion;", "", "()V", "entryEquals", "", "e", "", "other", "entryEquals$kotlin_stdlib", "entryHashCode", "", "entryHashCode$kotlin_stdlib", "entryToString", "", "entryToString$kotlin_stdlib", "kotlin-stdlib"}, k = 1, mv = {1, 8, 0}, xi = 48)
|
||||
public static final class Companion {
|
||||
public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
|
||||
this();
|
||||
}
|
||||
|
||||
private Companion() {
|
||||
}
|
||||
|
||||
public final int entryHashCode$kotlin_stdlib(Map.Entry<?, ?> e) {
|
||||
Intrinsics.checkNotNullParameter(e, "e");
|
||||
Object key = e.getKey();
|
||||
int hashCode = key != null ? key.hashCode() : 0;
|
||||
Object value = e.getValue();
|
||||
return hashCode ^ (value != null ? value.hashCode() : 0);
|
||||
}
|
||||
|
||||
public final String entryToString$kotlin_stdlib(Map.Entry<?, ?> e) {
|
||||
Intrinsics.checkNotNullParameter(e, "e");
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append(e.getKey());
|
||||
sb.append('=');
|
||||
sb.append(e.getValue());
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
public final boolean entryEquals$kotlin_stdlib(Map.Entry<?, ?> e, Object other) {
|
||||
Intrinsics.checkNotNullParameter(e, "e");
|
||||
if (!(other instanceof Map.Entry)) {
|
||||
return false;
|
||||
}
|
||||
Map.Entry entry = (Map.Entry) other;
|
||||
return Intrinsics.areEqual(e.getKey(), entry.getKey()) && Intrinsics.areEqual(e.getValue(), entry.getValue());
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,23 @@
|
||||
package kotlin.collections;
|
||||
|
||||
import java.util.Collection;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.internal.markers.KMutableCollection;
|
||||
|
||||
/* compiled from: AbstractMutableCollection.kt */
|
||||
@Metadata(d1 = {"\u0000\u001a\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u001f\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u000b\n\u0002\b\u0003\b'\u0018\u0000*\u0004\b\u0000\u0010\u00012\b\u0012\u0004\u0012\u0002H\u00010\u00022\b\u0012\u0004\u0012\u0002H\u00010\u0003B\u0007\b\u0004¢\u0006\u0002\u0010\u0004J\u0015\u0010\u0005\u001a\u00020\u00062\u0006\u0010\u0007\u001a\u00028\u0000H&¢\u0006\u0002\u0010\b¨\u0006\t"}, d2 = {"Lkotlin/collections/AbstractMutableCollection;", "E", "", "Ljava/util/AbstractCollection;", "()V", "add", "", "element", "(Ljava/lang/Object;)Z", "kotlin-stdlib"}, k = 1, mv = {1, 8, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public abstract class AbstractMutableCollection<E> extends java.util.AbstractCollection<E> implements Collection<E>, KMutableCollection {
|
||||
@Override // java.util.AbstractCollection, java.util.Collection
|
||||
public abstract boolean add(E element);
|
||||
|
||||
public abstract int getSize();
|
||||
|
||||
@Override // java.util.AbstractCollection, java.util.Collection
|
||||
public final /* bridge */ int size() {
|
||||
return getSize();
|
||||
}
|
||||
|
||||
protected AbstractMutableCollection() {
|
||||
}
|
||||
}
|
@ -0,0 +1,33 @@
|
||||
package kotlin.collections;
|
||||
|
||||
import java.util.List;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.internal.markers.KMutableList;
|
||||
|
||||
/* compiled from: AbstractMutableList.kt */
|
||||
@Metadata(d1 = {"\u0000 \n\u0002\u0018\u0002\n\u0000\n\u0002\u0010!\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u0002\n\u0000\n\u0002\u0010\b\n\u0002\b\u0007\b'\u0018\u0000*\u0004\b\u0000\u0010\u00012\b\u0012\u0004\u0012\u0002H\u00010\u00022\b\u0012\u0004\u0012\u0002H\u00010\u0003B\u0007\b\u0004¢\u0006\u0002\u0010\u0004J\u001d\u0010\u0005\u001a\u00020\u00062\u0006\u0010\u0007\u001a\u00020\b2\u0006\u0010\t\u001a\u00028\u0000H&¢\u0006\u0002\u0010\nJ\u0015\u0010\u000b\u001a\u00028\u00002\u0006\u0010\u0007\u001a\u00020\bH&¢\u0006\u0002\u0010\fJ\u001e\u0010\r\u001a\u00028\u00002\u0006\u0010\u0007\u001a\u00020\b2\u0006\u0010\t\u001a\u00028\u0000H¦\u0002¢\u0006\u0002\u0010\u000e¨\u0006\u000f"}, d2 = {"Lkotlin/collections/AbstractMutableList;", "E", "", "Ljava/util/AbstractList;", "()V", "add", "", "index", "", "element", "(ILjava/lang/Object;)V", "removeAt", "(I)Ljava/lang/Object;", "set", "(ILjava/lang/Object;)Ljava/lang/Object;", "kotlin-stdlib"}, k = 1, mv = {1, 8, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public abstract class AbstractMutableList<E> extends java.util.AbstractList<E> implements List<E>, KMutableList {
|
||||
@Override // java.util.AbstractList, java.util.List
|
||||
public abstract void add(int index, E element);
|
||||
|
||||
public abstract int getSize();
|
||||
|
||||
public abstract E removeAt(int index);
|
||||
|
||||
@Override // java.util.AbstractList, java.util.List
|
||||
public abstract E set(int index, E element);
|
||||
|
||||
@Override // java.util.AbstractList, java.util.List
|
||||
public final /* bridge */ E remove(int i) {
|
||||
return removeAt(i);
|
||||
}
|
||||
|
||||
@Override // java.util.AbstractCollection, java.util.Collection, java.util.List
|
||||
public final /* bridge */ int size() {
|
||||
return getSize();
|
||||
}
|
||||
|
||||
protected AbstractMutableList() {
|
||||
}
|
||||
}
|
@ -0,0 +1,52 @@
|
||||
package kotlin.collections;
|
||||
|
||||
import java.util.Collection;
|
||||
import java.util.Map;
|
||||
import java.util.Set;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.internal.markers.KMutableMap;
|
||||
|
||||
/* compiled from: AbstractMutableMap.kt */
|
||||
@Metadata(d1 = {"\u0000\u0014\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010%\n\u0002\u0018\u0002\n\u0002\b\u0006\b'\u0018\u0000*\u0004\b\u0000\u0010\u0001*\u0004\b\u0001\u0010\u00022\u000e\u0012\u0004\u0012\u0002H\u0001\u0012\u0004\u0012\u0002H\u00020\u00032\u000e\u0012\u0004\u0012\u0002H\u0001\u0012\u0004\u0012\u0002H\u00020\u0004B\u0007\b\u0004¢\u0006\u0002\u0010\u0005J\u001f\u0010\u0006\u001a\u0004\u0018\u00018\u00012\u0006\u0010\u0007\u001a\u00028\u00002\u0006\u0010\b\u001a\u00028\u0001H&¢\u0006\u0002\u0010\t¨\u0006\n"}, d2 = {"Lkotlin/collections/AbstractMutableMap;", "K", "V", "", "Ljava/util/AbstractMap;", "()V", "put", "key", "value", "(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;", "kotlin-stdlib"}, k = 1, mv = {1, 8, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public abstract class AbstractMutableMap<K, V> extends java.util.AbstractMap<K, V> implements Map<K, V>, KMutableMap {
|
||||
public abstract Set getEntries();
|
||||
|
||||
@Override // java.util.AbstractMap, java.util.Map
|
||||
public abstract V put(K key, V value);
|
||||
|
||||
@Override // java.util.AbstractMap, java.util.Map
|
||||
public final /* bridge */ Set<Map.Entry<K, V>> entrySet() {
|
||||
return getEntries();
|
||||
}
|
||||
|
||||
public /* bridge */ Set<Object> getKeys() {
|
||||
return super.keySet();
|
||||
}
|
||||
|
||||
public /* bridge */ int getSize() {
|
||||
return super.size();
|
||||
}
|
||||
|
||||
public /* bridge */ Collection<Object> getValues() {
|
||||
return super.values();
|
||||
}
|
||||
|
||||
@Override // java.util.AbstractMap, java.util.Map
|
||||
public final /* bridge */ Set<K> keySet() {
|
||||
return (Set<K>) getKeys();
|
||||
}
|
||||
|
||||
@Override // java.util.AbstractMap, java.util.Map
|
||||
public final /* bridge */ int size() {
|
||||
return getSize();
|
||||
}
|
||||
|
||||
@Override // java.util.AbstractMap, java.util.Map
|
||||
public final /* bridge */ Collection<V> values() {
|
||||
return (Collection<V>) getValues();
|
||||
}
|
||||
|
||||
protected AbstractMutableMap() {
|
||||
}
|
||||
}
|
@ -0,0 +1,23 @@
|
||||
package kotlin.collections;
|
||||
|
||||
import java.util.Set;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.internal.markers.KMutableSet;
|
||||
|
||||
/* compiled from: AbstractMutableSet.kt */
|
||||
@Metadata(d1 = {"\u0000\u001a\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010#\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u000b\n\u0002\b\u0003\b'\u0018\u0000*\u0004\b\u0000\u0010\u00012\b\u0012\u0004\u0012\u0002H\u00010\u00022\b\u0012\u0004\u0012\u0002H\u00010\u0003B\u0007\b\u0004¢\u0006\u0002\u0010\u0004J\u0015\u0010\u0005\u001a\u00020\u00062\u0006\u0010\u0007\u001a\u00028\u0000H&¢\u0006\u0002\u0010\b¨\u0006\t"}, d2 = {"Lkotlin/collections/AbstractMutableSet;", "E", "", "Ljava/util/AbstractSet;", "()V", "add", "", "element", "(Ljava/lang/Object;)Z", "kotlin-stdlib"}, k = 1, mv = {1, 8, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public abstract class AbstractMutableSet<E> extends java.util.AbstractSet<E> implements Set<E>, KMutableSet {
|
||||
@Override // java.util.AbstractCollection, java.util.Collection, java.util.Set
|
||||
public abstract boolean add(E element);
|
||||
|
||||
public abstract int getSize();
|
||||
|
||||
@Override // java.util.AbstractCollection, java.util.Collection, java.util.Set
|
||||
public final /* bridge */ int size() {
|
||||
return getSize();
|
||||
}
|
||||
|
||||
protected AbstractMutableSet() {
|
||||
}
|
||||
}
|
73
02-Easy5/E5/sources/kotlin/collections/AbstractSet.java
Normal file
73
02-Easy5/E5/sources/kotlin/collections/AbstractSet.java
Normal file
@ -0,0 +1,73 @@
|
||||
package kotlin.collections;
|
||||
|
||||
import java.util.Collection;
|
||||
import java.util.Iterator;
|
||||
import java.util.Set;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.internal.DefaultConstructorMarker;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.jvm.internal.markers.KMappedMarker;
|
||||
|
||||
/* compiled from: AbstractSet.kt */
|
||||
@Metadata(d1 = {"\u0000&\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0010\"\n\u0002\b\u0002\n\u0002\u0010\u000b\n\u0000\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\b\n\u0002\b\u0002\b'\u0018\u0000 \u000b*\u0006\b\u0000\u0010\u0001 \u00012\b\u0012\u0004\u0012\u0002H\u00010\u00022\b\u0012\u0004\u0012\u0002H\u00010\u0003:\u0001\u000bB\u0007\b\u0004¢\u0006\u0002\u0010\u0004J\u0013\u0010\u0005\u001a\u00020\u00062\b\u0010\u0007\u001a\u0004\u0018\u00010\bH\u0096\u0002J\b\u0010\t\u001a\u00020\nH\u0016¨\u0006\f"}, d2 = {"Lkotlin/collections/AbstractSet;", "E", "Lkotlin/collections/AbstractCollection;", "", "()V", "equals", "", "other", "", "hashCode", "", "Companion", "kotlin-stdlib"}, k = 1, mv = {1, 8, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public abstract class AbstractSet<E> extends AbstractCollection<E> implements Set<E>, KMappedMarker {
|
||||
|
||||
/* renamed from: Companion, reason: from kotlin metadata */
|
||||
public static final Companion INSTANCE = new Companion(null);
|
||||
|
||||
@Override // kotlin.collections.AbstractCollection, java.util.Collection, java.lang.Iterable
|
||||
public Iterator<E> iterator() {
|
||||
throw new UnsupportedOperationException("Operation is not supported for read-only collection");
|
||||
}
|
||||
|
||||
protected AbstractSet() {
|
||||
}
|
||||
|
||||
@Override // java.util.Collection, java.util.Set
|
||||
public boolean equals(Object other) {
|
||||
if (other == this) {
|
||||
return true;
|
||||
}
|
||||
if (other instanceof Set) {
|
||||
return INSTANCE.setEquals$kotlin_stdlib(this, (Set) other);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override // java.util.Collection, java.util.Set
|
||||
public int hashCode() {
|
||||
return INSTANCE.unorderedHashCode$kotlin_stdlib(this);
|
||||
}
|
||||
|
||||
/* compiled from: AbstractSet.kt */
|
||||
@Metadata(d1 = {"\u0000&\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0010\u000b\n\u0000\n\u0002\u0010\"\n\u0002\b\u0003\n\u0002\u0010\b\n\u0002\u0010\u001e\n\u0002\b\u0002\b\u0080\u0003\u0018\u00002\u00020\u0001B\u0007\b\u0002¢\u0006\u0002\u0010\u0002J%\u0010\u0003\u001a\u00020\u00042\n\u0010\u0005\u001a\u0006\u0012\u0002\b\u00030\u00062\n\u0010\u0007\u001a\u0006\u0012\u0002\b\u00030\u0006H\u0000¢\u0006\u0002\b\bJ\u0019\u0010\t\u001a\u00020\n2\n\u0010\u0005\u001a\u0006\u0012\u0002\b\u00030\u000bH\u0000¢\u0006\u0002\b\f¨\u0006\r"}, d2 = {"Lkotlin/collections/AbstractSet$Companion;", "", "()V", "setEquals", "", "c", "", "other", "setEquals$kotlin_stdlib", "unorderedHashCode", "", "", "unorderedHashCode$kotlin_stdlib", "kotlin-stdlib"}, k = 1, mv = {1, 8, 0}, xi = 48)
|
||||
public static final class Companion {
|
||||
public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
|
||||
this();
|
||||
}
|
||||
|
||||
private Companion() {
|
||||
}
|
||||
|
||||
public final int unorderedHashCode$kotlin_stdlib(Collection<?> c) {
|
||||
Intrinsics.checkNotNullParameter(c, "c");
|
||||
Iterator<?> it = c.iterator();
|
||||
int i = 0;
|
||||
while (it.hasNext()) {
|
||||
Object next = it.next();
|
||||
i += next != null ? next.hashCode() : 0;
|
||||
}
|
||||
return i;
|
||||
}
|
||||
|
||||
public final boolean setEquals$kotlin_stdlib(Set<?> c, Set<?> other) {
|
||||
Intrinsics.checkNotNullParameter(c, "c");
|
||||
Intrinsics.checkNotNullParameter(other, "other");
|
||||
if (c.size() != other.size()) {
|
||||
return false;
|
||||
}
|
||||
return c.containsAll(other);
|
||||
}
|
||||
}
|
||||
}
|
113
02-Easy5/E5/sources/kotlin/collections/ArrayAsCollection.java
Normal file
113
02-Easy5/E5/sources/kotlin/collections/ArrayAsCollection.java
Normal file
@ -0,0 +1,113 @@
|
||||
package kotlin.collections;
|
||||
|
||||
import java.util.Collection;
|
||||
import java.util.Iterator;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.internal.ArrayIteratorKt;
|
||||
import kotlin.jvm.internal.CollectionToArray;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.jvm.internal.markers.KMappedMarker;
|
||||
|
||||
/* compiled from: Collections.kt */
|
||||
@Metadata(d1 = {"\u0000.\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u001e\n\u0000\n\u0002\u0010\u0011\n\u0000\n\u0002\u0010\u000b\n\u0002\b\u0003\n\u0002\u0010\b\n\u0002\b\f\n\u0002\u0010(\n\u0000\n\u0002\u0010\u0000\n\u0000\b\u0002\u0018\u0000*\u0004\b\u0000\u0010\u00012\b\u0012\u0004\u0012\u0002H\u00010\u0002B\u001d\u0012\u000e\u0010\u0003\u001a\n\u0012\u0006\b\u0001\u0012\u00028\u00000\u0004\u0012\u0006\u0010\u0005\u001a\u00020\u0006¢\u0006\u0002\u0010\u0007J\u0016\u0010\u0010\u001a\u00020\u00062\u0006\u0010\u0011\u001a\u00028\u0000H\u0096\u0002¢\u0006\u0002\u0010\u0012J\u0016\u0010\u0013\u001a\u00020\u00062\f\u0010\u0014\u001a\b\u0012\u0004\u0012\u00028\u00000\u0002H\u0016J\b\u0010\u0015\u001a\u00020\u0006H\u0016J\u000f\u0010\u0016\u001a\b\u0012\u0004\u0012\u00028\u00000\u0017H\u0096\u0002J\u0015\u0010\u0018\u001a\f\u0012\b\b\u0001\u0012\u0004\u0018\u00010\u00190\u0004¢\u0006\u0002\u0010\u000eR\u0011\u0010\u0005\u001a\u00020\u0006¢\u0006\b\n\u0000\u001a\u0004\b\u0005\u0010\bR\u0014\u0010\t\u001a\u00020\n8VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b\u000b\u0010\fR\u001b\u0010\u0003\u001a\n\u0012\u0006\b\u0001\u0012\u00028\u00000\u0004¢\u0006\n\n\u0002\u0010\u000f\u001a\u0004\b\r\u0010\u000e¨\u0006\u001a"}, d2 = {"Lkotlin/collections/ArrayAsCollection;", "T", "", "values", "", "isVarargs", "", "([Ljava/lang/Object;Z)V", "()Z", "size", "", "getSize", "()I", "getValues", "()[Ljava/lang/Object;", "[Ljava/lang/Object;", "contains", "element", "(Ljava/lang/Object;)Z", "containsAll", "elements", "isEmpty", "iterator", "", "toArray", "", "kotlin-stdlib"}, k = 1, mv = {1, 8, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
final class ArrayAsCollection<T> implements Collection<T>, KMappedMarker {
|
||||
private final boolean isVarargs;
|
||||
private final T[] values;
|
||||
|
||||
@Override // java.util.Collection
|
||||
public boolean add(T t) {
|
||||
throw new UnsupportedOperationException("Operation is not supported for read-only collection");
|
||||
}
|
||||
|
||||
@Override // java.util.Collection
|
||||
public boolean addAll(Collection<? extends T> collection) {
|
||||
throw new UnsupportedOperationException("Operation is not supported for read-only collection");
|
||||
}
|
||||
|
||||
@Override // java.util.Collection
|
||||
public void clear() {
|
||||
throw new UnsupportedOperationException("Operation is not supported for read-only collection");
|
||||
}
|
||||
|
||||
public final T[] getValues() {
|
||||
return this.values;
|
||||
}
|
||||
|
||||
/* renamed from: isVarargs, reason: from getter */
|
||||
public final boolean getIsVarargs() {
|
||||
return this.isVarargs;
|
||||
}
|
||||
|
||||
@Override // java.util.Collection
|
||||
public boolean remove(Object obj) {
|
||||
throw new UnsupportedOperationException("Operation is not supported for read-only collection");
|
||||
}
|
||||
|
||||
@Override // java.util.Collection
|
||||
public boolean removeAll(Collection<? extends Object> collection) {
|
||||
throw new UnsupportedOperationException("Operation is not supported for read-only collection");
|
||||
}
|
||||
|
||||
@Override // java.util.Collection
|
||||
public boolean retainAll(Collection<? extends Object> collection) {
|
||||
throw new UnsupportedOperationException("Operation is not supported for read-only collection");
|
||||
}
|
||||
|
||||
@Override // java.util.Collection
|
||||
public <T> T[] toArray(T[] array) {
|
||||
Intrinsics.checkNotNullParameter(array, "array");
|
||||
return (T[]) CollectionToArray.toArray(this, array);
|
||||
}
|
||||
|
||||
public ArrayAsCollection(T[] values, boolean z) {
|
||||
Intrinsics.checkNotNullParameter(values, "values");
|
||||
this.values = values;
|
||||
this.isVarargs = z;
|
||||
}
|
||||
|
||||
@Override // java.util.Collection
|
||||
public final /* bridge */ int size() {
|
||||
return getSize();
|
||||
}
|
||||
|
||||
public int getSize() {
|
||||
return this.values.length;
|
||||
}
|
||||
|
||||
@Override // java.util.Collection
|
||||
public boolean isEmpty() {
|
||||
return this.values.length == 0;
|
||||
}
|
||||
|
||||
@Override // java.util.Collection
|
||||
public boolean contains(Object element) {
|
||||
return ArraysKt.contains(this.values, element);
|
||||
}
|
||||
|
||||
@Override // java.util.Collection
|
||||
public boolean containsAll(Collection<? extends Object> elements) {
|
||||
Intrinsics.checkNotNullParameter(elements, "elements");
|
||||
Collection<? extends Object> collection = elements;
|
||||
if (collection.isEmpty()) {
|
||||
return true;
|
||||
}
|
||||
Iterator<T> it = collection.iterator();
|
||||
while (it.hasNext()) {
|
||||
if (!contains(it.next())) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override // java.util.Collection, java.lang.Iterable
|
||||
public Iterator<T> iterator() {
|
||||
return ArrayIteratorKt.iterator(this.values);
|
||||
}
|
||||
|
||||
@Override // java.util.Collection
|
||||
public final Object[] toArray() {
|
||||
return CollectionsKt.copyToArrayOfAny(this.values, this.isVarargs);
|
||||
}
|
||||
}
|
778
02-Easy5/E5/sources/kotlin/collections/ArrayDeque.java
Normal file
778
02-Easy5/E5/sources/kotlin/collections/ArrayDeque.java
Normal file
File diff suppressed because one or more lines are too long
10
02-Easy5/E5/sources/kotlin/collections/ArraysKt.java
Normal file
10
02-Easy5/E5/sources/kotlin/collections/ArraysKt.java
Normal file
@ -0,0 +1,10 @@
|
||||
package kotlin.collections;
|
||||
|
||||
import kotlin.Metadata;
|
||||
|
||||
@Metadata(d1 = {"kotlin/collections/ArraysKt__ArraysJVMKt", "kotlin/collections/ArraysKt__ArraysKt", "kotlin/collections/ArraysKt___ArraysJvmKt", "kotlin/collections/ArraysKt___ArraysKt"}, k = 4, mv = {1, 8, 0}, xi = 49)
|
||||
/* loaded from: classes.dex */
|
||||
public final class ArraysKt extends ArraysKt___ArraysKt {
|
||||
private ArraysKt() {
|
||||
}
|
||||
}
|
@ -0,0 +1,51 @@
|
||||
package kotlin.collections;
|
||||
|
||||
import java.lang.reflect.Array;
|
||||
import java.nio.charset.Charset;
|
||||
import java.util.Arrays;
|
||||
import java.util.Collection;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
|
||||
/* compiled from: ArraysJVM.kt */
|
||||
@Metadata(d1 = {"\u00002\n\u0000\n\u0002\u0010\u0011\n\u0002\b\u0003\n\u0002\u0010\b\n\u0002\b\u0002\n\u0002\u0010\u0002\n\u0002\b\u0007\n\u0002\u0010\u000e\n\u0002\u0010\u0012\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u001e\n\u0002\b\u0002\u001a/\u0010\u0000\u001a\b\u0012\u0004\u0012\u0002H\u00020\u0001\"\u0004\b\u0000\u0010\u00022\f\u0010\u0003\u001a\b\u0012\u0004\u0012\u0002H\u00020\u00012\u0006\u0010\u0004\u001a\u00020\u0005H\u0000¢\u0006\u0002\u0010\u0006\u001a\u0018\u0010\u0007\u001a\u00020\b2\u0006\u0010\t\u001a\u00020\u00052\u0006\u0010\u0004\u001a\u00020\u0005H\u0001\u001a#\u0010\n\u001a\u00020\u0005\"\u0004\b\u0000\u0010\u0002*\f\u0012\u0006\b\u0001\u0012\u0002H\u0002\u0018\u00010\u0001H\u0001¢\u0006\u0004\b\u000b\u0010\f\u001a,\u0010\r\u001a\n\u0012\u0006\b\u0001\u0012\u0002H\u00020\u0001\"\u0006\b\u0000\u0010\u0002\u0018\u0001*\f\u0012\u0006\b\u0001\u0012\u0002H\u0002\u0018\u00010\u0001H\u0086\b¢\u0006\u0002\u0010\u000e\u001a\u0015\u0010\u000f\u001a\u00020\u0010*\u00020\u00112\u0006\u0010\u0012\u001a\u00020\u0013H\u0087\b\u001a&\u0010\u0014\u001a\b\u0012\u0004\u0012\u0002H\u00020\u0001\"\u0006\b\u0000\u0010\u0002\u0018\u0001*\b\u0012\u0004\u0012\u0002H\u00020\u0015H\u0086\b¢\u0006\u0002\u0010\u0016¨\u0006\u0017"}, d2 = {"arrayOfNulls", "", "T", "reference", "size", "", "([Ljava/lang/Object;I)[Ljava/lang/Object;", "copyOfRangeToIndexCheck", "", "toIndex", "contentDeepHashCodeImpl", "contentDeepHashCode", "([Ljava/lang/Object;)I", "orEmpty", "([Ljava/lang/Object;)[Ljava/lang/Object;", "toString", "", "", "charset", "Ljava/nio/charset/Charset;", "toTypedArray", "", "(Ljava/util/Collection;)[Ljava/lang/Object;", "kotlin-stdlib"}, k = 5, mv = {1, 8, 0}, xi = 49, xs = "kotlin/collections/ArraysKt")
|
||||
/* loaded from: classes.dex */
|
||||
class ArraysKt__ArraysJVMKt {
|
||||
private static final String toString(byte[] bArr, Charset charset) {
|
||||
Intrinsics.checkNotNullParameter(bArr, "<this>");
|
||||
Intrinsics.checkNotNullParameter(charset, "charset");
|
||||
return new String(bArr, charset);
|
||||
}
|
||||
|
||||
public static final /* synthetic */ <T> T[] toTypedArray(Collection<? extends T> collection) {
|
||||
Intrinsics.checkNotNullParameter(collection, "<this>");
|
||||
Intrinsics.reifiedOperationMarker(0, "T?");
|
||||
return (T[]) collection.toArray(new Object[0]);
|
||||
}
|
||||
|
||||
public static final <T> T[] arrayOfNulls(T[] reference, int i) {
|
||||
Intrinsics.checkNotNullParameter(reference, "reference");
|
||||
Object newInstance = Array.newInstance(reference.getClass().getComponentType(), i);
|
||||
Intrinsics.checkNotNull(newInstance, "null cannot be cast to non-null type kotlin.Array<T of kotlin.collections.ArraysKt__ArraysJVMKt.arrayOfNulls>");
|
||||
return (T[]) ((Object[]) newInstance);
|
||||
}
|
||||
|
||||
public static final void copyOfRangeToIndexCheck(int i, int i2) {
|
||||
if (i <= i2) {
|
||||
return;
|
||||
}
|
||||
throw new IndexOutOfBoundsException("toIndex (" + i + ") is greater than size (" + i2 + ").");
|
||||
}
|
||||
|
||||
public static final <T> int contentDeepHashCode(T[] tArr) {
|
||||
return Arrays.deepHashCode(tArr);
|
||||
}
|
||||
|
||||
public static final /* synthetic */ <T> T[] orEmpty(T[] tArr) {
|
||||
if (tArr != null) {
|
||||
return tArr;
|
||||
}
|
||||
Intrinsics.reifiedOperationMarker(0, "T?");
|
||||
return (T[]) new Object[0];
|
||||
}
|
||||
}
|
214
02-Easy5/E5/sources/kotlin/collections/ArraysKt__ArraysKt.java
Normal file
214
02-Easy5/E5/sources/kotlin/collections/ArraysKt__ArraysKt.java
Normal file
@ -0,0 +1,214 @@
|
||||
package kotlin.collections;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.Pair;
|
||||
import kotlin.TuplesKt;
|
||||
import kotlin.UByteArray;
|
||||
import kotlin.UIntArray;
|
||||
import kotlin.ULongArray;
|
||||
import kotlin.UShortArray;
|
||||
import kotlin.collections.unsigned.UArraysKt;
|
||||
import kotlin.jvm.functions.Function0;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.ranges.RangesKt;
|
||||
|
||||
/* compiled from: Arrays.kt */
|
||||
@Metadata(d1 = {"\u0000H\n\u0000\n\u0002\u0010\u000b\n\u0000\n\u0002\u0010\u0011\n\u0002\b\u0004\n\u0002\u0010\u000e\n\u0002\b\u0003\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010!\n\u0002\b\u0003\n\u0002\u0010 \n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\b\u0002\u001a5\u0010\u0000\u001a\u00020\u0001\"\u0004\b\u0000\u0010\u0002*\f\u0012\u0006\b\u0001\u0012\u0002H\u0002\u0018\u00010\u00032\u0010\u0010\u0004\u001a\f\u0012\u0006\b\u0001\u0012\u0002H\u0002\u0018\u00010\u0003H\u0001¢\u0006\u0004\b\u0005\u0010\u0006\u001a#\u0010\u0007\u001a\u00020\b\"\u0004\b\u0000\u0010\u0002*\f\u0012\u0006\b\u0001\u0012\u0002H\u0002\u0018\u00010\u0003H\u0001¢\u0006\u0004\b\t\u0010\n\u001a?\u0010\u000b\u001a\u00020\f\"\u0004\b\u0000\u0010\u0002*\n\u0012\u0006\b\u0001\u0012\u0002H\u00020\u00032\n\u0010\r\u001a\u00060\u000ej\u0002`\u000f2\u0010\u0010\u0010\u001a\f\u0012\b\u0012\u0006\u0012\u0002\b\u00030\u00030\u0011H\u0002¢\u0006\u0004\b\u0012\u0010\u0013\u001a+\u0010\u0014\u001a\b\u0012\u0004\u0012\u0002H\u00020\u0015\"\u0004\b\u0000\u0010\u0002*\u0012\u0012\u000e\b\u0001\u0012\n\u0012\u0006\b\u0001\u0012\u0002H\u00020\u00030\u0003¢\u0006\u0002\u0010\u0016\u001a;\u0010\u0017\u001a\u0002H\u0018\"\u0010\b\u0000\u0010\u0019*\u0006\u0012\u0002\b\u00030\u0003*\u0002H\u0018\"\u0004\b\u0001\u0010\u0018*\u0002H\u00192\f\u0010\u001a\u001a\b\u0012\u0004\u0012\u0002H\u00180\u001bH\u0087\bø\u0001\u0000¢\u0006\u0002\u0010\u001c\u001a)\u0010\u001d\u001a\u00020\u0001*\b\u0012\u0002\b\u0003\u0018\u00010\u0003H\u0087\b\u0082\u0002\u000e\n\f\b\u0000\u0012\u0002\u0018\u0001\u001a\u0004\b\u0003\u0010\u0000¢\u0006\u0002\u0010\u001e\u001aG\u0010\u001f\u001a\u001a\u0012\n\u0012\b\u0012\u0004\u0012\u0002H\u00020\u0015\u0012\n\u0012\b\u0012\u0004\u0012\u0002H\u00180\u00150 \"\u0004\b\u0000\u0010\u0002\"\u0004\b\u0001\u0010\u0018*\u0016\u0012\u0012\b\u0001\u0012\u000e\u0012\u0004\u0012\u0002H\u0002\u0012\u0004\u0012\u0002H\u00180 0\u0003¢\u0006\u0002\u0010!\u0082\u0002\u0007\n\u0005\b\u009920\u0001¨\u0006\""}, d2 = {"contentDeepEqualsImpl", "", "T", "", "other", "contentDeepEquals", "([Ljava/lang/Object;[Ljava/lang/Object;)Z", "contentDeepToStringImpl", "", "contentDeepToString", "([Ljava/lang/Object;)Ljava/lang/String;", "contentDeepToStringInternal", "", "result", "Ljava/lang/StringBuilder;", "Lkotlin/text/StringBuilder;", "processed", "", "contentDeepToStringInternal$ArraysKt__ArraysKt", "([Ljava/lang/Object;Ljava/lang/StringBuilder;Ljava/util/List;)V", "flatten", "", "([[Ljava/lang/Object;)Ljava/util/List;", "ifEmpty", "R", "C", "defaultValue", "Lkotlin/Function0;", "([Ljava/lang/Object;Lkotlin/jvm/functions/Function0;)Ljava/lang/Object;", "isNullOrEmpty", "([Ljava/lang/Object;)Z", "unzip", "Lkotlin/Pair;", "([Lkotlin/Pair;)Lkotlin/Pair;", "kotlin-stdlib"}, k = 5, mv = {1, 8, 0}, xi = 49, xs = "kotlin/collections/ArraysKt")
|
||||
/* loaded from: classes.dex */
|
||||
class ArraysKt__ArraysKt extends ArraysKt__ArraysJVMKt {
|
||||
public static final <T> List<T> flatten(T[][] tArr) {
|
||||
Intrinsics.checkNotNullParameter(tArr, "<this>");
|
||||
T[][] tArr2 = tArr;
|
||||
int i = 0;
|
||||
for (T[] tArr3 : tArr2) {
|
||||
i += tArr3.length;
|
||||
}
|
||||
ArrayList arrayList = new ArrayList(i);
|
||||
int length = tArr2.length;
|
||||
for (int i2 = 0; i2 < length; i2++) {
|
||||
CollectionsKt.addAll(arrayList, tArr[i2]);
|
||||
}
|
||||
return arrayList;
|
||||
}
|
||||
|
||||
public static final <T, R> Pair<List<T>, List<R>> unzip(Pair<? extends T, ? extends R>[] pairArr) {
|
||||
Intrinsics.checkNotNullParameter(pairArr, "<this>");
|
||||
ArrayList arrayList = new ArrayList(pairArr.length);
|
||||
ArrayList arrayList2 = new ArrayList(pairArr.length);
|
||||
for (Pair<? extends T, ? extends R> pair : pairArr) {
|
||||
arrayList.add(pair.getFirst());
|
||||
arrayList2.add(pair.getSecond());
|
||||
}
|
||||
return TuplesKt.to(arrayList, arrayList2);
|
||||
}
|
||||
|
||||
private static final boolean isNullOrEmpty(Object[] objArr) {
|
||||
return objArr == null || objArr.length == 0;
|
||||
}
|
||||
|
||||
/* JADX WARN: Incorrect types in method signature: <C:[Ljava/lang/Object;:TR;R:Ljava/lang/Object;>(TC;Lkotlin/jvm/functions/Function0<+TR;>;)TR; */
|
||||
private static final Object ifEmpty(Object[] objArr, Function0 defaultValue) {
|
||||
Intrinsics.checkNotNullParameter(defaultValue, "defaultValue");
|
||||
return objArr.length == 0 ? defaultValue.invoke() : objArr;
|
||||
}
|
||||
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
public static final <T> boolean contentDeepEquals(T[] tArr, T[] tArr2) {
|
||||
if (tArr == tArr2) {
|
||||
return true;
|
||||
}
|
||||
if (tArr == 0 || tArr2 == 0 || tArr.length != tArr2.length) {
|
||||
return false;
|
||||
}
|
||||
int length = tArr.length;
|
||||
for (int i = 0; i < length; i++) {
|
||||
Object[] objArr = tArr[i];
|
||||
Object[] objArr2 = tArr2[i];
|
||||
if (objArr != objArr2) {
|
||||
if (objArr == 0 || objArr2 == 0) {
|
||||
return false;
|
||||
}
|
||||
if ((objArr instanceof Object[]) && (objArr2 instanceof Object[])) {
|
||||
if (!ArraysKt.contentDeepEquals(objArr, objArr2)) {
|
||||
return false;
|
||||
}
|
||||
} else if ((objArr instanceof byte[]) && (objArr2 instanceof byte[])) {
|
||||
if (!Arrays.equals((byte[]) objArr, (byte[]) objArr2)) {
|
||||
return false;
|
||||
}
|
||||
} else if ((objArr instanceof short[]) && (objArr2 instanceof short[])) {
|
||||
if (!Arrays.equals((short[]) objArr, (short[]) objArr2)) {
|
||||
return false;
|
||||
}
|
||||
} else if ((objArr instanceof int[]) && (objArr2 instanceof int[])) {
|
||||
if (!Arrays.equals((int[]) objArr, (int[]) objArr2)) {
|
||||
return false;
|
||||
}
|
||||
} else if ((objArr instanceof long[]) && (objArr2 instanceof long[])) {
|
||||
if (!Arrays.equals((long[]) objArr, (long[]) objArr2)) {
|
||||
return false;
|
||||
}
|
||||
} else if ((objArr instanceof float[]) && (objArr2 instanceof float[])) {
|
||||
if (!Arrays.equals((float[]) objArr, (float[]) objArr2)) {
|
||||
return false;
|
||||
}
|
||||
} else if ((objArr instanceof double[]) && (objArr2 instanceof double[])) {
|
||||
if (!Arrays.equals((double[]) objArr, (double[]) objArr2)) {
|
||||
return false;
|
||||
}
|
||||
} else if ((objArr instanceof char[]) && (objArr2 instanceof char[])) {
|
||||
if (!Arrays.equals((char[]) objArr, (char[]) objArr2)) {
|
||||
return false;
|
||||
}
|
||||
} else if ((objArr instanceof boolean[]) && (objArr2 instanceof boolean[])) {
|
||||
if (!Arrays.equals((boolean[]) objArr, (boolean[]) objArr2)) {
|
||||
return false;
|
||||
}
|
||||
} else if ((objArr instanceof UByteArray) && (objArr2 instanceof UByteArray)) {
|
||||
if (!UArraysKt.m859contentEqualskV0jMPg(((UByteArray) objArr).getStorage(), ((UByteArray) objArr2).getStorage())) {
|
||||
return false;
|
||||
}
|
||||
} else if ((objArr instanceof UShortArray) && (objArr2 instanceof UShortArray)) {
|
||||
if (!UArraysKt.m856contentEqualsFGO6Aew(((UShortArray) objArr).getStorage(), ((UShortArray) objArr2).getStorage())) {
|
||||
return false;
|
||||
}
|
||||
} else if ((objArr instanceof UIntArray) && (objArr2 instanceof UIntArray)) {
|
||||
if (!UArraysKt.m857contentEqualsKJPZfPQ(((UIntArray) objArr).getStorage(), ((UIntArray) objArr2).getStorage())) {
|
||||
return false;
|
||||
}
|
||||
} else if ((objArr instanceof ULongArray) && (objArr2 instanceof ULongArray)) {
|
||||
if (!UArraysKt.m861contentEqualslec5QzE(((ULongArray) objArr).getStorage(), ((ULongArray) objArr2).getStorage())) {
|
||||
return false;
|
||||
}
|
||||
} else if (!Intrinsics.areEqual(objArr, objArr2)) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
public static final <T> String contentDeepToString(T[] tArr) {
|
||||
if (tArr == null) {
|
||||
return "null";
|
||||
}
|
||||
StringBuilder sb = new StringBuilder((RangesKt.coerceAtMost(tArr.length, 429496729) * 5) + 2);
|
||||
contentDeepToStringInternal$ArraysKt__ArraysKt(tArr, sb, new ArrayList());
|
||||
String sb2 = sb.toString();
|
||||
Intrinsics.checkNotNullExpressionValue(sb2, "StringBuilder(capacity).…builderAction).toString()");
|
||||
return sb2;
|
||||
}
|
||||
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
private static final <T> void contentDeepToStringInternal$ArraysKt__ArraysKt(T[] tArr, StringBuilder sb, List<Object[]> list) {
|
||||
if (list.contains(tArr)) {
|
||||
sb.append("[...]");
|
||||
return;
|
||||
}
|
||||
list.add(tArr);
|
||||
sb.append('[');
|
||||
int length = tArr.length;
|
||||
for (int i = 0; i < length; i++) {
|
||||
if (i != 0) {
|
||||
sb.append(", ");
|
||||
}
|
||||
Object[] objArr = tArr[i];
|
||||
if (objArr == 0) {
|
||||
sb.append("null");
|
||||
} else if (objArr instanceof Object[]) {
|
||||
contentDeepToStringInternal$ArraysKt__ArraysKt(objArr, sb, list);
|
||||
} else if (objArr instanceof byte[]) {
|
||||
String arrays = Arrays.toString((byte[]) objArr);
|
||||
Intrinsics.checkNotNullExpressionValue(arrays, "toString(this)");
|
||||
sb.append(arrays);
|
||||
} else if (objArr instanceof short[]) {
|
||||
String arrays2 = Arrays.toString((short[]) objArr);
|
||||
Intrinsics.checkNotNullExpressionValue(arrays2, "toString(this)");
|
||||
sb.append(arrays2);
|
||||
} else if (objArr instanceof int[]) {
|
||||
String arrays3 = Arrays.toString((int[]) objArr);
|
||||
Intrinsics.checkNotNullExpressionValue(arrays3, "toString(this)");
|
||||
sb.append(arrays3);
|
||||
} else if (objArr instanceof long[]) {
|
||||
String arrays4 = Arrays.toString((long[]) objArr);
|
||||
Intrinsics.checkNotNullExpressionValue(arrays4, "toString(this)");
|
||||
sb.append(arrays4);
|
||||
} else if (objArr instanceof float[]) {
|
||||
String arrays5 = Arrays.toString((float[]) objArr);
|
||||
Intrinsics.checkNotNullExpressionValue(arrays5, "toString(this)");
|
||||
sb.append(arrays5);
|
||||
} else if (objArr instanceof double[]) {
|
||||
String arrays6 = Arrays.toString((double[]) objArr);
|
||||
Intrinsics.checkNotNullExpressionValue(arrays6, "toString(this)");
|
||||
sb.append(arrays6);
|
||||
} else if (objArr instanceof char[]) {
|
||||
String arrays7 = Arrays.toString((char[]) objArr);
|
||||
Intrinsics.checkNotNullExpressionValue(arrays7, "toString(this)");
|
||||
sb.append(arrays7);
|
||||
} else if (objArr instanceof boolean[]) {
|
||||
String arrays8 = Arrays.toString((boolean[]) objArr);
|
||||
Intrinsics.checkNotNullExpressionValue(arrays8, "toString(this)");
|
||||
sb.append(arrays8);
|
||||
} else if (objArr instanceof UByteArray) {
|
||||
UByteArray uByteArray = (UByteArray) objArr;
|
||||
sb.append(UArraysKt.m873contentToString2csIQuQ(uByteArray != null ? uByteArray.getStorage() : null));
|
||||
} else if (objArr instanceof UShortArray) {
|
||||
UShortArray uShortArray = (UShortArray) objArr;
|
||||
sb.append(UArraysKt.m877contentToStringd6D3K8(uShortArray != null ? uShortArray.getStorage() : null));
|
||||
} else if (objArr instanceof UIntArray) {
|
||||
UIntArray uIntArray = (UIntArray) objArr;
|
||||
sb.append(UArraysKt.m876contentToStringXUkPCBk(uIntArray != null ? uIntArray.getStorage() : null));
|
||||
} else if (objArr instanceof ULongArray) {
|
||||
ULongArray uLongArray = (ULongArray) objArr;
|
||||
sb.append(UArraysKt.m879contentToStringuLth9ew(uLongArray != null ? uLongArray.getStorage() : null));
|
||||
} else {
|
||||
sb.append(objArr.toString());
|
||||
}
|
||||
}
|
||||
sb.append(']');
|
||||
list.remove(CollectionsKt.getLastIndex(list));
|
||||
}
|
||||
}
|
@ -0,0 +1,67 @@
|
||||
package kotlin.collections;
|
||||
|
||||
import java.util.RandomAccess;
|
||||
import kotlin.Metadata;
|
||||
|
||||
/* compiled from: _ArraysJvm.kt */
|
||||
@Metadata(d1 = {"\u0000'\n\u0000\n\u0002\u0018\u0002\n\u0002\u0010\u0005\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\b\n\u0002\b\u0003\n\u0002\u0010\u000b\n\u0002\b\b*\u0001\u0000\b\n\u0018\u00002\b\u0012\u0004\u0012\u00020\u00020\u00012\u00060\u0003j\u0002`\u0004J\u0011\u0010\t\u001a\u00020\n2\u0006\u0010\u000b\u001a\u00020\u0002H\u0096\u0002J\u0016\u0010\f\u001a\u00020\u00022\u0006\u0010\r\u001a\u00020\u0006H\u0096\u0002¢\u0006\u0002\u0010\u000eJ\u0010\u0010\u000f\u001a\u00020\u00062\u0006\u0010\u000b\u001a\u00020\u0002H\u0016J\b\u0010\u0010\u001a\u00020\nH\u0016J\u0010\u0010\u0011\u001a\u00020\u00062\u0006\u0010\u000b\u001a\u00020\u0002H\u0016R\u0014\u0010\u0005\u001a\u00020\u00068VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b\u0007\u0010\b¨\u0006\u0012"}, d2 = {"kotlin/collections/ArraysKt___ArraysJvmKt$asList$1", "Lkotlin/collections/AbstractList;", "", "Ljava/util/RandomAccess;", "Lkotlin/collections/RandomAccess;", "size", "", "getSize", "()I", "contains", "", "element", "get", "index", "(I)Ljava/lang/Byte;", "indexOf", "isEmpty", "lastIndexOf", "kotlin-stdlib"}, k = 1, mv = {1, 8, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public final class ArraysKt___ArraysJvmKt$asList$1 extends AbstractList<Byte> implements RandomAccess {
|
||||
final /* synthetic */ byte[] $this_asList;
|
||||
|
||||
ArraysKt___ArraysJvmKt$asList$1(byte[] bArr) {
|
||||
this.$this_asList = bArr;
|
||||
}
|
||||
|
||||
@Override // kotlin.collections.AbstractCollection, java.util.Collection
|
||||
public final /* bridge */ boolean contains(Object obj) {
|
||||
if (obj instanceof Byte) {
|
||||
return contains(((Number) obj).byteValue());
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override // kotlin.collections.AbstractList, java.util.List
|
||||
public final /* bridge */ int indexOf(Object obj) {
|
||||
if (obj instanceof Byte) {
|
||||
return indexOf(((Number) obj).byteValue());
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
|
||||
@Override // kotlin.collections.AbstractList, java.util.List
|
||||
public final /* bridge */ int lastIndexOf(Object obj) {
|
||||
if (obj instanceof Byte) {
|
||||
return lastIndexOf(((Number) obj).byteValue());
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
|
||||
@Override // kotlin.collections.AbstractList, kotlin.collections.AbstractCollection
|
||||
/* renamed from: getSize */
|
||||
public int get_size() {
|
||||
return this.$this_asList.length;
|
||||
}
|
||||
|
||||
@Override // kotlin.collections.AbstractCollection, java.util.Collection
|
||||
public boolean isEmpty() {
|
||||
return this.$this_asList.length == 0;
|
||||
}
|
||||
|
||||
public boolean contains(byte element) {
|
||||
return ArraysKt.contains(this.$this_asList, element);
|
||||
}
|
||||
|
||||
@Override // kotlin.collections.AbstractList, java.util.List
|
||||
public Byte get(int index) {
|
||||
return Byte.valueOf(this.$this_asList[index]);
|
||||
}
|
||||
|
||||
public int indexOf(byte element) {
|
||||
return ArraysKt.indexOf(this.$this_asList, element);
|
||||
}
|
||||
|
||||
public int lastIndexOf(byte element) {
|
||||
return ArraysKt.lastIndexOf(this.$this_asList, element);
|
||||
}
|
||||
}
|
@ -0,0 +1,67 @@
|
||||
package kotlin.collections;
|
||||
|
||||
import java.util.RandomAccess;
|
||||
import kotlin.Metadata;
|
||||
|
||||
/* compiled from: _ArraysJvm.kt */
|
||||
@Metadata(d1 = {"\u0000'\n\u0000\n\u0002\u0018\u0002\n\u0002\u0010\n\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\b\n\u0002\b\u0003\n\u0002\u0010\u000b\n\u0002\b\b*\u0001\u0000\b\n\u0018\u00002\b\u0012\u0004\u0012\u00020\u00020\u00012\u00060\u0003j\u0002`\u0004J\u0011\u0010\t\u001a\u00020\n2\u0006\u0010\u000b\u001a\u00020\u0002H\u0096\u0002J\u0016\u0010\f\u001a\u00020\u00022\u0006\u0010\r\u001a\u00020\u0006H\u0096\u0002¢\u0006\u0002\u0010\u000eJ\u0010\u0010\u000f\u001a\u00020\u00062\u0006\u0010\u000b\u001a\u00020\u0002H\u0016J\b\u0010\u0010\u001a\u00020\nH\u0016J\u0010\u0010\u0011\u001a\u00020\u00062\u0006\u0010\u000b\u001a\u00020\u0002H\u0016R\u0014\u0010\u0005\u001a\u00020\u00068VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b\u0007\u0010\b¨\u0006\u0012"}, d2 = {"kotlin/collections/ArraysKt___ArraysJvmKt$asList$2", "Lkotlin/collections/AbstractList;", "", "Ljava/util/RandomAccess;", "Lkotlin/collections/RandomAccess;", "size", "", "getSize", "()I", "contains", "", "element", "get", "index", "(I)Ljava/lang/Short;", "indexOf", "isEmpty", "lastIndexOf", "kotlin-stdlib"}, k = 1, mv = {1, 8, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public final class ArraysKt___ArraysJvmKt$asList$2 extends AbstractList<Short> implements RandomAccess {
|
||||
final /* synthetic */ short[] $this_asList;
|
||||
|
||||
ArraysKt___ArraysJvmKt$asList$2(short[] sArr) {
|
||||
this.$this_asList = sArr;
|
||||
}
|
||||
|
||||
@Override // kotlin.collections.AbstractCollection, java.util.Collection
|
||||
public final /* bridge */ boolean contains(Object obj) {
|
||||
if (obj instanceof Short) {
|
||||
return contains(((Number) obj).shortValue());
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override // kotlin.collections.AbstractList, java.util.List
|
||||
public final /* bridge */ int indexOf(Object obj) {
|
||||
if (obj instanceof Short) {
|
||||
return indexOf(((Number) obj).shortValue());
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
|
||||
@Override // kotlin.collections.AbstractList, java.util.List
|
||||
public final /* bridge */ int lastIndexOf(Object obj) {
|
||||
if (obj instanceof Short) {
|
||||
return lastIndexOf(((Number) obj).shortValue());
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
|
||||
@Override // kotlin.collections.AbstractList, kotlin.collections.AbstractCollection
|
||||
/* renamed from: getSize */
|
||||
public int get_size() {
|
||||
return this.$this_asList.length;
|
||||
}
|
||||
|
||||
@Override // kotlin.collections.AbstractCollection, java.util.Collection
|
||||
public boolean isEmpty() {
|
||||
return this.$this_asList.length == 0;
|
||||
}
|
||||
|
||||
public boolean contains(short element) {
|
||||
return ArraysKt.contains(this.$this_asList, element);
|
||||
}
|
||||
|
||||
@Override // kotlin.collections.AbstractList, java.util.List
|
||||
public Short get(int index) {
|
||||
return Short.valueOf(this.$this_asList[index]);
|
||||
}
|
||||
|
||||
public int indexOf(short element) {
|
||||
return ArraysKt.indexOf(this.$this_asList, element);
|
||||
}
|
||||
|
||||
public int lastIndexOf(short element) {
|
||||
return ArraysKt.lastIndexOf(this.$this_asList, element);
|
||||
}
|
||||
}
|
@ -0,0 +1,67 @@
|
||||
package kotlin.collections;
|
||||
|
||||
import java.util.RandomAccess;
|
||||
import kotlin.Metadata;
|
||||
|
||||
/* compiled from: _ArraysJvm.kt */
|
||||
@Metadata(d1 = {"\u0000!\n\u0000\n\u0002\u0018\u0002\n\u0002\u0010\b\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0010\u000b\n\u0002\b\b*\u0001\u0000\b\n\u0018\u00002\b\u0012\u0004\u0012\u00020\u00020\u00012\u00060\u0003j\u0002`\u0004J\u0011\u0010\b\u001a\u00020\t2\u0006\u0010\n\u001a\u00020\u0002H\u0096\u0002J\u0016\u0010\u000b\u001a\u00020\u00022\u0006\u0010\f\u001a\u00020\u0002H\u0096\u0002¢\u0006\u0002\u0010\rJ\u0010\u0010\u000e\u001a\u00020\u00022\u0006\u0010\n\u001a\u00020\u0002H\u0016J\b\u0010\u000f\u001a\u00020\tH\u0016J\u0010\u0010\u0010\u001a\u00020\u00022\u0006\u0010\n\u001a\u00020\u0002H\u0016R\u0014\u0010\u0005\u001a\u00020\u00028VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b\u0006\u0010\u0007¨\u0006\u0011"}, d2 = {"kotlin/collections/ArraysKt___ArraysJvmKt$asList$3", "Lkotlin/collections/AbstractList;", "", "Ljava/util/RandomAccess;", "Lkotlin/collections/RandomAccess;", "size", "getSize", "()I", "contains", "", "element", "get", "index", "(I)Ljava/lang/Integer;", "indexOf", "isEmpty", "lastIndexOf", "kotlin-stdlib"}, k = 1, mv = {1, 8, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public final class ArraysKt___ArraysJvmKt$asList$3 extends AbstractList<Integer> implements RandomAccess {
|
||||
final /* synthetic */ int[] $this_asList;
|
||||
|
||||
ArraysKt___ArraysJvmKt$asList$3(int[] iArr) {
|
||||
this.$this_asList = iArr;
|
||||
}
|
||||
|
||||
@Override // kotlin.collections.AbstractCollection, java.util.Collection
|
||||
public final /* bridge */ boolean contains(Object obj) {
|
||||
if (obj instanceof Integer) {
|
||||
return contains(((Number) obj).intValue());
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override // kotlin.collections.AbstractList, java.util.List
|
||||
public final /* bridge */ int indexOf(Object obj) {
|
||||
if (obj instanceof Integer) {
|
||||
return indexOf(((Number) obj).intValue());
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
|
||||
@Override // kotlin.collections.AbstractList, java.util.List
|
||||
public final /* bridge */ int lastIndexOf(Object obj) {
|
||||
if (obj instanceof Integer) {
|
||||
return lastIndexOf(((Number) obj).intValue());
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
|
||||
@Override // kotlin.collections.AbstractList, kotlin.collections.AbstractCollection
|
||||
/* renamed from: getSize */
|
||||
public int get_size() {
|
||||
return this.$this_asList.length;
|
||||
}
|
||||
|
||||
@Override // kotlin.collections.AbstractCollection, java.util.Collection
|
||||
public boolean isEmpty() {
|
||||
return this.$this_asList.length == 0;
|
||||
}
|
||||
|
||||
public boolean contains(int element) {
|
||||
return ArraysKt.contains(this.$this_asList, element);
|
||||
}
|
||||
|
||||
@Override // kotlin.collections.AbstractList, java.util.List
|
||||
public Integer get(int index) {
|
||||
return Integer.valueOf(this.$this_asList[index]);
|
||||
}
|
||||
|
||||
public int indexOf(int element) {
|
||||
return ArraysKt.indexOf(this.$this_asList, element);
|
||||
}
|
||||
|
||||
public int lastIndexOf(int element) {
|
||||
return ArraysKt.lastIndexOf(this.$this_asList, element);
|
||||
}
|
||||
}
|
@ -0,0 +1,67 @@
|
||||
package kotlin.collections;
|
||||
|
||||
import java.util.RandomAccess;
|
||||
import kotlin.Metadata;
|
||||
|
||||
/* compiled from: _ArraysJvm.kt */
|
||||
@Metadata(d1 = {"\u0000'\n\u0000\n\u0002\u0018\u0002\n\u0002\u0010\t\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\b\n\u0002\b\u0003\n\u0002\u0010\u000b\n\u0002\b\b*\u0001\u0000\b\n\u0018\u00002\b\u0012\u0004\u0012\u00020\u00020\u00012\u00060\u0003j\u0002`\u0004J\u0011\u0010\t\u001a\u00020\n2\u0006\u0010\u000b\u001a\u00020\u0002H\u0096\u0002J\u0016\u0010\f\u001a\u00020\u00022\u0006\u0010\r\u001a\u00020\u0006H\u0096\u0002¢\u0006\u0002\u0010\u000eJ\u0010\u0010\u000f\u001a\u00020\u00062\u0006\u0010\u000b\u001a\u00020\u0002H\u0016J\b\u0010\u0010\u001a\u00020\nH\u0016J\u0010\u0010\u0011\u001a\u00020\u00062\u0006\u0010\u000b\u001a\u00020\u0002H\u0016R\u0014\u0010\u0005\u001a\u00020\u00068VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b\u0007\u0010\b¨\u0006\u0012"}, d2 = {"kotlin/collections/ArraysKt___ArraysJvmKt$asList$4", "Lkotlin/collections/AbstractList;", "", "Ljava/util/RandomAccess;", "Lkotlin/collections/RandomAccess;", "size", "", "getSize", "()I", "contains", "", "element", "get", "index", "(I)Ljava/lang/Long;", "indexOf", "isEmpty", "lastIndexOf", "kotlin-stdlib"}, k = 1, mv = {1, 8, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public final class ArraysKt___ArraysJvmKt$asList$4 extends AbstractList<Long> implements RandomAccess {
|
||||
final /* synthetic */ long[] $this_asList;
|
||||
|
||||
ArraysKt___ArraysJvmKt$asList$4(long[] jArr) {
|
||||
this.$this_asList = jArr;
|
||||
}
|
||||
|
||||
@Override // kotlin.collections.AbstractCollection, java.util.Collection
|
||||
public final /* bridge */ boolean contains(Object obj) {
|
||||
if (obj instanceof Long) {
|
||||
return contains(((Number) obj).longValue());
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override // kotlin.collections.AbstractList, java.util.List
|
||||
public final /* bridge */ int indexOf(Object obj) {
|
||||
if (obj instanceof Long) {
|
||||
return indexOf(((Number) obj).longValue());
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
|
||||
@Override // kotlin.collections.AbstractList, java.util.List
|
||||
public final /* bridge */ int lastIndexOf(Object obj) {
|
||||
if (obj instanceof Long) {
|
||||
return lastIndexOf(((Number) obj).longValue());
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
|
||||
@Override // kotlin.collections.AbstractList, kotlin.collections.AbstractCollection
|
||||
/* renamed from: getSize */
|
||||
public int get_size() {
|
||||
return this.$this_asList.length;
|
||||
}
|
||||
|
||||
@Override // kotlin.collections.AbstractCollection, java.util.Collection
|
||||
public boolean isEmpty() {
|
||||
return this.$this_asList.length == 0;
|
||||
}
|
||||
|
||||
public boolean contains(long element) {
|
||||
return ArraysKt.contains(this.$this_asList, element);
|
||||
}
|
||||
|
||||
@Override // kotlin.collections.AbstractList, java.util.List
|
||||
public Long get(int index) {
|
||||
return Long.valueOf(this.$this_asList[index]);
|
||||
}
|
||||
|
||||
public int indexOf(long element) {
|
||||
return ArraysKt.indexOf(this.$this_asList, element);
|
||||
}
|
||||
|
||||
public int lastIndexOf(long element) {
|
||||
return ArraysKt.lastIndexOf(this.$this_asList, element);
|
||||
}
|
||||
}
|
@ -0,0 +1,93 @@
|
||||
package kotlin.collections;
|
||||
|
||||
import java.util.RandomAccess;
|
||||
import kotlin.Metadata;
|
||||
|
||||
/* compiled from: _ArraysJvm.kt */
|
||||
@Metadata(d1 = {"\u0000'\n\u0000\n\u0002\u0018\u0002\n\u0002\u0010\u0007\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\b\n\u0002\b\u0003\n\u0002\u0010\u000b\n\u0002\b\b*\u0001\u0000\b\n\u0018\u00002\b\u0012\u0004\u0012\u00020\u00020\u00012\u00060\u0003j\u0002`\u0004J\u0011\u0010\t\u001a\u00020\n2\u0006\u0010\u000b\u001a\u00020\u0002H\u0096\u0002J\u0016\u0010\f\u001a\u00020\u00022\u0006\u0010\r\u001a\u00020\u0006H\u0096\u0002¢\u0006\u0002\u0010\u000eJ\u0010\u0010\u000f\u001a\u00020\u00062\u0006\u0010\u000b\u001a\u00020\u0002H\u0016J\b\u0010\u0010\u001a\u00020\nH\u0016J\u0010\u0010\u0011\u001a\u00020\u00062\u0006\u0010\u000b\u001a\u00020\u0002H\u0016R\u0014\u0010\u0005\u001a\u00020\u00068VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b\u0007\u0010\b¨\u0006\u0012"}, d2 = {"kotlin/collections/ArraysKt___ArraysJvmKt$asList$5", "Lkotlin/collections/AbstractList;", "", "Ljava/util/RandomAccess;", "Lkotlin/collections/RandomAccess;", "size", "", "getSize", "()I", "contains", "", "element", "get", "index", "(I)Ljava/lang/Float;", "indexOf", "isEmpty", "lastIndexOf", "kotlin-stdlib"}, k = 1, mv = {1, 8, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public final class ArraysKt___ArraysJvmKt$asList$5 extends AbstractList<Float> implements RandomAccess {
|
||||
final /* synthetic */ float[] $this_asList;
|
||||
|
||||
ArraysKt___ArraysJvmKt$asList$5(float[] fArr) {
|
||||
this.$this_asList = fArr;
|
||||
}
|
||||
|
||||
@Override // kotlin.collections.AbstractCollection, java.util.Collection
|
||||
public final /* bridge */ boolean contains(Object obj) {
|
||||
if (obj instanceof Float) {
|
||||
return contains(((Number) obj).floatValue());
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override // kotlin.collections.AbstractList, java.util.List
|
||||
public final /* bridge */ int indexOf(Object obj) {
|
||||
if (obj instanceof Float) {
|
||||
return indexOf(((Number) obj).floatValue());
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
|
||||
@Override // kotlin.collections.AbstractList, java.util.List
|
||||
public final /* bridge */ int lastIndexOf(Object obj) {
|
||||
if (obj instanceof Float) {
|
||||
return lastIndexOf(((Number) obj).floatValue());
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
|
||||
@Override // kotlin.collections.AbstractList, kotlin.collections.AbstractCollection
|
||||
/* renamed from: getSize */
|
||||
public int get_size() {
|
||||
return this.$this_asList.length;
|
||||
}
|
||||
|
||||
@Override // kotlin.collections.AbstractCollection, java.util.Collection
|
||||
public boolean isEmpty() {
|
||||
return this.$this_asList.length == 0;
|
||||
}
|
||||
|
||||
@Override // kotlin.collections.AbstractList, java.util.List
|
||||
public Float get(int index) {
|
||||
return Float.valueOf(this.$this_asList[index]);
|
||||
}
|
||||
|
||||
public boolean contains(float element) {
|
||||
for (float f : this.$this_asList) {
|
||||
if (Float.floatToIntBits(f) == Float.floatToIntBits(element)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
public int indexOf(float element) {
|
||||
float[] fArr = this.$this_asList;
|
||||
int length = fArr.length;
|
||||
for (int i = 0; i < length; i++) {
|
||||
if (Float.floatToIntBits(fArr[i]) == Float.floatToIntBits(element)) {
|
||||
return i;
|
||||
}
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
|
||||
public int lastIndexOf(float element) {
|
||||
float[] fArr = this.$this_asList;
|
||||
int length = fArr.length - 1;
|
||||
if (length < 0) {
|
||||
return -1;
|
||||
}
|
||||
while (true) {
|
||||
int i = length - 1;
|
||||
if (Float.floatToIntBits(fArr[length]) == Float.floatToIntBits(element)) {
|
||||
return length;
|
||||
}
|
||||
if (i < 0) {
|
||||
return -1;
|
||||
}
|
||||
length = i;
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,93 @@
|
||||
package kotlin.collections;
|
||||
|
||||
import java.util.RandomAccess;
|
||||
import kotlin.Metadata;
|
||||
|
||||
/* compiled from: _ArraysJvm.kt */
|
||||
@Metadata(d1 = {"\u0000'\n\u0000\n\u0002\u0018\u0002\n\u0002\u0010\u0006\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\b\n\u0002\b\u0003\n\u0002\u0010\u000b\n\u0002\b\b*\u0001\u0000\b\n\u0018\u00002\b\u0012\u0004\u0012\u00020\u00020\u00012\u00060\u0003j\u0002`\u0004J\u0011\u0010\t\u001a\u00020\n2\u0006\u0010\u000b\u001a\u00020\u0002H\u0096\u0002J\u0016\u0010\f\u001a\u00020\u00022\u0006\u0010\r\u001a\u00020\u0006H\u0096\u0002¢\u0006\u0002\u0010\u000eJ\u0010\u0010\u000f\u001a\u00020\u00062\u0006\u0010\u000b\u001a\u00020\u0002H\u0016J\b\u0010\u0010\u001a\u00020\nH\u0016J\u0010\u0010\u0011\u001a\u00020\u00062\u0006\u0010\u000b\u001a\u00020\u0002H\u0016R\u0014\u0010\u0005\u001a\u00020\u00068VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b\u0007\u0010\b¨\u0006\u0012"}, d2 = {"kotlin/collections/ArraysKt___ArraysJvmKt$asList$6", "Lkotlin/collections/AbstractList;", "", "Ljava/util/RandomAccess;", "Lkotlin/collections/RandomAccess;", "size", "", "getSize", "()I", "contains", "", "element", "get", "index", "(I)Ljava/lang/Double;", "indexOf", "isEmpty", "lastIndexOf", "kotlin-stdlib"}, k = 1, mv = {1, 8, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public final class ArraysKt___ArraysJvmKt$asList$6 extends AbstractList<Double> implements RandomAccess {
|
||||
final /* synthetic */ double[] $this_asList;
|
||||
|
||||
ArraysKt___ArraysJvmKt$asList$6(double[] dArr) {
|
||||
this.$this_asList = dArr;
|
||||
}
|
||||
|
||||
@Override // kotlin.collections.AbstractCollection, java.util.Collection
|
||||
public final /* bridge */ boolean contains(Object obj) {
|
||||
if (obj instanceof Double) {
|
||||
return contains(((Number) obj).doubleValue());
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override // kotlin.collections.AbstractList, java.util.List
|
||||
public final /* bridge */ int indexOf(Object obj) {
|
||||
if (obj instanceof Double) {
|
||||
return indexOf(((Number) obj).doubleValue());
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
|
||||
@Override // kotlin.collections.AbstractList, java.util.List
|
||||
public final /* bridge */ int lastIndexOf(Object obj) {
|
||||
if (obj instanceof Double) {
|
||||
return lastIndexOf(((Number) obj).doubleValue());
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
|
||||
@Override // kotlin.collections.AbstractList, kotlin.collections.AbstractCollection
|
||||
/* renamed from: getSize */
|
||||
public int get_size() {
|
||||
return this.$this_asList.length;
|
||||
}
|
||||
|
||||
@Override // kotlin.collections.AbstractCollection, java.util.Collection
|
||||
public boolean isEmpty() {
|
||||
return this.$this_asList.length == 0;
|
||||
}
|
||||
|
||||
@Override // kotlin.collections.AbstractList, java.util.List
|
||||
public Double get(int index) {
|
||||
return Double.valueOf(this.$this_asList[index]);
|
||||
}
|
||||
|
||||
public boolean contains(double element) {
|
||||
for (double d : this.$this_asList) {
|
||||
if (Double.doubleToLongBits(d) == Double.doubleToLongBits(element)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
public int indexOf(double element) {
|
||||
double[] dArr = this.$this_asList;
|
||||
int length = dArr.length;
|
||||
for (int i = 0; i < length; i++) {
|
||||
if (Double.doubleToLongBits(dArr[i]) == Double.doubleToLongBits(element)) {
|
||||
return i;
|
||||
}
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
|
||||
public int lastIndexOf(double element) {
|
||||
double[] dArr = this.$this_asList;
|
||||
int length = dArr.length - 1;
|
||||
if (length < 0) {
|
||||
return -1;
|
||||
}
|
||||
while (true) {
|
||||
int i = length - 1;
|
||||
if (Double.doubleToLongBits(dArr[length]) == Double.doubleToLongBits(element)) {
|
||||
return length;
|
||||
}
|
||||
if (i < 0) {
|
||||
return -1;
|
||||
}
|
||||
length = i;
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,67 @@
|
||||
package kotlin.collections;
|
||||
|
||||
import java.util.RandomAccess;
|
||||
import kotlin.Metadata;
|
||||
|
||||
/* compiled from: _ArraysJvm.kt */
|
||||
@Metadata(d1 = {"\u0000\u001f\n\u0000\n\u0002\u0018\u0002\n\u0002\u0010\u000b\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\b\n\u0002\b\u000b*\u0001\u0000\b\n\u0018\u00002\b\u0012\u0004\u0012\u00020\u00020\u00012\u00060\u0003j\u0002`\u0004J\u0011\u0010\t\u001a\u00020\u00022\u0006\u0010\n\u001a\u00020\u0002H\u0096\u0002J\u0016\u0010\u000b\u001a\u00020\u00022\u0006\u0010\f\u001a\u00020\u0006H\u0096\u0002¢\u0006\u0002\u0010\rJ\u0010\u0010\u000e\u001a\u00020\u00062\u0006\u0010\n\u001a\u00020\u0002H\u0016J\b\u0010\u000f\u001a\u00020\u0002H\u0016J\u0010\u0010\u0010\u001a\u00020\u00062\u0006\u0010\n\u001a\u00020\u0002H\u0016R\u0014\u0010\u0005\u001a\u00020\u00068VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b\u0007\u0010\b¨\u0006\u0011"}, d2 = {"kotlin/collections/ArraysKt___ArraysJvmKt$asList$7", "Lkotlin/collections/AbstractList;", "", "Ljava/util/RandomAccess;", "Lkotlin/collections/RandomAccess;", "size", "", "getSize", "()I", "contains", "element", "get", "index", "(I)Ljava/lang/Boolean;", "indexOf", "isEmpty", "lastIndexOf", "kotlin-stdlib"}, k = 1, mv = {1, 8, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public final class ArraysKt___ArraysJvmKt$asList$7 extends AbstractList<Boolean> implements RandomAccess {
|
||||
final /* synthetic */ boolean[] $this_asList;
|
||||
|
||||
ArraysKt___ArraysJvmKt$asList$7(boolean[] zArr) {
|
||||
this.$this_asList = zArr;
|
||||
}
|
||||
|
||||
@Override // kotlin.collections.AbstractCollection, java.util.Collection
|
||||
public final /* bridge */ boolean contains(Object obj) {
|
||||
if (obj instanceof Boolean) {
|
||||
return contains(((Boolean) obj).booleanValue());
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override // kotlin.collections.AbstractList, java.util.List
|
||||
public final /* bridge */ int indexOf(Object obj) {
|
||||
if (obj instanceof Boolean) {
|
||||
return indexOf(((Boolean) obj).booleanValue());
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
|
||||
@Override // kotlin.collections.AbstractList, java.util.List
|
||||
public final /* bridge */ int lastIndexOf(Object obj) {
|
||||
if (obj instanceof Boolean) {
|
||||
return lastIndexOf(((Boolean) obj).booleanValue());
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
|
||||
@Override // kotlin.collections.AbstractList, kotlin.collections.AbstractCollection
|
||||
/* renamed from: getSize */
|
||||
public int get_size() {
|
||||
return this.$this_asList.length;
|
||||
}
|
||||
|
||||
@Override // kotlin.collections.AbstractCollection, java.util.Collection
|
||||
public boolean isEmpty() {
|
||||
return this.$this_asList.length == 0;
|
||||
}
|
||||
|
||||
public boolean contains(boolean element) {
|
||||
return ArraysKt.contains(this.$this_asList, element);
|
||||
}
|
||||
|
||||
@Override // kotlin.collections.AbstractList, java.util.List
|
||||
public Boolean get(int index) {
|
||||
return Boolean.valueOf(this.$this_asList[index]);
|
||||
}
|
||||
|
||||
public int indexOf(boolean element) {
|
||||
return ArraysKt.indexOf(this.$this_asList, element);
|
||||
}
|
||||
|
||||
public int lastIndexOf(boolean element) {
|
||||
return ArraysKt.lastIndexOf(this.$this_asList, element);
|
||||
}
|
||||
}
|
@ -0,0 +1,67 @@
|
||||
package kotlin.collections;
|
||||
|
||||
import java.util.RandomAccess;
|
||||
import kotlin.Metadata;
|
||||
|
||||
/* compiled from: _ArraysJvm.kt */
|
||||
@Metadata(d1 = {"\u0000'\n\u0000\n\u0002\u0018\u0002\n\u0002\u0010\f\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\b\n\u0002\b\u0003\n\u0002\u0010\u000b\n\u0002\b\b*\u0001\u0000\b\n\u0018\u00002\b\u0012\u0004\u0012\u00020\u00020\u00012\u00060\u0003j\u0002`\u0004J\u0011\u0010\t\u001a\u00020\n2\u0006\u0010\u000b\u001a\u00020\u0002H\u0096\u0002J\u0016\u0010\f\u001a\u00020\u00022\u0006\u0010\r\u001a\u00020\u0006H\u0096\u0002¢\u0006\u0002\u0010\u000eJ\u0010\u0010\u000f\u001a\u00020\u00062\u0006\u0010\u000b\u001a\u00020\u0002H\u0016J\b\u0010\u0010\u001a\u00020\nH\u0016J\u0010\u0010\u0011\u001a\u00020\u00062\u0006\u0010\u000b\u001a\u00020\u0002H\u0016R\u0014\u0010\u0005\u001a\u00020\u00068VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b\u0007\u0010\b¨\u0006\u0012"}, d2 = {"kotlin/collections/ArraysKt___ArraysJvmKt$asList$8", "Lkotlin/collections/AbstractList;", "", "Ljava/util/RandomAccess;", "Lkotlin/collections/RandomAccess;", "size", "", "getSize", "()I", "contains", "", "element", "get", "index", "(I)Ljava/lang/Character;", "indexOf", "isEmpty", "lastIndexOf", "kotlin-stdlib"}, k = 1, mv = {1, 8, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public final class ArraysKt___ArraysJvmKt$asList$8 extends AbstractList<Character> implements RandomAccess {
|
||||
final /* synthetic */ char[] $this_asList;
|
||||
|
||||
ArraysKt___ArraysJvmKt$asList$8(char[] cArr) {
|
||||
this.$this_asList = cArr;
|
||||
}
|
||||
|
||||
@Override // kotlin.collections.AbstractCollection, java.util.Collection
|
||||
public final /* bridge */ boolean contains(Object obj) {
|
||||
if (obj instanceof Character) {
|
||||
return contains(((Character) obj).charValue());
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override // kotlin.collections.AbstractList, java.util.List
|
||||
public final /* bridge */ int indexOf(Object obj) {
|
||||
if (obj instanceof Character) {
|
||||
return indexOf(((Character) obj).charValue());
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
|
||||
@Override // kotlin.collections.AbstractList, java.util.List
|
||||
public final /* bridge */ int lastIndexOf(Object obj) {
|
||||
if (obj instanceof Character) {
|
||||
return lastIndexOf(((Character) obj).charValue());
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
|
||||
@Override // kotlin.collections.AbstractList, kotlin.collections.AbstractCollection
|
||||
/* renamed from: getSize */
|
||||
public int get_size() {
|
||||
return this.$this_asList.length;
|
||||
}
|
||||
|
||||
@Override // kotlin.collections.AbstractCollection, java.util.Collection
|
||||
public boolean isEmpty() {
|
||||
return this.$this_asList.length == 0;
|
||||
}
|
||||
|
||||
public boolean contains(char element) {
|
||||
return ArraysKt.contains(this.$this_asList, element);
|
||||
}
|
||||
|
||||
@Override // kotlin.collections.AbstractList, java.util.List
|
||||
public Character get(int index) {
|
||||
return Character.valueOf(this.$this_asList[index]);
|
||||
}
|
||||
|
||||
public int indexOf(char element) {
|
||||
return ArraysKt.indexOf(this.$this_asList, element);
|
||||
}
|
||||
|
||||
public int lastIndexOf(char element) {
|
||||
return ArraysKt.lastIndexOf(this.$this_asList, element);
|
||||
}
|
||||
}
|
2929
02-Easy5/E5/sources/kotlin/collections/ArraysKt___ArraysJvmKt.java
Normal file
2929
02-Easy5/E5/sources/kotlin/collections/ArraysKt___ArraysJvmKt.java
Normal file
File diff suppressed because one or more lines are too long
@ -0,0 +1,23 @@
|
||||
package kotlin.collections;
|
||||
|
||||
import java.util.Iterator;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.internal.ArrayIteratorKt;
|
||||
import kotlin.jvm.internal.markers.KMappedMarker;
|
||||
|
||||
/* JADX INFO: Add missing generic type declarations: [T] */
|
||||
/* compiled from: Iterables.kt */
|
||||
@Metadata(d1 = {"\u0000\u0011\n\u0000\n\u0002\u0010\u001c\n\u0000\n\u0002\u0010(\n\u0000*\u0001\u0000\b\n\u0018\u00002\b\u0012\u0004\u0012\u00028\u00000\u0001J\u000f\u0010\u0002\u001a\b\u0012\u0004\u0012\u00028\u00000\u0003H\u0096\u0002¨\u0006\u0004¸\u0006\u0000"}, d2 = {"kotlin/collections/CollectionsKt__IterablesKt$Iterable$1", "", "iterator", "", "kotlin-stdlib"}, k = 1, mv = {1, 8, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public final class ArraysKt___ArraysKt$asIterable$$inlined$Iterable$1<T> implements Iterable<T>, KMappedMarker {
|
||||
final /* synthetic */ Object[] $this_asIterable$inlined;
|
||||
|
||||
public ArraysKt___ArraysKt$asIterable$$inlined$Iterable$1(Object[] objArr) {
|
||||
this.$this_asIterable$inlined = objArr;
|
||||
}
|
||||
|
||||
@Override // java.lang.Iterable
|
||||
public Iterator<T> iterator() {
|
||||
return ArrayIteratorKt.iterator(this.$this_asIterable$inlined);
|
||||
}
|
||||
}
|
@ -0,0 +1,22 @@
|
||||
package kotlin.collections;
|
||||
|
||||
import java.util.Iterator;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.internal.ArrayIteratorsKt;
|
||||
import kotlin.jvm.internal.markers.KMappedMarker;
|
||||
|
||||
/* compiled from: Iterables.kt */
|
||||
@Metadata(d1 = {"\u0000\u0011\n\u0000\n\u0002\u0010\u001c\n\u0000\n\u0002\u0010(\n\u0000*\u0001\u0000\b\n\u0018\u00002\b\u0012\u0004\u0012\u00028\u00000\u0001J\u000f\u0010\u0002\u001a\b\u0012\u0004\u0012\u00028\u00000\u0003H\u0096\u0002¨\u0006\u0004¸\u0006\u0000"}, d2 = {"kotlin/collections/CollectionsKt__IterablesKt$Iterable$1", "", "iterator", "", "kotlin-stdlib"}, k = 1, mv = {1, 8, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public final class ArraysKt___ArraysKt$asIterable$$inlined$Iterable$2 implements Iterable<Byte>, KMappedMarker {
|
||||
final /* synthetic */ byte[] $this_asIterable$inlined;
|
||||
|
||||
public ArraysKt___ArraysKt$asIterable$$inlined$Iterable$2(byte[] bArr) {
|
||||
this.$this_asIterable$inlined = bArr;
|
||||
}
|
||||
|
||||
@Override // java.lang.Iterable
|
||||
public Iterator<Byte> iterator() {
|
||||
return ArrayIteratorsKt.iterator(this.$this_asIterable$inlined);
|
||||
}
|
||||
}
|
@ -0,0 +1,22 @@
|
||||
package kotlin.collections;
|
||||
|
||||
import java.util.Iterator;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.internal.ArrayIteratorsKt;
|
||||
import kotlin.jvm.internal.markers.KMappedMarker;
|
||||
|
||||
/* compiled from: Iterables.kt */
|
||||
@Metadata(d1 = {"\u0000\u0011\n\u0000\n\u0002\u0010\u001c\n\u0000\n\u0002\u0010(\n\u0000*\u0001\u0000\b\n\u0018\u00002\b\u0012\u0004\u0012\u00028\u00000\u0001J\u000f\u0010\u0002\u001a\b\u0012\u0004\u0012\u00028\u00000\u0003H\u0096\u0002¨\u0006\u0004¸\u0006\u0000"}, d2 = {"kotlin/collections/CollectionsKt__IterablesKt$Iterable$1", "", "iterator", "", "kotlin-stdlib"}, k = 1, mv = {1, 8, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public final class ArraysKt___ArraysKt$asIterable$$inlined$Iterable$3 implements Iterable<Short>, KMappedMarker {
|
||||
final /* synthetic */ short[] $this_asIterable$inlined;
|
||||
|
||||
public ArraysKt___ArraysKt$asIterable$$inlined$Iterable$3(short[] sArr) {
|
||||
this.$this_asIterable$inlined = sArr;
|
||||
}
|
||||
|
||||
@Override // java.lang.Iterable
|
||||
public Iterator<Short> iterator() {
|
||||
return ArrayIteratorsKt.iterator(this.$this_asIterable$inlined);
|
||||
}
|
||||
}
|
@ -0,0 +1,22 @@
|
||||
package kotlin.collections;
|
||||
|
||||
import java.util.Iterator;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.internal.ArrayIteratorsKt;
|
||||
import kotlin.jvm.internal.markers.KMappedMarker;
|
||||
|
||||
/* compiled from: Iterables.kt */
|
||||
@Metadata(d1 = {"\u0000\u0011\n\u0000\n\u0002\u0010\u001c\n\u0000\n\u0002\u0010(\n\u0000*\u0001\u0000\b\n\u0018\u00002\b\u0012\u0004\u0012\u00028\u00000\u0001J\u000f\u0010\u0002\u001a\b\u0012\u0004\u0012\u00028\u00000\u0003H\u0096\u0002¨\u0006\u0004¸\u0006\u0000"}, d2 = {"kotlin/collections/CollectionsKt__IterablesKt$Iterable$1", "", "iterator", "", "kotlin-stdlib"}, k = 1, mv = {1, 8, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public final class ArraysKt___ArraysKt$asIterable$$inlined$Iterable$4 implements Iterable<Integer>, KMappedMarker {
|
||||
final /* synthetic */ int[] $this_asIterable$inlined;
|
||||
|
||||
public ArraysKt___ArraysKt$asIterable$$inlined$Iterable$4(int[] iArr) {
|
||||
this.$this_asIterable$inlined = iArr;
|
||||
}
|
||||
|
||||
@Override // java.lang.Iterable
|
||||
public Iterator<Integer> iterator() {
|
||||
return ArrayIteratorsKt.iterator(this.$this_asIterable$inlined);
|
||||
}
|
||||
}
|
@ -0,0 +1,22 @@
|
||||
package kotlin.collections;
|
||||
|
||||
import java.util.Iterator;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.internal.ArrayIteratorsKt;
|
||||
import kotlin.jvm.internal.markers.KMappedMarker;
|
||||
|
||||
/* compiled from: Iterables.kt */
|
||||
@Metadata(d1 = {"\u0000\u0011\n\u0000\n\u0002\u0010\u001c\n\u0000\n\u0002\u0010(\n\u0000*\u0001\u0000\b\n\u0018\u00002\b\u0012\u0004\u0012\u00028\u00000\u0001J\u000f\u0010\u0002\u001a\b\u0012\u0004\u0012\u00028\u00000\u0003H\u0096\u0002¨\u0006\u0004¸\u0006\u0000"}, d2 = {"kotlin/collections/CollectionsKt__IterablesKt$Iterable$1", "", "iterator", "", "kotlin-stdlib"}, k = 1, mv = {1, 8, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public final class ArraysKt___ArraysKt$asIterable$$inlined$Iterable$5 implements Iterable<Long>, KMappedMarker {
|
||||
final /* synthetic */ long[] $this_asIterable$inlined;
|
||||
|
||||
public ArraysKt___ArraysKt$asIterable$$inlined$Iterable$5(long[] jArr) {
|
||||
this.$this_asIterable$inlined = jArr;
|
||||
}
|
||||
|
||||
@Override // java.lang.Iterable
|
||||
public Iterator<Long> iterator() {
|
||||
return ArrayIteratorsKt.iterator(this.$this_asIterable$inlined);
|
||||
}
|
||||
}
|
@ -0,0 +1,22 @@
|
||||
package kotlin.collections;
|
||||
|
||||
import java.util.Iterator;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.internal.ArrayIteratorsKt;
|
||||
import kotlin.jvm.internal.markers.KMappedMarker;
|
||||
|
||||
/* compiled from: Iterables.kt */
|
||||
@Metadata(d1 = {"\u0000\u0011\n\u0000\n\u0002\u0010\u001c\n\u0000\n\u0002\u0010(\n\u0000*\u0001\u0000\b\n\u0018\u00002\b\u0012\u0004\u0012\u00028\u00000\u0001J\u000f\u0010\u0002\u001a\b\u0012\u0004\u0012\u00028\u00000\u0003H\u0096\u0002¨\u0006\u0004¸\u0006\u0000"}, d2 = {"kotlin/collections/CollectionsKt__IterablesKt$Iterable$1", "", "iterator", "", "kotlin-stdlib"}, k = 1, mv = {1, 8, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public final class ArraysKt___ArraysKt$asIterable$$inlined$Iterable$6 implements Iterable<Float>, KMappedMarker {
|
||||
final /* synthetic */ float[] $this_asIterable$inlined;
|
||||
|
||||
public ArraysKt___ArraysKt$asIterable$$inlined$Iterable$6(float[] fArr) {
|
||||
this.$this_asIterable$inlined = fArr;
|
||||
}
|
||||
|
||||
@Override // java.lang.Iterable
|
||||
public Iterator<Float> iterator() {
|
||||
return ArrayIteratorsKt.iterator(this.$this_asIterable$inlined);
|
||||
}
|
||||
}
|
@ -0,0 +1,22 @@
|
||||
package kotlin.collections;
|
||||
|
||||
import java.util.Iterator;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.internal.ArrayIteratorsKt;
|
||||
import kotlin.jvm.internal.markers.KMappedMarker;
|
||||
|
||||
/* compiled from: Iterables.kt */
|
||||
@Metadata(d1 = {"\u0000\u0011\n\u0000\n\u0002\u0010\u001c\n\u0000\n\u0002\u0010(\n\u0000*\u0001\u0000\b\n\u0018\u00002\b\u0012\u0004\u0012\u00028\u00000\u0001J\u000f\u0010\u0002\u001a\b\u0012\u0004\u0012\u00028\u00000\u0003H\u0096\u0002¨\u0006\u0004¸\u0006\u0000"}, d2 = {"kotlin/collections/CollectionsKt__IterablesKt$Iterable$1", "", "iterator", "", "kotlin-stdlib"}, k = 1, mv = {1, 8, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public final class ArraysKt___ArraysKt$asIterable$$inlined$Iterable$7 implements Iterable<Double>, KMappedMarker {
|
||||
final /* synthetic */ double[] $this_asIterable$inlined;
|
||||
|
||||
public ArraysKt___ArraysKt$asIterable$$inlined$Iterable$7(double[] dArr) {
|
||||
this.$this_asIterable$inlined = dArr;
|
||||
}
|
||||
|
||||
@Override // java.lang.Iterable
|
||||
public Iterator<Double> iterator() {
|
||||
return ArrayIteratorsKt.iterator(this.$this_asIterable$inlined);
|
||||
}
|
||||
}
|
@ -0,0 +1,22 @@
|
||||
package kotlin.collections;
|
||||
|
||||
import java.util.Iterator;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.internal.ArrayIteratorsKt;
|
||||
import kotlin.jvm.internal.markers.KMappedMarker;
|
||||
|
||||
/* compiled from: Iterables.kt */
|
||||
@Metadata(d1 = {"\u0000\u0011\n\u0000\n\u0002\u0010\u001c\n\u0000\n\u0002\u0010(\n\u0000*\u0001\u0000\b\n\u0018\u00002\b\u0012\u0004\u0012\u00028\u00000\u0001J\u000f\u0010\u0002\u001a\b\u0012\u0004\u0012\u00028\u00000\u0003H\u0096\u0002¨\u0006\u0004¸\u0006\u0000"}, d2 = {"kotlin/collections/CollectionsKt__IterablesKt$Iterable$1", "", "iterator", "", "kotlin-stdlib"}, k = 1, mv = {1, 8, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public final class ArraysKt___ArraysKt$asIterable$$inlined$Iterable$8 implements Iterable<Boolean>, KMappedMarker {
|
||||
final /* synthetic */ boolean[] $this_asIterable$inlined;
|
||||
|
||||
public ArraysKt___ArraysKt$asIterable$$inlined$Iterable$8(boolean[] zArr) {
|
||||
this.$this_asIterable$inlined = zArr;
|
||||
}
|
||||
|
||||
@Override // java.lang.Iterable
|
||||
public Iterator<Boolean> iterator() {
|
||||
return ArrayIteratorsKt.iterator(this.$this_asIterable$inlined);
|
||||
}
|
||||
}
|
@ -0,0 +1,22 @@
|
||||
package kotlin.collections;
|
||||
|
||||
import java.util.Iterator;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.internal.ArrayIteratorsKt;
|
||||
import kotlin.jvm.internal.markers.KMappedMarker;
|
||||
|
||||
/* compiled from: Iterables.kt */
|
||||
@Metadata(d1 = {"\u0000\u0011\n\u0000\n\u0002\u0010\u001c\n\u0000\n\u0002\u0010(\n\u0000*\u0001\u0000\b\n\u0018\u00002\b\u0012\u0004\u0012\u00028\u00000\u0001J\u000f\u0010\u0002\u001a\b\u0012\u0004\u0012\u00028\u00000\u0003H\u0096\u0002¨\u0006\u0004¸\u0006\u0000"}, d2 = {"kotlin/collections/CollectionsKt__IterablesKt$Iterable$1", "", "iterator", "", "kotlin-stdlib"}, k = 1, mv = {1, 8, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public final class ArraysKt___ArraysKt$asIterable$$inlined$Iterable$9 implements Iterable<Character>, KMappedMarker {
|
||||
final /* synthetic */ char[] $this_asIterable$inlined;
|
||||
|
||||
public ArraysKt___ArraysKt$asIterable$$inlined$Iterable$9(char[] cArr) {
|
||||
this.$this_asIterable$inlined = cArr;
|
||||
}
|
||||
|
||||
@Override // java.lang.Iterable
|
||||
public Iterator<Character> iterator() {
|
||||
return ArrayIteratorsKt.iterator(this.$this_asIterable$inlined);
|
||||
}
|
||||
}
|
20648
02-Easy5/E5/sources/kotlin/collections/ArraysKt___ArraysKt.java
Normal file
20648
02-Easy5/E5/sources/kotlin/collections/ArraysKt___ArraysKt.java
Normal file
File diff suppressed because one or more lines are too long
14
02-Easy5/E5/sources/kotlin/collections/ArraysUtilJVM.java
Normal file
14
02-Easy5/E5/sources/kotlin/collections/ArraysUtilJVM.java
Normal file
@ -0,0 +1,14 @@
|
||||
package kotlin.collections;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
class ArraysUtilJVM {
|
||||
ArraysUtilJVM() {
|
||||
}
|
||||
|
||||
static <T> List<T> asList(T[] tArr) {
|
||||
return Arrays.asList(tArr);
|
||||
}
|
||||
}
|
28
02-Easy5/E5/sources/kotlin/collections/BooleanIterator.java
Normal file
28
02-Easy5/E5/sources/kotlin/collections/BooleanIterator.java
Normal file
@ -0,0 +1,28 @@
|
||||
package kotlin.collections;
|
||||
|
||||
import java.util.Iterator;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.internal.markers.KMappedMarker;
|
||||
|
||||
/* compiled from: PrimitiveIterators.kt */
|
||||
@Metadata(d1 = {"\u0000\u0010\n\u0002\u0018\u0002\n\u0002\u0010(\n\u0002\u0010\u000b\n\u0002\b\u0005\b&\u0018\u00002\b\u0012\u0004\u0012\u00020\u00020\u0001B\u0005¢\u0006\u0002\u0010\u0003J\u000e\u0010\u0004\u001a\u00020\u0002H\u0086\u0002¢\u0006\u0002\u0010\u0005J\b\u0010\u0006\u001a\u00020\u0002H&¨\u0006\u0007"}, d2 = {"Lkotlin/collections/BooleanIterator;", "", "", "()V", "next", "()Ljava/lang/Boolean;", "nextBoolean", "kotlin-stdlib"}, k = 1, mv = {1, 8, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public abstract class BooleanIterator implements Iterator<Boolean>, KMappedMarker {
|
||||
public abstract boolean nextBoolean();
|
||||
|
||||
@Override // java.util.Iterator
|
||||
public void remove() {
|
||||
throw new UnsupportedOperationException("Operation is not supported for read-only collection");
|
||||
}
|
||||
|
||||
@Override // java.util.Iterator
|
||||
public /* bridge */ /* synthetic */ Boolean next() {
|
||||
return Boolean.valueOf(nextBoolean());
|
||||
}
|
||||
|
||||
/* JADX WARN: Can't rename method to resolve collision */
|
||||
@Override // java.util.Iterator
|
||||
public final Boolean next() {
|
||||
return Boolean.valueOf(nextBoolean());
|
||||
}
|
||||
}
|
28
02-Easy5/E5/sources/kotlin/collections/ByteIterator.java
Normal file
28
02-Easy5/E5/sources/kotlin/collections/ByteIterator.java
Normal file
@ -0,0 +1,28 @@
|
||||
package kotlin.collections;
|
||||
|
||||
import java.util.Iterator;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.internal.markers.KMappedMarker;
|
||||
|
||||
/* compiled from: PrimitiveIterators.kt */
|
||||
@Metadata(d1 = {"\u0000\u0010\n\u0002\u0018\u0002\n\u0002\u0010(\n\u0002\u0010\u0005\n\u0002\b\u0005\b&\u0018\u00002\b\u0012\u0004\u0012\u00020\u00020\u0001B\u0005¢\u0006\u0002\u0010\u0003J\u000e\u0010\u0004\u001a\u00020\u0002H\u0086\u0002¢\u0006\u0002\u0010\u0005J\b\u0010\u0006\u001a\u00020\u0002H&¨\u0006\u0007"}, d2 = {"Lkotlin/collections/ByteIterator;", "", "", "()V", "next", "()Ljava/lang/Byte;", "nextByte", "kotlin-stdlib"}, k = 1, mv = {1, 8, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public abstract class ByteIterator implements Iterator<Byte>, KMappedMarker {
|
||||
public abstract byte nextByte();
|
||||
|
||||
@Override // java.util.Iterator
|
||||
public void remove() {
|
||||
throw new UnsupportedOperationException("Operation is not supported for read-only collection");
|
||||
}
|
||||
|
||||
@Override // java.util.Iterator
|
||||
public /* bridge */ /* synthetic */ Byte next() {
|
||||
return Byte.valueOf(nextByte());
|
||||
}
|
||||
|
||||
/* JADX WARN: Can't rename method to resolve collision */
|
||||
@Override // java.util.Iterator
|
||||
public final Byte next() {
|
||||
return Byte.valueOf(nextByte());
|
||||
}
|
||||
}
|
28
02-Easy5/E5/sources/kotlin/collections/CharIterator.java
Normal file
28
02-Easy5/E5/sources/kotlin/collections/CharIterator.java
Normal file
@ -0,0 +1,28 @@
|
||||
package kotlin.collections;
|
||||
|
||||
import java.util.Iterator;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.internal.markers.KMappedMarker;
|
||||
|
||||
/* compiled from: PrimitiveIterators.kt */
|
||||
@Metadata(d1 = {"\u0000\u0010\n\u0002\u0018\u0002\n\u0002\u0010(\n\u0002\u0010\f\n\u0002\b\u0005\b&\u0018\u00002\b\u0012\u0004\u0012\u00020\u00020\u0001B\u0005¢\u0006\u0002\u0010\u0003J\u000e\u0010\u0004\u001a\u00020\u0002H\u0086\u0002¢\u0006\u0002\u0010\u0005J\b\u0010\u0006\u001a\u00020\u0002H&¨\u0006\u0007"}, d2 = {"Lkotlin/collections/CharIterator;", "", "", "()V", "next", "()Ljava/lang/Character;", "nextChar", "kotlin-stdlib"}, k = 1, mv = {1, 8, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public abstract class CharIterator implements Iterator<Character>, KMappedMarker {
|
||||
public abstract char nextChar();
|
||||
|
||||
@Override // java.util.Iterator
|
||||
public void remove() {
|
||||
throw new UnsupportedOperationException("Operation is not supported for read-only collection");
|
||||
}
|
||||
|
||||
@Override // java.util.Iterator
|
||||
public /* bridge */ /* synthetic */ Character next() {
|
||||
return Character.valueOf(nextChar());
|
||||
}
|
||||
|
||||
/* JADX WARN: Can't rename method to resolve collision */
|
||||
@Override // java.util.Iterator
|
||||
public final Character next() {
|
||||
return Character.valueOf(nextChar());
|
||||
}
|
||||
}
|
10
02-Easy5/E5/sources/kotlin/collections/CollectionsKt.java
Normal file
10
02-Easy5/E5/sources/kotlin/collections/CollectionsKt.java
Normal file
@ -0,0 +1,10 @@
|
||||
package kotlin.collections;
|
||||
|
||||
import kotlin.Metadata;
|
||||
|
||||
@Metadata(d1 = {"kotlin/collections/CollectionsKt__CollectionsJVMKt", "kotlin/collections/CollectionsKt__CollectionsKt", "kotlin/collections/CollectionsKt__IterablesKt", "kotlin/collections/CollectionsKt__IteratorsJVMKt", "kotlin/collections/CollectionsKt__IteratorsKt", "kotlin/collections/CollectionsKt__MutableCollectionsJVMKt", "kotlin/collections/CollectionsKt__MutableCollectionsKt", "kotlin/collections/CollectionsKt__ReversedViewsKt", "kotlin/collections/CollectionsKt___CollectionsJvmKt", "kotlin/collections/CollectionsKt___CollectionsKt"}, k = 4, mv = {1, 8, 0}, xi = 49)
|
||||
/* loaded from: classes.dex */
|
||||
public final class CollectionsKt extends CollectionsKt___CollectionsKt {
|
||||
private CollectionsKt() {
|
||||
}
|
||||
}
|
@ -0,0 +1,120 @@
|
||||
package kotlin.collections;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.Collection;
|
||||
import java.util.Collections;
|
||||
import java.util.Enumeration;
|
||||
import java.util.List;
|
||||
import java.util.Random;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.Unit;
|
||||
import kotlin.collections.builders.ListBuilder;
|
||||
import kotlin.internal.PlatformImplementationsKt;
|
||||
import kotlin.jvm.functions.Function1;
|
||||
import kotlin.jvm.internal.CollectionToArray;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
|
||||
/* JADX INFO: Access modifiers changed from: package-private */
|
||||
/* compiled from: CollectionsJVM.kt */
|
||||
@Metadata(d1 = {"\u0000T\n\u0000\n\u0002\u0010 \n\u0002\b\u0002\n\u0002\u0010!\n\u0002\b\u0002\n\u0002\u0010\b\n\u0000\n\u0002\u0018\u0002\n\u0002\u0010\u0002\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0010\u0011\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\u001e\n\u0002\b\n\n\u0002\u0010\u000b\n\u0002\b\u0002\n\u0002\u0010\u001c\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\u001a\"\u0010\u0000\u001a\b\u0012\u0004\u0012\u0002H\u00020\u0001\"\u0004\b\u0000\u0010\u00022\f\u0010\u0003\u001a\b\u0012\u0004\u0012\u0002H\u00020\u0004H\u0001\u001a?\u0010\u0005\u001a\b\u0012\u0004\u0012\u0002H\u00020\u0001\"\u0004\b\u0000\u0010\u00022\u0006\u0010\u0006\u001a\u00020\u00072\u001d\u0010\b\u001a\u0019\u0012\n\u0012\b\u0012\u0004\u0012\u0002H\u00020\u0004\u0012\u0004\u0012\u00020\n0\t¢\u0006\u0002\b\u000bH\u0081\bø\u0001\u0000\u001a7\u0010\u0005\u001a\b\u0012\u0004\u0012\u0002H\u00020\u0001\"\u0004\b\u0000\u0010\u00022\u001d\u0010\b\u001a\u0019\u0012\n\u0012\b\u0012\u0004\u0012\u0002H\u00020\u0004\u0012\u0004\u0012\u00020\n0\t¢\u0006\u0002\b\u000bH\u0081\bø\u0001\u0000\u001a\u0011\u0010\f\u001a\u00020\u00072\u0006\u0010\r\u001a\u00020\u0007H\u0081\b\u001a\u0011\u0010\u000e\u001a\u00020\u00072\u0006\u0010\u000f\u001a\u00020\u0007H\u0081\b\u001a\"\u0010\u0010\u001a\n\u0012\u0006\u0012\u0004\u0018\u00010\u00120\u00112\n\u0010\u0013\u001a\u0006\u0012\u0002\b\u00030\u0014H\u0081\b¢\u0006\u0002\u0010\u0015\u001a4\u0010\u0010\u001a\b\u0012\u0004\u0012\u0002H\u00160\u0011\"\u0004\b\u0000\u0010\u00162\n\u0010\u0013\u001a\u0006\u0012\u0002\b\u00030\u00142\f\u0010\u0017\u001a\b\u0012\u0004\u0012\u0002H\u00160\u0011H\u0081\b¢\u0006\u0002\u0010\u0018\u001a\u0014\u0010\u0019\u001a\b\u0012\u0004\u0012\u0002H\u00020\u0004\"\u0004\b\u0000\u0010\u0002H\u0001\u001a\u001c\u0010\u0019\u001a\b\u0012\u0004\u0012\u0002H\u00020\u0004\"\u0004\b\u0000\u0010\u00022\u0006\u0010\u0006\u001a\u00020\u0007H\u0001\u001a\u001f\u0010\u001a\u001a\b\u0012\u0004\u0012\u0002H\u00160\u0001\"\u0004\b\u0000\u0010\u00162\u0006\u0010\u001b\u001a\u0002H\u0016¢\u0006\u0002\u0010\u001c\u001a1\u0010\u001d\u001a\f\u0012\b\b\u0001\u0012\u0004\u0018\u00010\u00120\u0011\"\u0004\b\u0000\u0010\u0016*\n\u0012\u0006\b\u0001\u0012\u0002H\u00160\u00112\u0006\u0010\u001e\u001a\u00020\u001fH\u0000¢\u0006\u0002\u0010 \u001a\u001e\u0010!\u001a\b\u0012\u0004\u0012\u0002H\u00160\u0001\"\u0004\b\u0000\u0010\u0016*\b\u0012\u0004\u0012\u0002H\u00160\"H\u0007\u001a&\u0010!\u001a\b\u0012\u0004\u0012\u0002H\u00160\u0001\"\u0004\b\u0000\u0010\u0016*\b\u0012\u0004\u0012\u0002H\u00160\"2\u0006\u0010#\u001a\u00020$H\u0007\u001a\u001f\u0010%\u001a\b\u0012\u0004\u0012\u0002H\u00160\u0001\"\u0004\b\u0000\u0010\u0016*\b\u0012\u0004\u0012\u0002H\u00160&H\u0087\b\u0082\u0002\u0007\n\u0005\b\u009920\u0001¨\u0006'"}, d2 = {"build", "", "E", "builder", "", "buildListInternal", "capacity", "", "builderAction", "Lkotlin/Function1;", "", "Lkotlin/ExtensionFunctionType;", "checkCountOverflow", "count", "checkIndexOverflow", "index", "copyToArrayImpl", "", "", "collection", "", "(Ljava/util/Collection;)[Ljava/lang/Object;", "T", "array", "(Ljava/util/Collection;[Ljava/lang/Object;)[Ljava/lang/Object;", "createListBuilder", "listOf", "element", "(Ljava/lang/Object;)Ljava/util/List;", "copyToArrayOfAny", "isVarargs", "", "([Ljava/lang/Object;Z)[Ljava/lang/Object;", "shuffled", "", "random", "Ljava/util/Random;", "toList", "Ljava/util/Enumeration;", "kotlin-stdlib"}, k = 5, mv = {1, 8, 0}, xi = 49, xs = "kotlin/collections/CollectionsKt")
|
||||
/* loaded from: classes.dex */
|
||||
public class CollectionsKt__CollectionsJVMKt {
|
||||
public static final <T> List<T> listOf(T t) {
|
||||
List<T> singletonList = Collections.singletonList(t);
|
||||
Intrinsics.checkNotNullExpressionValue(singletonList, "singletonList(element)");
|
||||
return singletonList;
|
||||
}
|
||||
|
||||
private static final <E> List<E> buildListInternal(Function1<? super List<E>, Unit> builderAction) {
|
||||
Intrinsics.checkNotNullParameter(builderAction, "builderAction");
|
||||
List createListBuilder = CollectionsKt.createListBuilder();
|
||||
builderAction.invoke(createListBuilder);
|
||||
return CollectionsKt.build(createListBuilder);
|
||||
}
|
||||
|
||||
private static final <E> List<E> buildListInternal(int i, Function1<? super List<E>, Unit> builderAction) {
|
||||
Intrinsics.checkNotNullParameter(builderAction, "builderAction");
|
||||
List createListBuilder = CollectionsKt.createListBuilder(i);
|
||||
builderAction.invoke(createListBuilder);
|
||||
return CollectionsKt.build(createListBuilder);
|
||||
}
|
||||
|
||||
public static final <E> List<E> createListBuilder() {
|
||||
return new ListBuilder();
|
||||
}
|
||||
|
||||
public static final <E> List<E> createListBuilder(int i) {
|
||||
return new ListBuilder(i);
|
||||
}
|
||||
|
||||
public static final <E> List<E> build(List<E> builder) {
|
||||
Intrinsics.checkNotNullParameter(builder, "builder");
|
||||
return ((ListBuilder) builder).build();
|
||||
}
|
||||
|
||||
private static final <T> List<T> toList(Enumeration<T> enumeration) {
|
||||
Intrinsics.checkNotNullParameter(enumeration, "<this>");
|
||||
ArrayList list = Collections.list(enumeration);
|
||||
Intrinsics.checkNotNullExpressionValue(list, "list(this)");
|
||||
return list;
|
||||
}
|
||||
|
||||
public static final <T> List<T> shuffled(Iterable<? extends T> iterable) {
|
||||
Intrinsics.checkNotNullParameter(iterable, "<this>");
|
||||
List<T> mutableList = CollectionsKt.toMutableList(iterable);
|
||||
Collections.shuffle(mutableList);
|
||||
return mutableList;
|
||||
}
|
||||
|
||||
public static final <T> List<T> shuffled(Iterable<? extends T> iterable, Random random) {
|
||||
Intrinsics.checkNotNullParameter(iterable, "<this>");
|
||||
Intrinsics.checkNotNullParameter(random, "random");
|
||||
List<T> mutableList = CollectionsKt.toMutableList(iterable);
|
||||
Collections.shuffle(mutableList, random);
|
||||
return mutableList;
|
||||
}
|
||||
|
||||
private static final Object[] copyToArrayImpl(Collection<?> collection) {
|
||||
Intrinsics.checkNotNullParameter(collection, "collection");
|
||||
return CollectionToArray.toArray(collection);
|
||||
}
|
||||
|
||||
private static final <T> T[] copyToArrayImpl(Collection<?> collection, T[] array) {
|
||||
Intrinsics.checkNotNullParameter(collection, "collection");
|
||||
Intrinsics.checkNotNullParameter(array, "array");
|
||||
return (T[]) CollectionToArray.toArray(collection, array);
|
||||
}
|
||||
|
||||
public static final <T> Object[] copyToArrayOfAny(T[] tArr, boolean z) {
|
||||
Intrinsics.checkNotNullParameter(tArr, "<this>");
|
||||
if (z && Intrinsics.areEqual(tArr.getClass(), Object[].class)) {
|
||||
return tArr;
|
||||
}
|
||||
Object[] copyOf = Arrays.copyOf(tArr, tArr.length, Object[].class);
|
||||
Intrinsics.checkNotNullExpressionValue(copyOf, "copyOf(this, this.size, Array<Any?>::class.java)");
|
||||
return copyOf;
|
||||
}
|
||||
|
||||
private static final int checkIndexOverflow(int i) {
|
||||
if (i < 0) {
|
||||
if (PlatformImplementationsKt.apiVersionIsAtLeast(1, 3, 0)) {
|
||||
CollectionsKt.throwIndexOverflow();
|
||||
} else {
|
||||
throw new ArithmeticException("Index overflow has happened.");
|
||||
}
|
||||
}
|
||||
return i;
|
||||
}
|
||||
|
||||
private static final int checkCountOverflow(int i) {
|
||||
if (i < 0) {
|
||||
if (PlatformImplementationsKt.apiVersionIsAtLeast(1, 3, 0)) {
|
||||
CollectionsKt.throwCountOverflow();
|
||||
} else {
|
||||
throw new ArithmeticException("Count overflow has happened.");
|
||||
}
|
||||
}
|
||||
return i;
|
||||
}
|
||||
}
|
@ -0,0 +1,36 @@
|
||||
package kotlin.collections;
|
||||
|
||||
import kotlin.Metadata;
|
||||
import kotlin.comparisons.ComparisonsKt;
|
||||
import kotlin.jvm.functions.Function1;
|
||||
import kotlin.jvm.internal.Lambda;
|
||||
|
||||
/* JADX INFO: Add missing generic type declarations: [T] */
|
||||
/* JADX WARN: Incorrect field signature: TK; */
|
||||
/* compiled from: Collections.kt */
|
||||
@Metadata(d1 = {"\u0000\u0012\n\u0000\n\u0002\u0010\b\n\u0002\b\u0002\n\u0002\u0010\u000f\n\u0002\b\u0003\u0010\u0000\u001a\u00020\u0001\"\u0004\b\u0000\u0010\u0002\"\u000e\b\u0001\u0010\u0003*\b\u0012\u0004\u0012\u0002H\u00030\u00042\u0006\u0010\u0005\u001a\u0002H\u0002H\n¢\u0006\u0004\b\u0006\u0010\u0007"}, d2 = {"<anonymous>", "", "T", "K", "", "it", "invoke", "(Ljava/lang/Object;)Ljava/lang/Integer;"}, k = 3, mv = {1, 8, 0}, xi = 176)
|
||||
/* loaded from: classes.dex */
|
||||
public final class CollectionsKt__CollectionsKt$binarySearchBy$1<T> extends Lambda implements Function1<T, Integer> {
|
||||
final /* synthetic */ Comparable $key;
|
||||
final /* synthetic */ Function1<T, K> $selector;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
/* JADX WARN: Incorrect types in method signature: (Lkotlin/jvm/functions/Function1<-TT;+TK;>;TK;)V */
|
||||
public CollectionsKt__CollectionsKt$binarySearchBy$1(Function1 function1, Comparable comparable) {
|
||||
super(1);
|
||||
this.$selector = function1;
|
||||
this.$key = comparable;
|
||||
}
|
||||
|
||||
/* JADX WARN: Can't rename method to resolve collision */
|
||||
@Override // kotlin.jvm.functions.Function1
|
||||
public final Integer invoke(T t) {
|
||||
return Integer.valueOf(ComparisonsKt.compareValues((Comparable) this.$selector.invoke(t), this.$key));
|
||||
}
|
||||
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
@Override // kotlin.jvm.functions.Function1
|
||||
public /* bridge */ /* synthetic */ Integer invoke(Object obj) {
|
||||
return invoke((CollectionsKt__CollectionsKt$binarySearchBy$1<T>) obj);
|
||||
}
|
||||
}
|
File diff suppressed because one or more lines are too long
@ -0,0 +1,24 @@
|
||||
package kotlin.collections;
|
||||
|
||||
import java.util.Iterator;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.functions.Function0;
|
||||
import kotlin.jvm.internal.markers.KMappedMarker;
|
||||
|
||||
/* JADX INFO: Add missing generic type declarations: [T] */
|
||||
/* compiled from: Iterables.kt */
|
||||
@Metadata(d1 = {"\u0000\u0011\n\u0000\n\u0002\u0010\u001c\n\u0000\n\u0002\u0010(\n\u0000*\u0001\u0000\b\n\u0018\u00002\b\u0012\u0004\u0012\u00028\u00000\u0001J\u000f\u0010\u0002\u001a\b\u0012\u0004\u0012\u00028\u00000\u0003H\u0096\u0002¨\u0006\u0004"}, d2 = {"kotlin/collections/CollectionsKt__IterablesKt$Iterable$1", "", "iterator", "", "kotlin-stdlib"}, k = 1, mv = {1, 8, 0}, xi = 176)
|
||||
/* loaded from: classes.dex */
|
||||
public final class CollectionsKt__IterablesKt$Iterable$1<T> implements Iterable<T>, KMappedMarker {
|
||||
final /* synthetic */ Function0<Iterator<T>> $iterator;
|
||||
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
public CollectionsKt__IterablesKt$Iterable$1(Function0<? extends Iterator<? extends T>> function0) {
|
||||
this.$iterator = function0;
|
||||
}
|
||||
|
||||
@Override // java.lang.Iterable
|
||||
public Iterator<T> iterator() {
|
||||
return this.$iterator.invoke();
|
||||
}
|
||||
}
|
@ -0,0 +1,57 @@
|
||||
package kotlin.collections;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collection;
|
||||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.Pair;
|
||||
import kotlin.TuplesKt;
|
||||
import kotlin.jvm.functions.Function0;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
|
||||
/* JADX INFO: Access modifiers changed from: package-private */
|
||||
/* compiled from: Iterables.kt */
|
||||
@Metadata(d1 = {"\u0000*\n\u0000\n\u0002\u0010\u001c\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\u0010(\n\u0000\n\u0002\u0010\b\n\u0002\b\u0004\n\u0002\u0010 \n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\u001a.\u0010\u0000\u001a\b\u0012\u0004\u0012\u0002H\u00020\u0001\"\u0004\b\u0000\u0010\u00022\u0014\b\u0004\u0010\u0003\u001a\u000e\u0012\n\u0012\b\u0012\u0004\u0012\u0002H\u00020\u00050\u0004H\u0087\bø\u0001\u0000\u001a \u0010\u0006\u001a\u00020\u0007\"\u0004\b\u0000\u0010\u0002*\b\u0012\u0004\u0012\u0002H\u00020\u00012\u0006\u0010\b\u001a\u00020\u0007H\u0001\u001a\u001f\u0010\t\u001a\u0004\u0018\u00010\u0007\"\u0004\b\u0000\u0010\u0002*\b\u0012\u0004\u0012\u0002H\u00020\u0001H\u0001¢\u0006\u0002\u0010\n\u001a\"\u0010\u000b\u001a\b\u0012\u0004\u0012\u0002H\u00020\f\"\u0004\b\u0000\u0010\u0002*\u000e\u0012\n\u0012\b\u0012\u0004\u0012\u0002H\u00020\u00010\u0001\u001a@\u0010\r\u001a\u001a\u0012\n\u0012\b\u0012\u0004\u0012\u0002H\u00020\f\u0012\n\u0012\b\u0012\u0004\u0012\u0002H\u000f0\f0\u000e\"\u0004\b\u0000\u0010\u0002\"\u0004\b\u0001\u0010\u000f*\u0014\u0012\u0010\u0012\u000e\u0012\u0004\u0012\u0002H\u0002\u0012\u0004\u0012\u0002H\u000f0\u000e0\u0001\u0082\u0002\u0007\n\u0005\b\u009920\u0001¨\u0006\u0010"}, d2 = {"Iterable", "", "T", "iterator", "Lkotlin/Function0;", "", "collectionSizeOrDefault", "", "default", "collectionSizeOrNull", "(Ljava/lang/Iterable;)Ljava/lang/Integer;", "flatten", "", "unzip", "Lkotlin/Pair;", "R", "kotlin-stdlib"}, k = 5, mv = {1, 8, 0}, xi = 49, xs = "kotlin/collections/CollectionsKt")
|
||||
/* loaded from: classes.dex */
|
||||
public class CollectionsKt__IterablesKt extends CollectionsKt__CollectionsKt {
|
||||
private static final <T> Iterable<T> Iterable(Function0<? extends Iterator<? extends T>> iterator) {
|
||||
Intrinsics.checkNotNullParameter(iterator, "iterator");
|
||||
return new CollectionsKt__IterablesKt$Iterable$1(iterator);
|
||||
}
|
||||
|
||||
public static final <T> Integer collectionSizeOrNull(Iterable<? extends T> iterable) {
|
||||
Intrinsics.checkNotNullParameter(iterable, "<this>");
|
||||
if (iterable instanceof Collection) {
|
||||
return Integer.valueOf(((Collection) iterable).size());
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public static final <T> int collectionSizeOrDefault(Iterable<? extends T> iterable, int i) {
|
||||
Intrinsics.checkNotNullParameter(iterable, "<this>");
|
||||
return iterable instanceof Collection ? ((Collection) iterable).size() : i;
|
||||
}
|
||||
|
||||
public static final <T> List<T> flatten(Iterable<? extends Iterable<? extends T>> iterable) {
|
||||
Intrinsics.checkNotNullParameter(iterable, "<this>");
|
||||
ArrayList arrayList = new ArrayList();
|
||||
Iterator<? extends Iterable<? extends T>> it = iterable.iterator();
|
||||
while (it.hasNext()) {
|
||||
CollectionsKt.addAll(arrayList, it.next());
|
||||
}
|
||||
return arrayList;
|
||||
}
|
||||
|
||||
public static final <T, R> Pair<List<T>, List<R>> unzip(Iterable<? extends Pair<? extends T, ? extends R>> iterable) {
|
||||
Intrinsics.checkNotNullParameter(iterable, "<this>");
|
||||
int collectionSizeOrDefault = CollectionsKt.collectionSizeOrDefault(iterable, 10);
|
||||
ArrayList arrayList = new ArrayList(collectionSizeOrDefault);
|
||||
ArrayList arrayList2 = new ArrayList(collectionSizeOrDefault);
|
||||
for (Pair<? extends T, ? extends R> pair : iterable) {
|
||||
arrayList.add(pair.getFirst());
|
||||
arrayList2.add(pair.getSecond());
|
||||
}
|
||||
return TuplesKt.to(arrayList, arrayList2);
|
||||
}
|
||||
}
|
@ -0,0 +1,33 @@
|
||||
package kotlin.collections;
|
||||
|
||||
import java.util.Enumeration;
|
||||
import java.util.Iterator;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.internal.markers.KMappedMarker;
|
||||
|
||||
/* JADX INFO: Add missing generic type declarations: [T] */
|
||||
/* compiled from: IteratorsJVM.kt */
|
||||
@Metadata(d1 = {"\u0000\u0013\n\u0000\n\u0002\u0010(\n\u0000\n\u0002\u0010\u000b\n\u0002\b\u0003*\u0001\u0000\b\n\u0018\u00002\b\u0012\u0004\u0012\u00028\u00000\u0001J\t\u0010\u0002\u001a\u00020\u0003H\u0096\u0002J\u000e\u0010\u0004\u001a\u00028\u0000H\u0096\u0002¢\u0006\u0002\u0010\u0005¨\u0006\u0006"}, d2 = {"kotlin/collections/CollectionsKt__IteratorsJVMKt$iterator$1", "", "hasNext", "", "next", "()Ljava/lang/Object;", "kotlin-stdlib"}, k = 1, mv = {1, 8, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public final class CollectionsKt__IteratorsJVMKt$iterator$1<T> implements Iterator<T>, KMappedMarker {
|
||||
final /* synthetic */ Enumeration<T> $this_iterator;
|
||||
|
||||
@Override // java.util.Iterator
|
||||
public void remove() {
|
||||
throw new UnsupportedOperationException("Operation is not supported for read-only collection");
|
||||
}
|
||||
|
||||
CollectionsKt__IteratorsJVMKt$iterator$1(Enumeration<T> enumeration) {
|
||||
this.$this_iterator = enumeration;
|
||||
}
|
||||
|
||||
@Override // java.util.Iterator
|
||||
public boolean hasNext() {
|
||||
return this.$this_iterator.hasMoreElements();
|
||||
}
|
||||
|
||||
@Override // java.util.Iterator
|
||||
public T next() {
|
||||
return this.$this_iterator.nextElement();
|
||||
}
|
||||
}
|
@ -0,0 +1,17 @@
|
||||
package kotlin.collections;
|
||||
|
||||
import java.util.Enumeration;
|
||||
import java.util.Iterator;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
|
||||
/* JADX INFO: Access modifiers changed from: package-private */
|
||||
/* compiled from: IteratorsJVM.kt */
|
||||
@Metadata(d1 = {"\u0000\u000e\n\u0000\n\u0002\u0010(\n\u0000\n\u0002\u0018\u0002\n\u0000\u001a\u001f\u0010\u0000\u001a\b\u0012\u0004\u0012\u0002H\u00020\u0001\"\u0004\b\u0000\u0010\u0002*\b\u0012\u0004\u0012\u0002H\u00020\u0003H\u0086\u0002¨\u0006\u0004"}, d2 = {"iterator", "", "T", "Ljava/util/Enumeration;", "kotlin-stdlib"}, k = 5, mv = {1, 8, 0}, xi = 49, xs = "kotlin/collections/CollectionsKt")
|
||||
/* loaded from: classes.dex */
|
||||
public class CollectionsKt__IteratorsJVMKt extends CollectionsKt__IterablesKt {
|
||||
public static final <T> Iterator<T> iterator(Enumeration<T> enumeration) {
|
||||
Intrinsics.checkNotNullParameter(enumeration, "<this>");
|
||||
return new CollectionsKt__IteratorsJVMKt$iterator$1(enumeration);
|
||||
}
|
||||
}
|
@ -0,0 +1,31 @@
|
||||
package kotlin.collections;
|
||||
|
||||
import java.util.Iterator;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.Unit;
|
||||
import kotlin.jvm.functions.Function1;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
|
||||
/* compiled from: Iterators.kt */
|
||||
@Metadata(d1 = {"\u0000\u001c\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0010(\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\u001a0\u0010\u0000\u001a\u00020\u0001\"\u0004\b\u0000\u0010\u0002*\b\u0012\u0004\u0012\u0002H\u00020\u00032\u0012\u0010\u0004\u001a\u000e\u0012\u0004\u0012\u0002H\u0002\u0012\u0004\u0012\u00020\u00010\u0005H\u0086\bø\u0001\u0000\u001a\u001f\u0010\u0006\u001a\b\u0012\u0004\u0012\u0002H\u00020\u0003\"\u0004\b\u0000\u0010\u0002*\b\u0012\u0004\u0012\u0002H\u00020\u0003H\u0087\n\u001a\"\u0010\u0007\u001a\u000e\u0012\n\u0012\b\u0012\u0004\u0012\u0002H\u00020\b0\u0003\"\u0004\b\u0000\u0010\u0002*\b\u0012\u0004\u0012\u0002H\u00020\u0003\u0082\u0002\u0007\n\u0005\b\u009920\u0001¨\u0006\t"}, d2 = {"forEach", "", "T", "", "operation", "Lkotlin/Function1;", "iterator", "withIndex", "Lkotlin/collections/IndexedValue;", "kotlin-stdlib"}, k = 5, mv = {1, 8, 0}, xi = 49, xs = "kotlin/collections/CollectionsKt")
|
||||
/* loaded from: classes.dex */
|
||||
class CollectionsKt__IteratorsKt extends CollectionsKt__IteratorsJVMKt {
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
private static final <T> Iterator<T> iterator(Iterator<? extends T> it) {
|
||||
Intrinsics.checkNotNullParameter(it, "<this>");
|
||||
return it;
|
||||
}
|
||||
|
||||
public static final <T> Iterator<IndexedValue<T>> withIndex(Iterator<? extends T> it) {
|
||||
Intrinsics.checkNotNullParameter(it, "<this>");
|
||||
return new IndexingIterator(it);
|
||||
}
|
||||
|
||||
public static final <T> void forEach(Iterator<? extends T> it, Function1<? super T, Unit> operation) {
|
||||
Intrinsics.checkNotNullParameter(it, "<this>");
|
||||
Intrinsics.checkNotNullParameter(operation, "operation");
|
||||
while (it.hasNext()) {
|
||||
operation.invoke(it.next());
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,64 @@
|
||||
package kotlin.collections;
|
||||
|
||||
import java.util.Collections;
|
||||
import java.util.Comparator;
|
||||
import java.util.List;
|
||||
import java.util.Random;
|
||||
import kotlin.Deprecated;
|
||||
import kotlin.DeprecationLevel;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.NotImplementedError;
|
||||
import kotlin.ReplaceWith;
|
||||
import kotlin.jvm.functions.Function2;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
|
||||
/* JADX INFO: Access modifiers changed from: package-private */
|
||||
/* compiled from: MutableCollectionsJVM.kt */
|
||||
@Metadata(d1 = {"\u00002\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0010!\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000f\n\u0000\n\u0002\u0018\u0002\n\u0002\u0010\b\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\u001a&\u0010\u0000\u001a\u00020\u0001\"\u0004\b\u0000\u0010\u0002*\b\u0012\u0004\u0012\u0002H\u00020\u00032\u0006\u0010\u0004\u001a\u0002H\u0002H\u0087\b¢\u0006\u0002\u0010\u0005\u001a\u0019\u0010\u0006\u001a\u00020\u0001\"\u0004\b\u0000\u0010\u0002*\b\u0012\u0004\u0012\u0002H\u00020\u0003H\u0087\b\u001a!\u0010\u0006\u001a\u00020\u0001\"\u0004\b\u0000\u0010\u0002*\b\u0012\u0004\u0012\u0002H\u00020\u00032\u0006\u0010\u0007\u001a\u00020\bH\u0087\b\u001a \u0010\t\u001a\u00020\u0001\"\u000e\b\u0000\u0010\u0002*\b\u0012\u0004\u0012\u0002H\u00020\n*\b\u0012\u0004\u0012\u0002H\u00020\u0003\u001a6\u0010\t\u001a\u00020\u0001\"\u0004\b\u0000\u0010\u0002*\b\u0012\u0004\u0012\u0002H\u00020\u00032\u0018\u0010\u000b\u001a\u0014\u0012\u0004\u0012\u0002H\u0002\u0012\u0004\u0012\u0002H\u0002\u0012\u0004\u0012\u00020\r0\fH\u0087\bø\u0001\u0000\u001a5\u0010\t\u001a\u00020\u0001\"\u0004\b\u0000\u0010\u0002*\b\u0012\u0004\u0012\u0002H\u00020\u00032\u001a\u0010\u000e\u001a\u0016\u0012\u0006\b\u0000\u0012\u0002H\u00020\u000fj\n\u0012\u0006\b\u0000\u0012\u0002H\u0002`\u0010H\u0087\b\u001a2\u0010\u0011\u001a\u00020\u0001\"\u0004\b\u0000\u0010\u0002*\b\u0012\u0004\u0012\u0002H\u00020\u00032\u001a\u0010\u000e\u001a\u0016\u0012\u0006\b\u0000\u0012\u0002H\u00020\u000fj\n\u0012\u0006\b\u0000\u0012\u0002H\u0002`\u0010\u0082\u0002\u0007\n\u0005\b\u009920\u0001¨\u0006\u0012"}, d2 = {"fill", "", "T", "", "value", "(Ljava/util/List;Ljava/lang/Object;)V", "shuffle", "random", "Ljava/util/Random;", "sort", "", "comparison", "Lkotlin/Function2;", "", "comparator", "Ljava/util/Comparator;", "Lkotlin/Comparator;", "sortWith", "kotlin-stdlib"}, k = 5, mv = {1, 8, 0}, xi = 49, xs = "kotlin/collections/CollectionsKt")
|
||||
/* loaded from: classes.dex */
|
||||
public class CollectionsKt__MutableCollectionsJVMKt extends CollectionsKt__IteratorsKt {
|
||||
@Deprecated(level = DeprecationLevel.ERROR, message = "Use sortWith(comparator) instead.", replaceWith = @ReplaceWith(expression = "this.sortWith(comparator)", imports = {}))
|
||||
private static final <T> void sort(List<T> list, Comparator<? super T> comparator) {
|
||||
Intrinsics.checkNotNullParameter(list, "<this>");
|
||||
Intrinsics.checkNotNullParameter(comparator, "comparator");
|
||||
throw new NotImplementedError(null, 1, null);
|
||||
}
|
||||
|
||||
@Deprecated(level = DeprecationLevel.ERROR, message = "Use sortWith(Comparator(comparison)) instead.", replaceWith = @ReplaceWith(expression = "this.sortWith(Comparator(comparison))", imports = {}))
|
||||
private static final <T> void sort(List<T> list, Function2<? super T, ? super T, Integer> comparison) {
|
||||
Intrinsics.checkNotNullParameter(list, "<this>");
|
||||
Intrinsics.checkNotNullParameter(comparison, "comparison");
|
||||
throw new NotImplementedError(null, 1, null);
|
||||
}
|
||||
|
||||
public static final <T extends Comparable<? super T>> void sort(List<T> list) {
|
||||
Intrinsics.checkNotNullParameter(list, "<this>");
|
||||
if (list.size() > 1) {
|
||||
Collections.sort(list);
|
||||
}
|
||||
}
|
||||
|
||||
public static final <T> void sortWith(List<T> list, Comparator<? super T> comparator) {
|
||||
Intrinsics.checkNotNullParameter(list, "<this>");
|
||||
Intrinsics.checkNotNullParameter(comparator, "comparator");
|
||||
if (list.size() > 1) {
|
||||
Collections.sort(list, comparator);
|
||||
}
|
||||
}
|
||||
|
||||
private static final <T> void fill(List<T> list, T t) {
|
||||
Intrinsics.checkNotNullParameter(list, "<this>");
|
||||
Collections.fill(list, t);
|
||||
}
|
||||
|
||||
private static final <T> void shuffle(List<T> list) {
|
||||
Intrinsics.checkNotNullParameter(list, "<this>");
|
||||
Collections.shuffle(list);
|
||||
}
|
||||
|
||||
private static final <T> void shuffle(List<T> list, Random random) {
|
||||
Intrinsics.checkNotNullParameter(list, "<this>");
|
||||
Intrinsics.checkNotNullParameter(random, "random");
|
||||
Collections.shuffle(list, random);
|
||||
}
|
||||
}
|
File diff suppressed because one or more lines are too long
@ -0,0 +1,37 @@
|
||||
package kotlin.collections;
|
||||
|
||||
import java.util.List;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.ranges.IntRange;
|
||||
|
||||
/* compiled from: ReversedViews.kt */
|
||||
@Metadata(d1 = {"\u0000\u0018\n\u0000\n\u0002\u0010 \n\u0000\n\u0002\u0010!\n\u0002\b\u0002\n\u0002\u0010\b\n\u0002\b\u0005\u001a\u001c\u0010\u0000\u001a\b\u0012\u0004\u0012\u0002H\u00020\u0001\"\u0004\b\u0000\u0010\u0002*\b\u0012\u0004\u0012\u0002H\u00020\u0001\u001a#\u0010\u0000\u001a\b\u0012\u0004\u0012\u0002H\u00020\u0003\"\u0004\b\u0000\u0010\u0002*\b\u0012\u0004\u0012\u0002H\u00020\u0003H\u0007¢\u0006\u0002\b\u0004\u001a\u001d\u0010\u0005\u001a\u00020\u0006*\u0006\u0012\u0002\b\u00030\u00012\u0006\u0010\u0007\u001a\u00020\u0006H\u0002¢\u0006\u0002\b\b\u001a\u001d\u0010\t\u001a\u00020\u0006*\u0006\u0012\u0002\b\u00030\u00012\u0006\u0010\u0007\u001a\u00020\u0006H\u0002¢\u0006\u0002\b\n¨\u0006\u000b"}, d2 = {"asReversed", "", "T", "", "asReversedMutable", "reverseElementIndex", "", "index", "reverseElementIndex$CollectionsKt__ReversedViewsKt", "reversePositionIndex", "reversePositionIndex$CollectionsKt__ReversedViewsKt", "kotlin-stdlib"}, k = 5, mv = {1, 8, 0}, xi = 49, xs = "kotlin/collections/CollectionsKt")
|
||||
/* loaded from: classes.dex */
|
||||
class CollectionsKt__ReversedViewsKt extends CollectionsKt__MutableCollectionsKt {
|
||||
/* JADX INFO: Access modifiers changed from: private */
|
||||
public static final int reverseElementIndex$CollectionsKt__ReversedViewsKt(List<?> list, int i) {
|
||||
if (new IntRange(0, CollectionsKt.getLastIndex(list)).contains(i)) {
|
||||
return CollectionsKt.getLastIndex(list) - i;
|
||||
}
|
||||
throw new IndexOutOfBoundsException("Element index " + i + " must be in range [" + new IntRange(0, CollectionsKt.getLastIndex(list)) + "].");
|
||||
}
|
||||
|
||||
/* JADX INFO: Access modifiers changed from: private */
|
||||
public static final int reversePositionIndex$CollectionsKt__ReversedViewsKt(List<?> list, int i) {
|
||||
if (new IntRange(0, list.size()).contains(i)) {
|
||||
return list.size() - i;
|
||||
}
|
||||
throw new IndexOutOfBoundsException("Position index " + i + " must be in range [" + new IntRange(0, list.size()) + "].");
|
||||
}
|
||||
|
||||
public static final <T> List<T> asReversed(List<? extends T> list) {
|
||||
Intrinsics.checkNotNullParameter(list, "<this>");
|
||||
return new ReversedListReadOnly(list);
|
||||
}
|
||||
|
||||
public static final <T> List<T> asReversedMutable(List<T> list) {
|
||||
Intrinsics.checkNotNullParameter(list, "<this>");
|
||||
return new ReversedList(list);
|
||||
}
|
||||
}
|
@ -0,0 +1,210 @@
|
||||
package kotlin.collections;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.math.BigInteger;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collection;
|
||||
import java.util.Collections;
|
||||
import java.util.Comparator;
|
||||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
import java.util.SortedSet;
|
||||
import java.util.TreeSet;
|
||||
import kotlin.Deprecated;
|
||||
import kotlin.DeprecatedSinceKotlin;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.ReplaceWith;
|
||||
import kotlin.jvm.functions.Function1;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
|
||||
/* JADX INFO: Access modifiers changed from: package-private */
|
||||
/* compiled from: _CollectionsJvm.kt */
|
||||
@Metadata(d1 = {"\u0000d\n\u0000\n\u0002\u0010 \n\u0000\n\u0002\u0010\u001c\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u001f\n\u0002\b\u0004\n\u0002\u0010\u000f\n\u0000\n\u0002\u0010\u0006\n\u0000\n\u0002\u0010\u0007\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0010\u0002\n\u0002\u0010!\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\u001a(\u0010\u0000\u001a\b\u0012\u0004\u0012\u0002H\u00020\u0001\"\u0004\b\u0000\u0010\u0002*\u0006\u0012\u0002\b\u00030\u00032\f\u0010\u0004\u001a\b\u0012\u0004\u0012\u0002H\u00020\u0005\u001aA\u0010\u0006\u001a\u0002H\u0007\"\u0010\b\u0000\u0010\u0007*\n\u0012\u0006\b\u0000\u0012\u0002H\u00020\b\"\u0004\b\u0001\u0010\u0002*\u0006\u0012\u0002\b\u00030\u00032\u0006\u0010\t\u001a\u0002H\u00072\f\u0010\u0004\u001a\b\u0012\u0004\u0012\u0002H\u00020\u0005¢\u0006\u0002\u0010\n\u001a)\u0010\u000b\u001a\u0004\u0018\u0001H\f\"\u000e\b\u0000\u0010\f*\b\u0012\u0004\u0012\u0002H\f0\r*\b\u0012\u0004\u0012\u0002H\f0\u0003H\u0007¢\u0006\u0002\u0010\u000e\u001a\u0019\u0010\u000b\u001a\u0004\u0018\u00010\u000f*\b\u0012\u0004\u0012\u00020\u000f0\u0003H\u0007¢\u0006\u0002\u0010\u0010\u001a\u0019\u0010\u000b\u001a\u0004\u0018\u00010\u0011*\b\u0012\u0004\u0012\u00020\u00110\u0003H\u0007¢\u0006\u0002\u0010\u0012\u001aG\u0010\u0013\u001a\u0004\u0018\u0001H\f\"\u0004\b\u0000\u0010\f\"\u000e\b\u0001\u0010\u0002*\b\u0012\u0004\u0012\u0002H\u00020\r*\b\u0012\u0004\u0012\u0002H\f0\u00032\u0012\u0010\u0014\u001a\u000e\u0012\u0004\u0012\u0002H\f\u0012\u0004\u0012\u0002H\u00020\u0015H\u0087\bø\u0001\u0000¢\u0006\u0002\u0010\u0016\u001a;\u0010\u0017\u001a\u0004\u0018\u0001H\f\"\u0004\b\u0000\u0010\f*\b\u0012\u0004\u0012\u0002H\f0\u00032\u001a\u0010\u0018\u001a\u0016\u0012\u0006\b\u0000\u0012\u0002H\f0\u0019j\n\u0012\u0006\b\u0000\u0012\u0002H\f`\u001aH\u0007¢\u0006\u0002\u0010\u001b\u001a)\u0010\u001c\u001a\u0004\u0018\u0001H\f\"\u000e\b\u0000\u0010\f*\b\u0012\u0004\u0012\u0002H\f0\r*\b\u0012\u0004\u0012\u0002H\f0\u0003H\u0007¢\u0006\u0002\u0010\u000e\u001a\u0019\u0010\u001c\u001a\u0004\u0018\u00010\u000f*\b\u0012\u0004\u0012\u00020\u000f0\u0003H\u0007¢\u0006\u0002\u0010\u0010\u001a\u0019\u0010\u001c\u001a\u0004\u0018\u00010\u0011*\b\u0012\u0004\u0012\u00020\u00110\u0003H\u0007¢\u0006\u0002\u0010\u0012\u001aG\u0010\u001d\u001a\u0004\u0018\u0001H\f\"\u0004\b\u0000\u0010\f\"\u000e\b\u0001\u0010\u0002*\b\u0012\u0004\u0012\u0002H\u00020\r*\b\u0012\u0004\u0012\u0002H\f0\u00032\u0012\u0010\u0014\u001a\u000e\u0012\u0004\u0012\u0002H\f\u0012\u0004\u0012\u0002H\u00020\u0015H\u0087\bø\u0001\u0000¢\u0006\u0002\u0010\u0016\u001a;\u0010\u001e\u001a\u0004\u0018\u0001H\f\"\u0004\b\u0000\u0010\f*\b\u0012\u0004\u0012\u0002H\f0\u00032\u001a\u0010\u0018\u001a\u0016\u0012\u0006\b\u0000\u0012\u0002H\f0\u0019j\n\u0012\u0006\b\u0000\u0012\u0002H\f`\u001aH\u0007¢\u0006\u0002\u0010\u001b\u001a\u0016\u0010\u001f\u001a\u00020 \"\u0004\b\u0000\u0010\f*\b\u0012\u0004\u0012\u0002H\f0!\u001a5\u0010\"\u001a\u00020#\"\u0004\b\u0000\u0010\f*\b\u0012\u0004\u0012\u0002H\f0\u00032\u0012\u0010\u0014\u001a\u000e\u0012\u0004\u0012\u0002H\f\u0012\u0004\u0012\u00020#0\u0015H\u0087\bø\u0001\u0000¢\u0006\u0002\b$\u001a5\u0010\"\u001a\u00020%\"\u0004\b\u0000\u0010\f*\b\u0012\u0004\u0012\u0002H\f0\u00032\u0012\u0010\u0014\u001a\u000e\u0012\u0004\u0012\u0002H\f\u0012\u0004\u0012\u00020%0\u0015H\u0087\bø\u0001\u0000¢\u0006\u0002\b&\u001a&\u0010'\u001a\b\u0012\u0004\u0012\u0002H\f0(\"\u000e\b\u0000\u0010\f*\b\u0012\u0004\u0012\u0002H\f0\r*\b\u0012\u0004\u0012\u0002H\f0\u0003\u001a8\u0010'\u001a\b\u0012\u0004\u0012\u0002H\f0(\"\u0004\b\u0000\u0010\f*\b\u0012\u0004\u0012\u0002H\f0\u00032\u001a\u0010\u0018\u001a\u0016\u0012\u0006\b\u0000\u0012\u0002H\f0\u0019j\n\u0012\u0006\b\u0000\u0012\u0002H\f`\u001a\u0082\u0002\u0007\n\u0005\b\u009920\u0001¨\u0006)"}, d2 = {"filterIsInstance", "", "R", "", "klass", "Ljava/lang/Class;", "filterIsInstanceTo", "C", "", "destination", "(Ljava/lang/Iterable;Ljava/util/Collection;Ljava/lang/Class;)Ljava/util/Collection;", "max", "T", "", "(Ljava/lang/Iterable;)Ljava/lang/Comparable;", "", "(Ljava/lang/Iterable;)Ljava/lang/Double;", "", "(Ljava/lang/Iterable;)Ljava/lang/Float;", "maxBy", "selector", "Lkotlin/Function1;", "(Ljava/lang/Iterable;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object;", "maxWith", "comparator", "Ljava/util/Comparator;", "Lkotlin/Comparator;", "(Ljava/lang/Iterable;Ljava/util/Comparator;)Ljava/lang/Object;", "min", "minBy", "minWith", "reverse", "", "", "sumOf", "Ljava/math/BigDecimal;", "sumOfBigDecimal", "Ljava/math/BigInteger;", "sumOfBigInteger", "toSortedSet", "Ljava/util/SortedSet;", "kotlin-stdlib"}, k = 5, mv = {1, 8, 0}, xi = 49, xs = "kotlin/collections/CollectionsKt")
|
||||
/* loaded from: classes.dex */
|
||||
public class CollectionsKt___CollectionsJvmKt extends CollectionsKt__ReversedViewsKt {
|
||||
public static final <R> List<R> filterIsInstance(Iterable<?> iterable, Class<R> klass) {
|
||||
Intrinsics.checkNotNullParameter(iterable, "<this>");
|
||||
Intrinsics.checkNotNullParameter(klass, "klass");
|
||||
return (List) CollectionsKt.filterIsInstanceTo(iterable, new ArrayList(), klass);
|
||||
}
|
||||
|
||||
public static final <C extends Collection<? super R>, R> C filterIsInstanceTo(Iterable<?> iterable, C destination, Class<R> klass) {
|
||||
Intrinsics.checkNotNullParameter(iterable, "<this>");
|
||||
Intrinsics.checkNotNullParameter(destination, "destination");
|
||||
Intrinsics.checkNotNullParameter(klass, "klass");
|
||||
for (Object obj : iterable) {
|
||||
if (klass.isInstance(obj)) {
|
||||
destination.add(obj);
|
||||
}
|
||||
}
|
||||
return destination;
|
||||
}
|
||||
|
||||
public static final <T> void reverse(List<T> list) {
|
||||
Intrinsics.checkNotNullParameter(list, "<this>");
|
||||
Collections.reverse(list);
|
||||
}
|
||||
|
||||
public static final <T extends Comparable<? super T>> SortedSet<T> toSortedSet(Iterable<? extends T> iterable) {
|
||||
Intrinsics.checkNotNullParameter(iterable, "<this>");
|
||||
return (SortedSet) CollectionsKt.toCollection(iterable, new TreeSet());
|
||||
}
|
||||
|
||||
public static final <T> SortedSet<T> toSortedSet(Iterable<? extends T> iterable, Comparator<? super T> comparator) {
|
||||
Intrinsics.checkNotNullParameter(iterable, "<this>");
|
||||
Intrinsics.checkNotNullParameter(comparator, "comparator");
|
||||
return (SortedSet) CollectionsKt.toCollection(iterable, new TreeSet(comparator));
|
||||
}
|
||||
|
||||
@Deprecated(message = "Use maxOrNull instead.", replaceWith = @ReplaceWith(expression = "this.maxOrNull()", imports = {}))
|
||||
@DeprecatedSinceKotlin(errorSince = "1.5", hiddenSince = "1.6", warningSince = "1.4")
|
||||
/* renamed from: max, reason: collision with other method in class */
|
||||
public static final /* synthetic */ Double m716max(Iterable iterable) {
|
||||
Intrinsics.checkNotNullParameter(iterable, "<this>");
|
||||
return CollectionsKt.maxOrNull(iterable);
|
||||
}
|
||||
|
||||
@Deprecated(message = "Use maxOrNull instead.", replaceWith = @ReplaceWith(expression = "this.maxOrNull()", imports = {}))
|
||||
@DeprecatedSinceKotlin(errorSince = "1.5", hiddenSince = "1.6", warningSince = "1.4")
|
||||
/* renamed from: max, reason: collision with other method in class */
|
||||
public static final /* synthetic */ Float m717max(Iterable iterable) {
|
||||
Intrinsics.checkNotNullParameter(iterable, "<this>");
|
||||
return CollectionsKt.maxOrNull(iterable);
|
||||
}
|
||||
|
||||
@Deprecated(message = "Use maxOrNull instead.", replaceWith = @ReplaceWith(expression = "this.maxOrNull()", imports = {}))
|
||||
@DeprecatedSinceKotlin(errorSince = "1.5", hiddenSince = "1.6", warningSince = "1.4")
|
||||
public static final /* synthetic */ Comparable max(Iterable iterable) {
|
||||
Intrinsics.checkNotNullParameter(iterable, "<this>");
|
||||
return CollectionsKt.maxOrNull(iterable);
|
||||
}
|
||||
|
||||
@Deprecated(message = "Use maxWithOrNull instead.", replaceWith = @ReplaceWith(expression = "this.maxWithOrNull(comparator)", imports = {}))
|
||||
@DeprecatedSinceKotlin(errorSince = "1.5", hiddenSince = "1.6", warningSince = "1.4")
|
||||
public static final /* synthetic */ Object maxWith(Iterable iterable, Comparator comparator) {
|
||||
Intrinsics.checkNotNullParameter(iterable, "<this>");
|
||||
Intrinsics.checkNotNullParameter(comparator, "comparator");
|
||||
return CollectionsKt.maxWithOrNull(iterable, comparator);
|
||||
}
|
||||
|
||||
@Deprecated(message = "Use minOrNull instead.", replaceWith = @ReplaceWith(expression = "this.minOrNull()", imports = {}))
|
||||
@DeprecatedSinceKotlin(errorSince = "1.5", hiddenSince = "1.6", warningSince = "1.4")
|
||||
/* renamed from: min, reason: collision with other method in class */
|
||||
public static final /* synthetic */ Double m718min(Iterable iterable) {
|
||||
Intrinsics.checkNotNullParameter(iterable, "<this>");
|
||||
return CollectionsKt.minOrNull(iterable);
|
||||
}
|
||||
|
||||
@Deprecated(message = "Use minOrNull instead.", replaceWith = @ReplaceWith(expression = "this.minOrNull()", imports = {}))
|
||||
@DeprecatedSinceKotlin(errorSince = "1.5", hiddenSince = "1.6", warningSince = "1.4")
|
||||
/* renamed from: min, reason: collision with other method in class */
|
||||
public static final /* synthetic */ Float m719min(Iterable iterable) {
|
||||
Intrinsics.checkNotNullParameter(iterable, "<this>");
|
||||
return CollectionsKt.minOrNull(iterable);
|
||||
}
|
||||
|
||||
@Deprecated(message = "Use minOrNull instead.", replaceWith = @ReplaceWith(expression = "this.minOrNull()", imports = {}))
|
||||
@DeprecatedSinceKotlin(errorSince = "1.5", hiddenSince = "1.6", warningSince = "1.4")
|
||||
public static final /* synthetic */ Comparable min(Iterable iterable) {
|
||||
Intrinsics.checkNotNullParameter(iterable, "<this>");
|
||||
return CollectionsKt.minOrNull(iterable);
|
||||
}
|
||||
|
||||
@Deprecated(message = "Use minWithOrNull instead.", replaceWith = @ReplaceWith(expression = "this.minWithOrNull(comparator)", imports = {}))
|
||||
@DeprecatedSinceKotlin(errorSince = "1.5", hiddenSince = "1.6", warningSince = "1.4")
|
||||
public static final /* synthetic */ Object minWith(Iterable iterable, Comparator comparator) {
|
||||
Intrinsics.checkNotNullParameter(iterable, "<this>");
|
||||
Intrinsics.checkNotNullParameter(comparator, "comparator");
|
||||
return CollectionsKt.minWithOrNull(iterable, comparator);
|
||||
}
|
||||
|
||||
private static final <T> BigDecimal sumOfBigDecimal(Iterable<? extends T> iterable, Function1<? super T, ? extends BigDecimal> selector) {
|
||||
Intrinsics.checkNotNullParameter(iterable, "<this>");
|
||||
Intrinsics.checkNotNullParameter(selector, "selector");
|
||||
BigDecimal valueOf = BigDecimal.valueOf(0L);
|
||||
Intrinsics.checkNotNullExpressionValue(valueOf, "valueOf(this.toLong())");
|
||||
Iterator<? extends T> it = iterable.iterator();
|
||||
while (it.hasNext()) {
|
||||
valueOf = valueOf.add(selector.invoke(it.next()));
|
||||
Intrinsics.checkNotNullExpressionValue(valueOf, "this.add(other)");
|
||||
}
|
||||
return valueOf;
|
||||
}
|
||||
|
||||
private static final <T> BigInteger sumOfBigInteger(Iterable<? extends T> iterable, Function1<? super T, ? extends BigInteger> selector) {
|
||||
Intrinsics.checkNotNullParameter(iterable, "<this>");
|
||||
Intrinsics.checkNotNullParameter(selector, "selector");
|
||||
BigInteger valueOf = BigInteger.valueOf(0L);
|
||||
Intrinsics.checkNotNullExpressionValue(valueOf, "valueOf(this.toLong())");
|
||||
Iterator<? extends T> it = iterable.iterator();
|
||||
while (it.hasNext()) {
|
||||
valueOf = valueOf.add(selector.invoke(it.next()));
|
||||
Intrinsics.checkNotNullExpressionValue(valueOf, "this.add(other)");
|
||||
}
|
||||
return valueOf;
|
||||
}
|
||||
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
/* JADX WARN: Type inference failed for: r0v10 */
|
||||
/* JADX WARN: Type inference failed for: r0v11 */
|
||||
/* JADX WARN: Type inference failed for: r0v3, types: [java.lang.Object] */
|
||||
/* JADX WARN: Type inference failed for: r0v4 */
|
||||
/* JADX WARN: Type inference failed for: r0v5 */
|
||||
/* JADX WARN: Type inference failed for: r0v7 */
|
||||
@Deprecated(message = "Use maxByOrNull instead.", replaceWith = @ReplaceWith(expression = "this.maxByOrNull(selector)", imports = {}))
|
||||
@DeprecatedSinceKotlin(errorSince = "1.5", hiddenSince = "1.6", warningSince = "1.4")
|
||||
public static final /* synthetic */ <T, R extends Comparable<? super R>> T maxBy(Iterable<? extends T> iterable, Function1<? super T, ? extends R> selector) {
|
||||
Intrinsics.checkNotNullParameter(iterable, "<this>");
|
||||
Intrinsics.checkNotNullParameter(selector, "selector");
|
||||
Iterator<? extends T> it = iterable.iterator();
|
||||
if (!it.hasNext()) {
|
||||
return null;
|
||||
}
|
||||
T next = it.next();
|
||||
if (it.hasNext()) {
|
||||
R invoke = selector.invoke(next);
|
||||
do {
|
||||
T next2 = it.next();
|
||||
R invoke2 = selector.invoke(next2);
|
||||
next = next;
|
||||
if (invoke.compareTo(invoke2) < 0) {
|
||||
invoke = invoke2;
|
||||
next = next2;
|
||||
}
|
||||
} while (it.hasNext());
|
||||
}
|
||||
return next;
|
||||
}
|
||||
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
/* JADX WARN: Type inference failed for: r0v10 */
|
||||
/* JADX WARN: Type inference failed for: r0v11 */
|
||||
/* JADX WARN: Type inference failed for: r0v3, types: [java.lang.Object] */
|
||||
/* JADX WARN: Type inference failed for: r0v4 */
|
||||
/* JADX WARN: Type inference failed for: r0v5 */
|
||||
/* JADX WARN: Type inference failed for: r0v7 */
|
||||
@Deprecated(message = "Use minByOrNull instead.", replaceWith = @ReplaceWith(expression = "this.minByOrNull(selector)", imports = {}))
|
||||
@DeprecatedSinceKotlin(errorSince = "1.5", hiddenSince = "1.6", warningSince = "1.4")
|
||||
public static final /* synthetic */ <T, R extends Comparable<? super R>> T minBy(Iterable<? extends T> iterable, Function1<? super T, ? extends R> selector) {
|
||||
Intrinsics.checkNotNullParameter(iterable, "<this>");
|
||||
Intrinsics.checkNotNullParameter(selector, "selector");
|
||||
Iterator<? extends T> it = iterable.iterator();
|
||||
if (!it.hasNext()) {
|
||||
return null;
|
||||
}
|
||||
T next = it.next();
|
||||
if (it.hasNext()) {
|
||||
R invoke = selector.invoke(next);
|
||||
do {
|
||||
T next2 = it.next();
|
||||
R invoke2 = selector.invoke(next2);
|
||||
next = next;
|
||||
if (invoke.compareTo(invoke2) > 0) {
|
||||
invoke = invoke2;
|
||||
next = next2;
|
||||
}
|
||||
} while (it.hasNext());
|
||||
}
|
||||
return next;
|
||||
}
|
||||
}
|
File diff suppressed because one or more lines are too long
28
02-Easy5/E5/sources/kotlin/collections/DoubleIterator.java
Normal file
28
02-Easy5/E5/sources/kotlin/collections/DoubleIterator.java
Normal file
@ -0,0 +1,28 @@
|
||||
package kotlin.collections;
|
||||
|
||||
import java.util.Iterator;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.internal.markers.KMappedMarker;
|
||||
|
||||
/* compiled from: PrimitiveIterators.kt */
|
||||
@Metadata(d1 = {"\u0000\u0010\n\u0002\u0018\u0002\n\u0002\u0010(\n\u0002\u0010\u0006\n\u0002\b\u0005\b&\u0018\u00002\b\u0012\u0004\u0012\u00020\u00020\u0001B\u0005¢\u0006\u0002\u0010\u0003J\u000e\u0010\u0004\u001a\u00020\u0002H\u0086\u0002¢\u0006\u0002\u0010\u0005J\b\u0010\u0006\u001a\u00020\u0002H&¨\u0006\u0007"}, d2 = {"Lkotlin/collections/DoubleIterator;", "", "", "()V", "next", "()Ljava/lang/Double;", "nextDouble", "kotlin-stdlib"}, k = 1, mv = {1, 8, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public abstract class DoubleIterator implements Iterator<Double>, KMappedMarker {
|
||||
public abstract double nextDouble();
|
||||
|
||||
@Override // java.util.Iterator
|
||||
public void remove() {
|
||||
throw new UnsupportedOperationException("Operation is not supported for read-only collection");
|
||||
}
|
||||
|
||||
@Override // java.util.Iterator
|
||||
public /* bridge */ /* synthetic */ Double next() {
|
||||
return Double.valueOf(nextDouble());
|
||||
}
|
||||
|
||||
/* JADX WARN: Can't rename method to resolve collision */
|
||||
@Override // java.util.Iterator
|
||||
public final Double next() {
|
||||
return Double.valueOf(nextDouble());
|
||||
}
|
||||
}
|
69
02-Easy5/E5/sources/kotlin/collections/EmptyIterator.java
Normal file
69
02-Easy5/E5/sources/kotlin/collections/EmptyIterator.java
Normal file
@ -0,0 +1,69 @@
|
||||
package kotlin.collections;
|
||||
|
||||
import java.util.ListIterator;
|
||||
import java.util.NoSuchElementException;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.internal.markers.KMappedMarker;
|
||||
|
||||
/* compiled from: Collections.kt */
|
||||
@Metadata(d1 = {"\u0000 \n\u0002\u0018\u0002\n\u0002\u0010*\n\u0002\u0010\u0001\n\u0002\b\u0002\n\u0002\u0010\u000b\n\u0002\b\u0003\n\u0002\u0010\b\n\u0002\b\u0003\bÀ\u0002\u0018\u00002\b\u0012\u0004\u0012\u00020\u00020\u0001B\u0007\b\u0002¢\u0006\u0002\u0010\u0003J\t\u0010\u0004\u001a\u00020\u0005H\u0096\u0002J\b\u0010\u0006\u001a\u00020\u0005H\u0016J\t\u0010\u0007\u001a\u00020\u0002H\u0096\u0002J\b\u0010\b\u001a\u00020\tH\u0016J\b\u0010\n\u001a\u00020\u0002H\u0016J\b\u0010\u000b\u001a\u00020\tH\u0016¨\u0006\f"}, d2 = {"Lkotlin/collections/EmptyIterator;", "", "", "()V", "hasNext", "", "hasPrevious", "next", "nextIndex", "", "previous", "previousIndex", "kotlin-stdlib"}, k = 1, mv = {1, 8, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public final class EmptyIterator implements ListIterator, KMappedMarker {
|
||||
public static final EmptyIterator INSTANCE = new EmptyIterator();
|
||||
|
||||
@Override // java.util.ListIterator
|
||||
public /* bridge */ /* synthetic */ void add(Object obj) {
|
||||
throw new UnsupportedOperationException("Operation is not supported for read-only collection");
|
||||
}
|
||||
|
||||
public void add(Void r2) {
|
||||
throw new UnsupportedOperationException("Operation is not supported for read-only collection");
|
||||
}
|
||||
|
||||
@Override // java.util.ListIterator, java.util.Iterator
|
||||
public boolean hasNext() {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override // java.util.ListIterator
|
||||
public boolean hasPrevious() {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override // java.util.ListIterator
|
||||
public int nextIndex() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
@Override // java.util.ListIterator
|
||||
public int previousIndex() {
|
||||
return -1;
|
||||
}
|
||||
|
||||
@Override // java.util.ListIterator, java.util.Iterator
|
||||
public void remove() {
|
||||
throw new UnsupportedOperationException("Operation is not supported for read-only collection");
|
||||
}
|
||||
|
||||
@Override // java.util.ListIterator
|
||||
public /* bridge */ /* synthetic */ void set(Object obj) {
|
||||
throw new UnsupportedOperationException("Operation is not supported for read-only collection");
|
||||
}
|
||||
|
||||
public void set(Void r2) {
|
||||
throw new UnsupportedOperationException("Operation is not supported for read-only collection");
|
||||
}
|
||||
|
||||
private EmptyIterator() {
|
||||
}
|
||||
|
||||
@Override // java.util.ListIterator, java.util.Iterator
|
||||
public Void next() {
|
||||
throw new NoSuchElementException();
|
||||
}
|
||||
|
||||
@Override // java.util.ListIterator
|
||||
public Void previous() {
|
||||
throw new NoSuchElementException();
|
||||
}
|
||||
}
|
209
02-Easy5/E5/sources/kotlin/collections/EmptyList.java
Normal file
209
02-Easy5/E5/sources/kotlin/collections/EmptyList.java
Normal file
@ -0,0 +1,209 @@
|
||||
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.Metadata;
|
||||
import kotlin.jvm.internal.CollectionToArray;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.jvm.internal.markers.KMappedMarker;
|
||||
|
||||
/* compiled from: Collections.kt */
|
||||
@Metadata(d1 = {"\u0000\\\n\u0002\u0018\u0002\n\u0002\u0010 \n\u0002\u0010\u0001\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\t\n\u0000\n\u0002\u0010\b\n\u0002\b\u0003\n\u0002\u0010\u000b\n\u0002\b\u0003\n\u0002\u0010\u001e\n\u0002\b\u0002\n\u0002\u0010\u0000\n\u0002\b\u0006\n\u0002\u0010(\n\u0002\b\u0002\n\u0002\u0010*\n\u0002\b\u0005\n\u0002\u0010\u000e\n\u0000\bÀ\u0002\u0018\u00002\b\u0012\u0004\u0012\u00020\u00020\u00012\u00060\u0003j\u0002`\u00042\u00060\u0005j\u0002`\u0006B\u0007\b\u0002¢\u0006\u0002\u0010\u0007J\u0011\u0010\u000e\u001a\u00020\u000f2\u0006\u0010\u0010\u001a\u00020\u0002H\u0096\u0002J\u0016\u0010\u0011\u001a\u00020\u000f2\f\u0010\u0012\u001a\b\u0012\u0004\u0012\u00020\u00020\u0013H\u0016J\u0013\u0010\u0014\u001a\u00020\u000f2\b\u0010\u0015\u001a\u0004\u0018\u00010\u0016H\u0096\u0002J\u0011\u0010\u0017\u001a\u00020\u00022\u0006\u0010\u0018\u001a\u00020\u000bH\u0096\u0002J\b\u0010\u0019\u001a\u00020\u000bH\u0016J\u0010\u0010\u001a\u001a\u00020\u000b2\u0006\u0010\u0010\u001a\u00020\u0002H\u0016J\b\u0010\u001b\u001a\u00020\u000fH\u0016J\u000f\u0010\u001c\u001a\b\u0012\u0004\u0012\u00020\u00020\u001dH\u0096\u0002J\u0010\u0010\u001e\u001a\u00020\u000b2\u0006\u0010\u0010\u001a\u00020\u0002H\u0016J\u000e\u0010\u001f\u001a\b\u0012\u0004\u0012\u00020\u00020 H\u0016J\u0016\u0010\u001f\u001a\b\u0012\u0004\u0012\u00020\u00020 2\u0006\u0010\u0018\u001a\u00020\u000bH\u0016J\b\u0010!\u001a\u00020\u0016H\u0002J\u001e\u0010\"\u001a\b\u0012\u0004\u0012\u00020\u00020\u00012\u0006\u0010#\u001a\u00020\u000b2\u0006\u0010$\u001a\u00020\u000bH\u0016J\b\u0010%\u001a\u00020&H\u0016R\u000e\u0010\b\u001a\u00020\tX\u0082T¢\u0006\u0002\n\u0000R\u0014\u0010\n\u001a\u00020\u000b8VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b\f\u0010\r¨\u0006'"}, d2 = {"Lkotlin/collections/EmptyList;", "", "", "Ljava/io/Serializable;", "Lkotlin/io/Serializable;", "Ljava/util/RandomAccess;", "Lkotlin/collections/RandomAccess;", "()V", "serialVersionUID", "", "size", "", "getSize", "()I", "contains", "", "element", "containsAll", "elements", "", "equals", "other", "", "get", "index", "hashCode", "indexOf", "isEmpty", "iterator", "", "lastIndexOf", "listIterator", "", "readResolve", "subList", "fromIndex", "toIndex", "toString", "", "kotlin-stdlib"}, k = 1, mv = {1, 8, 0}, xi = 48)
|
||||
/* loaded from: classes.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");
|
||||
}
|
||||
|
||||
public void add(int i, Void r2) {
|
||||
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");
|
||||
}
|
||||
|
||||
public boolean add(Void r2) {
|
||||
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
|
||||
public Void 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");
|
||||
}
|
||||
|
||||
public Void set(int i, Void r2) {
|
||||
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 <T> T[] toArray(T[] array) {
|
||||
Intrinsics.checkNotNullParameter(array, "array");
|
||||
return (T[]) CollectionToArray.toArray(this, array);
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return "[]";
|
||||
}
|
||||
|
||||
private EmptyList() {
|
||||
}
|
||||
|
||||
@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 other) {
|
||||
return (other instanceof List) && ((List) other).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 index) {
|
||||
throw new IndexOutOfBoundsException("Empty list doesn't contain element at index " + index + '.');
|
||||
}
|
||||
|
||||
@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 index) {
|
||||
if (index != 0) {
|
||||
throw new IndexOutOfBoundsException("Index: " + index);
|
||||
}
|
||||
return EmptyIterator.INSTANCE;
|
||||
}
|
||||
|
||||
@Override // java.util.List
|
||||
public List subList(int fromIndex, int toIndex) {
|
||||
if (fromIndex == 0 && toIndex == 0) {
|
||||
return this;
|
||||
}
|
||||
throw new IndexOutOfBoundsException("fromIndex: " + fromIndex + ", toIndex: " + toIndex);
|
||||
}
|
||||
}
|
126
02-Easy5/E5/sources/kotlin/collections/EmptyMap.java
Normal file
126
02-Easy5/E5/sources/kotlin/collections/EmptyMap.java
Normal file
@ -0,0 +1,126 @@
|
||||
package kotlin.collections;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Collection;
|
||||
import java.util.Map;
|
||||
import java.util.Set;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.jvm.internal.markers.KMappedMarker;
|
||||
|
||||
/* compiled from: Maps.kt */
|
||||
@Metadata(d1 = {"\u0000L\n\u0002\u0018\u0002\n\u0002\u0010$\n\u0002\u0010\u0000\n\u0002\u0010\u0001\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\"\n\u0002\u0010&\n\u0002\b\u0005\n\u0002\u0010\t\n\u0000\n\u0002\u0010\b\n\u0002\b\u0003\n\u0002\u0010\u001e\n\u0002\b\u0003\n\u0002\u0010\u000b\n\u0002\b\n\n\u0002\u0010\u000e\n\u0000\bÂ\u0002\u0018\u00002\u0010\u0012\u0006\u0012\u0004\u0018\u00010\u0002\u0012\u0004\u0012\u00020\u00030\u00012\u00060\u0004j\u0002`\u0005B\u0007\b\u0002¢\u0006\u0002\u0010\u0006J\u0012\u0010\u0018\u001a\u00020\u00192\b\u0010\u001a\u001a\u0004\u0018\u00010\u0002H\u0016J\u0010\u0010\u001b\u001a\u00020\u00192\u0006\u0010\u001c\u001a\u00020\u0003H\u0016J\u0013\u0010\u001d\u001a\u00020\u00192\b\u0010\u001e\u001a\u0004\u0018\u00010\u0002H\u0096\u0002J\u0015\u0010\u001f\u001a\u0004\u0018\u00010\u00032\b\u0010\u001a\u001a\u0004\u0018\u00010\u0002H\u0096\u0002J\b\u0010 \u001a\u00020\u0011H\u0016J\b\u0010!\u001a\u00020\u0019H\u0016J\b\u0010\"\u001a\u00020\u0002H\u0002J\b\u0010#\u001a\u00020$H\u0016R(\u0010\u0007\u001a\u0016\u0012\u0012\u0012\u0010\u0012\u0006\u0012\u0004\u0018\u00010\u0002\u0012\u0004\u0012\u00020\u00030\t0\b8VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b\n\u0010\u000bR\u001c\u0010\f\u001a\n\u0012\u0006\u0012\u0004\u0018\u00010\u00020\b8VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b\r\u0010\u000bR\u000e\u0010\u000e\u001a\u00020\u000fX\u0082T¢\u0006\u0002\n\u0000R\u0014\u0010\u0010\u001a\u00020\u00118VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b\u0012\u0010\u0013R\u001a\u0010\u0014\u001a\b\u0012\u0004\u0012\u00020\u00030\u00158VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b\u0016\u0010\u0017¨\u0006%"}, d2 = {"Lkotlin/collections/EmptyMap;", "", "", "", "Ljava/io/Serializable;", "Lkotlin/io/Serializable;", "()V", "entries", "", "", "getEntries", "()Ljava/util/Set;", "keys", "getKeys", "serialVersionUID", "", "size", "", "getSize", "()I", "values", "", "getValues", "()Ljava/util/Collection;", "containsKey", "", "key", "containsValue", "value", "equals", "other", "get", "hashCode", "isEmpty", "readResolve", "toString", "", "kotlin-stdlib"}, k = 1, mv = {1, 8, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
final class EmptyMap implements Map, Serializable, KMappedMarker {
|
||||
public static final EmptyMap INSTANCE = new EmptyMap();
|
||||
private static final long serialVersionUID = 8246714829545688274L;
|
||||
|
||||
private final Object readResolve() {
|
||||
return INSTANCE;
|
||||
}
|
||||
|
||||
@Override // java.util.Map
|
||||
public void clear() {
|
||||
throw new UnsupportedOperationException("Operation is not supported for read-only collection");
|
||||
}
|
||||
|
||||
@Override // java.util.Map
|
||||
public boolean containsKey(Object key) {
|
||||
return false;
|
||||
}
|
||||
|
||||
public boolean containsValue(Void value) {
|
||||
Intrinsics.checkNotNullParameter(value, "value");
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override // java.util.Map
|
||||
public Void get(Object key) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public int getSize() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
@Override // java.util.Map
|
||||
public int hashCode() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
@Override // java.util.Map
|
||||
public boolean isEmpty() {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override // java.util.Map
|
||||
public /* bridge */ /* synthetic */ Object put(Object obj, Object obj2) {
|
||||
throw new UnsupportedOperationException("Operation is not supported for read-only collection");
|
||||
}
|
||||
|
||||
public Void put(Object obj, Void r2) {
|
||||
throw new UnsupportedOperationException("Operation is not supported for read-only collection");
|
||||
}
|
||||
|
||||
@Override // java.util.Map
|
||||
public void putAll(Map map) {
|
||||
throw new UnsupportedOperationException("Operation is not supported for read-only collection");
|
||||
}
|
||||
|
||||
@Override // java.util.Map
|
||||
public Void remove(Object obj) {
|
||||
throw new UnsupportedOperationException("Operation is not supported for read-only collection");
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return "{}";
|
||||
}
|
||||
|
||||
private EmptyMap() {
|
||||
}
|
||||
|
||||
@Override // java.util.Map
|
||||
public final /* bridge */ boolean containsValue(Object obj) {
|
||||
if (obj instanceof Void) {
|
||||
return containsValue((Void) obj);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override // java.util.Map
|
||||
public final /* bridge */ Set<Map.Entry> entrySet() {
|
||||
return getEntries();
|
||||
}
|
||||
|
||||
@Override // java.util.Map
|
||||
public final /* bridge */ Set<Object> keySet() {
|
||||
return getKeys();
|
||||
}
|
||||
|
||||
@Override // java.util.Map
|
||||
public final /* bridge */ int size() {
|
||||
return getSize();
|
||||
}
|
||||
|
||||
@Override // java.util.Map
|
||||
public final /* bridge */ Collection values() {
|
||||
return getValues();
|
||||
}
|
||||
|
||||
@Override // java.util.Map
|
||||
public boolean equals(Object other) {
|
||||
return (other instanceof Map) && ((Map) other).isEmpty();
|
||||
}
|
||||
|
||||
public Set<Map.Entry> getEntries() {
|
||||
return EmptySet.INSTANCE;
|
||||
}
|
||||
|
||||
public Set<Object> getKeys() {
|
||||
return EmptySet.INSTANCE;
|
||||
}
|
||||
|
||||
public Collection getValues() {
|
||||
return EmptyList.INSTANCE;
|
||||
}
|
||||
}
|
122
02-Easy5/E5/sources/kotlin/collections/EmptySet.java
Normal file
122
02-Easy5/E5/sources/kotlin/collections/EmptySet.java
Normal file
@ -0,0 +1,122 @@
|
||||
package kotlin.collections;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Collection;
|
||||
import java.util.Iterator;
|
||||
import java.util.Set;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.internal.CollectionToArray;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.jvm.internal.markers.KMappedMarker;
|
||||
|
||||
/* compiled from: Sets.kt */
|
||||
@Metadata(d1 = {"\u0000L\n\u0002\u0018\u0002\n\u0002\u0010\"\n\u0002\u0010\u0001\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\t\n\u0000\n\u0002\u0010\b\n\u0002\b\u0003\n\u0002\u0010\u000b\n\u0002\b\u0003\n\u0002\u0010\u001e\n\u0002\b\u0002\n\u0002\u0010\u0000\n\u0002\b\u0003\n\u0002\u0010(\n\u0002\b\u0002\n\u0002\u0010\u000e\n\u0000\bÀ\u0002\u0018\u00002\b\u0012\u0004\u0012\u00020\u00020\u00012\u00060\u0003j\u0002`\u0004B\u0007\b\u0002¢\u0006\u0002\u0010\u0005J\u0011\u0010\f\u001a\u00020\r2\u0006\u0010\u000e\u001a\u00020\u0002H\u0096\u0002J\u0016\u0010\u000f\u001a\u00020\r2\f\u0010\u0010\u001a\b\u0012\u0004\u0012\u00020\u00020\u0011H\u0016J\u0013\u0010\u0012\u001a\u00020\r2\b\u0010\u0013\u001a\u0004\u0018\u00010\u0014H\u0096\u0002J\b\u0010\u0015\u001a\u00020\tH\u0016J\b\u0010\u0016\u001a\u00020\rH\u0016J\u000f\u0010\u0017\u001a\b\u0012\u0004\u0012\u00020\u00020\u0018H\u0096\u0002J\b\u0010\u0019\u001a\u00020\u0014H\u0002J\b\u0010\u001a\u001a\u00020\u001bH\u0016R\u000e\u0010\u0006\u001a\u00020\u0007X\u0082T¢\u0006\u0002\n\u0000R\u0014\u0010\b\u001a\u00020\t8VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b\n\u0010\u000b¨\u0006\u001c"}, d2 = {"Lkotlin/collections/EmptySet;", "", "", "Ljava/io/Serializable;", "Lkotlin/io/Serializable;", "()V", "serialVersionUID", "", "size", "", "getSize", "()I", "contains", "", "element", "containsAll", "elements", "", "equals", "other", "", "hashCode", "isEmpty", "iterator", "", "readResolve", "toString", "", "kotlin-stdlib"}, k = 1, mv = {1, 8, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public final class EmptySet implements Set, Serializable, KMappedMarker {
|
||||
public static final EmptySet INSTANCE = new EmptySet();
|
||||
private static final long serialVersionUID = 3406603774387020532L;
|
||||
|
||||
private final Object readResolve() {
|
||||
return INSTANCE;
|
||||
}
|
||||
|
||||
@Override // java.util.Set, java.util.Collection
|
||||
public /* bridge */ /* synthetic */ boolean add(Object obj) {
|
||||
throw new UnsupportedOperationException("Operation is not supported for read-only collection");
|
||||
}
|
||||
|
||||
public boolean add(Void r2) {
|
||||
throw new UnsupportedOperationException("Operation is not supported for read-only collection");
|
||||
}
|
||||
|
||||
@Override // java.util.Set, java.util.Collection
|
||||
public boolean addAll(Collection collection) {
|
||||
throw new UnsupportedOperationException("Operation is not supported for read-only collection");
|
||||
}
|
||||
|
||||
@Override // java.util.Set, 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.Set, java.util.Collection
|
||||
public int hashCode() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
@Override // java.util.Set, java.util.Collection
|
||||
public boolean isEmpty() {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override // java.util.Set, java.util.Collection
|
||||
public boolean remove(Object obj) {
|
||||
throw new UnsupportedOperationException("Operation is not supported for read-only collection");
|
||||
}
|
||||
|
||||
@Override // java.util.Set, java.util.Collection
|
||||
public boolean removeAll(Collection collection) {
|
||||
throw new UnsupportedOperationException("Operation is not supported for read-only collection");
|
||||
}
|
||||
|
||||
@Override // java.util.Set, java.util.Collection
|
||||
public boolean retainAll(Collection collection) {
|
||||
throw new UnsupportedOperationException("Operation is not supported for read-only collection");
|
||||
}
|
||||
|
||||
@Override // java.util.Set, java.util.Collection
|
||||
public Object[] toArray() {
|
||||
return CollectionToArray.toArray(this);
|
||||
}
|
||||
|
||||
@Override // java.util.Set, java.util.Collection
|
||||
public <T> T[] toArray(T[] array) {
|
||||
Intrinsics.checkNotNullParameter(array, "array");
|
||||
return (T[]) CollectionToArray.toArray(this, array);
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return "[]";
|
||||
}
|
||||
|
||||
private EmptySet() {
|
||||
}
|
||||
|
||||
@Override // java.util.Set, java.util.Collection
|
||||
public final /* bridge */ boolean contains(Object obj) {
|
||||
if (obj instanceof Void) {
|
||||
return contains((Void) obj);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override // java.util.Set, java.util.Collection
|
||||
public final /* bridge */ int size() {
|
||||
return getSize();
|
||||
}
|
||||
|
||||
@Override // java.util.Set, java.util.Collection
|
||||
public boolean equals(Object other) {
|
||||
return (other instanceof Set) && ((Set) other).isEmpty();
|
||||
}
|
||||
|
||||
@Override // java.util.Set, java.util.Collection
|
||||
public boolean containsAll(Collection elements) {
|
||||
Intrinsics.checkNotNullParameter(elements, "elements");
|
||||
return elements.isEmpty();
|
||||
}
|
||||
|
||||
@Override // java.util.Set, java.util.Collection, java.lang.Iterable
|
||||
public Iterator iterator() {
|
||||
return EmptyIterator.INSTANCE;
|
||||
}
|
||||
}
|
28
02-Easy5/E5/sources/kotlin/collections/FloatIterator.java
Normal file
28
02-Easy5/E5/sources/kotlin/collections/FloatIterator.java
Normal file
@ -0,0 +1,28 @@
|
||||
package kotlin.collections;
|
||||
|
||||
import java.util.Iterator;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.internal.markers.KMappedMarker;
|
||||
|
||||
/* compiled from: PrimitiveIterators.kt */
|
||||
@Metadata(d1 = {"\u0000\u0010\n\u0002\u0018\u0002\n\u0002\u0010(\n\u0002\u0010\u0007\n\u0002\b\u0005\b&\u0018\u00002\b\u0012\u0004\u0012\u00020\u00020\u0001B\u0005¢\u0006\u0002\u0010\u0003J\u000e\u0010\u0004\u001a\u00020\u0002H\u0086\u0002¢\u0006\u0002\u0010\u0005J\b\u0010\u0006\u001a\u00020\u0002H&¨\u0006\u0007"}, d2 = {"Lkotlin/collections/FloatIterator;", "", "", "()V", "next", "()Ljava/lang/Float;", "nextFloat", "kotlin-stdlib"}, k = 1, mv = {1, 8, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public abstract class FloatIterator implements Iterator<Float>, KMappedMarker {
|
||||
public abstract float nextFloat();
|
||||
|
||||
@Override // java.util.Iterator
|
||||
public void remove() {
|
||||
throw new UnsupportedOperationException("Operation is not supported for read-only collection");
|
||||
}
|
||||
|
||||
@Override // java.util.Iterator
|
||||
public /* bridge */ /* synthetic */ Float next() {
|
||||
return Float.valueOf(nextFloat());
|
||||
}
|
||||
|
||||
/* JADX WARN: Can't rename method to resolve collision */
|
||||
@Override // java.util.Iterator
|
||||
public final Float next() {
|
||||
return Float.valueOf(nextFloat());
|
||||
}
|
||||
}
|
13
02-Easy5/E5/sources/kotlin/collections/Grouping.java
Normal file
13
02-Easy5/E5/sources/kotlin/collections/Grouping.java
Normal file
@ -0,0 +1,13 @@
|
||||
package kotlin.collections;
|
||||
|
||||
import java.util.Iterator;
|
||||
import kotlin.Metadata;
|
||||
|
||||
/* compiled from: Grouping.kt */
|
||||
@Metadata(d1 = {"\u0000\u0016\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u0000\n\u0002\b\u0004\n\u0002\u0010(\n\u0000\bg\u0018\u0000*\u0004\b\u0000\u0010\u0001*\u0006\b\u0001\u0010\u0002 \u00012\u00020\u0003J\u0015\u0010\u0004\u001a\u00028\u00012\u0006\u0010\u0005\u001a\u00028\u0000H&¢\u0006\u0002\u0010\u0006J\u000e\u0010\u0007\u001a\b\u0012\u0004\u0012\u00028\u00000\bH&¨\u0006\t"}, d2 = {"Lkotlin/collections/Grouping;", "T", "K", "", "keyOf", "element", "(Ljava/lang/Object;)Ljava/lang/Object;", "sourceIterator", "", "kotlin-stdlib"}, k = 1, mv = {1, 8, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public interface Grouping<T, K> {
|
||||
K keyOf(T element);
|
||||
|
||||
Iterator<T> sourceIterator();
|
||||
}
|
10
02-Easy5/E5/sources/kotlin/collections/GroupingKt.java
Normal file
10
02-Easy5/E5/sources/kotlin/collections/GroupingKt.java
Normal file
@ -0,0 +1,10 @@
|
||||
package kotlin.collections;
|
||||
|
||||
import kotlin.Metadata;
|
||||
|
||||
@Metadata(d1 = {"kotlin/collections/GroupingKt__GroupingJVMKt", "kotlin/collections/GroupingKt__GroupingKt"}, k = 4, mv = {1, 8, 0}, xi = 49)
|
||||
/* loaded from: classes.dex */
|
||||
public final class GroupingKt extends GroupingKt__GroupingKt {
|
||||
private GroupingKt() {
|
||||
}
|
||||
}
|
@ -0,0 +1,48 @@
|
||||
package kotlin.collections;
|
||||
|
||||
import java.util.Iterator;
|
||||
import java.util.LinkedHashMap;
|
||||
import java.util.Map;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.functions.Function1;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.jvm.internal.Ref;
|
||||
import kotlin.jvm.internal.TypeIntrinsics;
|
||||
|
||||
/* compiled from: GroupingJVM.kt */
|
||||
@Metadata(d1 = {"\u0000&\n\u0000\n\u0002\u0010$\n\u0000\n\u0002\u0010\b\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010%\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\u0010&\n\u0000\u001a0\u0010\u0000\u001a\u000e\u0012\u0004\u0012\u0002H\u0002\u0012\u0004\u0012\u00020\u00030\u0001\"\u0004\b\u0000\u0010\u0004\"\u0004\b\u0001\u0010\u0002*\u000e\u0012\u0004\u0012\u0002H\u0004\u0012\u0004\u0012\u0002H\u00020\u0005H\u0007\u001aZ\u0010\u0006\u001a\u000e\u0012\u0004\u0012\u0002H\u0002\u0012\u0004\u0012\u0002H\b0\u0007\"\u0004\b\u0000\u0010\u0002\"\u0004\b\u0001\u0010\t\"\u0004\b\u0002\u0010\b*\u000e\u0012\u0004\u0012\u0002H\u0002\u0012\u0004\u0012\u0002H\t0\u00072\u001e\u0010\n\u001a\u001a\u0012\u0010\u0012\u000e\u0012\u0004\u0012\u0002H\u0002\u0012\u0004\u0012\u0002H\t0\f\u0012\u0004\u0012\u0002H\b0\u000bH\u0081\bø\u0001\u0000\u0082\u0002\u0007\n\u0005\b\u009920\u0001¨\u0006\r"}, d2 = {"eachCount", "", "K", "", "T", "Lkotlin/collections/Grouping;", "mapValuesInPlace", "", "R", "V", "f", "Lkotlin/Function1;", "", "kotlin-stdlib"}, k = 5, mv = {1, 8, 0}, xi = 49, xs = "kotlin/collections/GroupingKt")
|
||||
/* loaded from: classes.dex */
|
||||
class GroupingKt__GroupingJVMKt {
|
||||
public static final <T, K> Map<K, Integer> eachCount(Grouping<T, ? extends K> grouping) {
|
||||
Intrinsics.checkNotNullParameter(grouping, "<this>");
|
||||
LinkedHashMap linkedHashMap = new LinkedHashMap();
|
||||
Iterator<T> sourceIterator = grouping.sourceIterator();
|
||||
while (sourceIterator.hasNext()) {
|
||||
K keyOf = grouping.keyOf(sourceIterator.next());
|
||||
Object obj = linkedHashMap.get(keyOf);
|
||||
if (obj == null && !linkedHashMap.containsKey(keyOf)) {
|
||||
obj = new Ref.IntRef();
|
||||
}
|
||||
Ref.IntRef intRef = (Ref.IntRef) obj;
|
||||
intRef.element++;
|
||||
linkedHashMap.put(keyOf, intRef);
|
||||
}
|
||||
for (Map.Entry entry : linkedHashMap.entrySet()) {
|
||||
Intrinsics.checkNotNull(entry, "null cannot be cast to non-null type kotlin.collections.MutableMap.MutableEntry<K of kotlin.collections.GroupingKt__GroupingJVMKt.mapValuesInPlace$lambda$4, R of kotlin.collections.GroupingKt__GroupingJVMKt.mapValuesInPlace$lambda$4>");
|
||||
TypeIntrinsics.asMutableMapEntry(entry).setValue(Integer.valueOf(((Ref.IntRef) entry.getValue()).element));
|
||||
}
|
||||
return TypeIntrinsics.asMutableMap(linkedHashMap);
|
||||
}
|
||||
|
||||
private static final <K, V, R> Map<K, R> mapValuesInPlace(Map<K, V> map, Function1<? super Map.Entry<? extends K, ? extends V>, ? extends R> f) {
|
||||
Intrinsics.checkNotNullParameter(map, "<this>");
|
||||
Intrinsics.checkNotNullParameter(f, "f");
|
||||
Iterator<T> it = map.entrySet().iterator();
|
||||
while (it.hasNext()) {
|
||||
Map.Entry entry = (Map.Entry) it.next();
|
||||
Intrinsics.checkNotNull(entry, "null cannot be cast to non-null type kotlin.collections.MutableMap.MutableEntry<K of kotlin.collections.GroupingKt__GroupingJVMKt.mapValuesInPlace$lambda$4, R of kotlin.collections.GroupingKt__GroupingJVMKt.mapValuesInPlace$lambda$4>");
|
||||
TypeIntrinsics.asMutableMapEntry(entry).setValue(f.invoke(entry));
|
||||
}
|
||||
return TypeIntrinsics.asMutableMap(map);
|
||||
}
|
||||
}
|
File diff suppressed because one or more lines are too long
70
02-Easy5/E5/sources/kotlin/collections/IndexedValue.java
Normal file
70
02-Easy5/E5/sources/kotlin/collections/IndexedValue.java
Normal file
@ -0,0 +1,70 @@
|
||||
package kotlin.collections;
|
||||
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
|
||||
/* compiled from: IndexedValue.kt */
|
||||
@Metadata(d1 = {"\u0000\"\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\b\n\u0002\b\f\n\u0002\u0010\u000b\n\u0002\b\u0003\n\u0002\u0010\u000e\n\u0000\b\u0086\b\u0018\u0000*\u0006\b\u0000\u0010\u0001 \u00012\u00020\u0002B\u0015\u0012\u0006\u0010\u0003\u001a\u00020\u0004\u0012\u0006\u0010\u0005\u001a\u00028\u0000¢\u0006\u0002\u0010\u0006J\t\u0010\f\u001a\u00020\u0004HÆ\u0003J\u000e\u0010\r\u001a\u00028\u0000HÆ\u0003¢\u0006\u0002\u0010\nJ(\u0010\u000e\u001a\b\u0012\u0004\u0012\u00028\u00000\u00002\b\b\u0002\u0010\u0003\u001a\u00020\u00042\b\b\u0002\u0010\u0005\u001a\u00028\u0000HÆ\u0001¢\u0006\u0002\u0010\u000fJ\u0013\u0010\u0010\u001a\u00020\u00112\b\u0010\u0012\u001a\u0004\u0018\u00010\u0002HÖ\u0003J\t\u0010\u0013\u001a\u00020\u0004HÖ\u0001J\t\u0010\u0014\u001a\u00020\u0015HÖ\u0001R\u0011\u0010\u0003\u001a\u00020\u0004¢\u0006\b\n\u0000\u001a\u0004\b\u0007\u0010\bR\u0013\u0010\u0005\u001a\u00028\u0000¢\u0006\n\n\u0002\u0010\u000b\u001a\u0004\b\t\u0010\n¨\u0006\u0016"}, d2 = {"Lkotlin/collections/IndexedValue;", "T", "", "index", "", "value", "(ILjava/lang/Object;)V", "getIndex", "()I", "getValue", "()Ljava/lang/Object;", "Ljava/lang/Object;", "component1", "component2", "copy", "(ILjava/lang/Object;)Lkotlin/collections/IndexedValue;", "equals", "", "other", "hashCode", "toString", "", "kotlin-stdlib"}, k = 1, mv = {1, 8, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public final /* data */ class IndexedValue<T> {
|
||||
private final int index;
|
||||
private final T value;
|
||||
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
public static /* synthetic */ IndexedValue copy$default(IndexedValue indexedValue, int i, Object obj, int i2, Object obj2) {
|
||||
if ((i2 & 1) != 0) {
|
||||
i = indexedValue.index;
|
||||
}
|
||||
if ((i2 & 2) != 0) {
|
||||
obj = indexedValue.value;
|
||||
}
|
||||
return indexedValue.copy(i, obj);
|
||||
}
|
||||
|
||||
/* renamed from: component1, reason: from getter */
|
||||
public final int getIndex() {
|
||||
return this.index;
|
||||
}
|
||||
|
||||
public final T component2() {
|
||||
return this.value;
|
||||
}
|
||||
|
||||
public final IndexedValue<T> copy(int index, T value) {
|
||||
return new IndexedValue<>(index, value);
|
||||
}
|
||||
|
||||
public boolean equals(Object other) {
|
||||
if (this == other) {
|
||||
return true;
|
||||
}
|
||||
if (!(other instanceof IndexedValue)) {
|
||||
return false;
|
||||
}
|
||||
IndexedValue indexedValue = (IndexedValue) other;
|
||||
return this.index == indexedValue.index && Intrinsics.areEqual(this.value, indexedValue.value);
|
||||
}
|
||||
|
||||
public final int getIndex() {
|
||||
return this.index;
|
||||
}
|
||||
|
||||
public final T getValue() {
|
||||
return this.value;
|
||||
}
|
||||
|
||||
public int hashCode() {
|
||||
int i = this.index * 31;
|
||||
T t = this.value;
|
||||
return i + (t == null ? 0 : t.hashCode());
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return "IndexedValue(index=" + this.index + ", value=" + this.value + ')';
|
||||
}
|
||||
|
||||
public IndexedValue(int i, T t) {
|
||||
this.index = i;
|
||||
this.value = t;
|
||||
}
|
||||
}
|
25
02-Easy5/E5/sources/kotlin/collections/IndexingIterable.java
Normal file
25
02-Easy5/E5/sources/kotlin/collections/IndexingIterable.java
Normal file
@ -0,0 +1,25 @@
|
||||
package kotlin.collections;
|
||||
|
||||
import java.util.Iterator;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.functions.Function0;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.jvm.internal.markers.KMappedMarker;
|
||||
|
||||
/* compiled from: Iterables.kt */
|
||||
@Metadata(d1 = {"\u0000\u001c\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u001c\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0010(\n\u0002\b\u0003\b\u0000\u0018\u0000*\u0006\b\u0000\u0010\u0001 \u00012\u000e\u0012\n\u0012\b\u0012\u0004\u0012\u0002H\u00010\u00030\u0002B\u0019\u0012\u0012\u0010\u0004\u001a\u000e\u0012\n\u0012\b\u0012\u0004\u0012\u00028\u00000\u00060\u0005¢\u0006\u0002\u0010\u0007J\u0015\u0010\b\u001a\u000e\u0012\n\u0012\b\u0012\u0004\u0012\u00028\u00000\u00030\u0006H\u0096\u0002R\u001a\u0010\u0004\u001a\u000e\u0012\n\u0012\b\u0012\u0004\u0012\u00028\u00000\u00060\u0005X\u0082\u0004¢\u0006\u0002\n\u0000¨\u0006\t"}, d2 = {"Lkotlin/collections/IndexingIterable;", "T", "", "Lkotlin/collections/IndexedValue;", "iteratorFactory", "Lkotlin/Function0;", "", "(Lkotlin/jvm/functions/Function0;)V", "iterator", "kotlin-stdlib"}, k = 1, mv = {1, 8, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public final class IndexingIterable<T> implements Iterable<IndexedValue<? extends T>>, KMappedMarker {
|
||||
private final Function0<Iterator<T>> iteratorFactory;
|
||||
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
public IndexingIterable(Function0<? extends Iterator<? extends T>> iteratorFactory) {
|
||||
Intrinsics.checkNotNullParameter(iteratorFactory, "iteratorFactory");
|
||||
this.iteratorFactory = iteratorFactory;
|
||||
}
|
||||
|
||||
@Override // java.lang.Iterable
|
||||
public Iterator<IndexedValue<T>> iterator() {
|
||||
return new IndexingIterator(this.iteratorFactory.invoke());
|
||||
}
|
||||
}
|
40
02-Easy5/E5/sources/kotlin/collections/IndexingIterator.java
Normal file
40
02-Easy5/E5/sources/kotlin/collections/IndexingIterator.java
Normal file
@ -0,0 +1,40 @@
|
||||
package kotlin.collections;
|
||||
|
||||
import java.util.Iterator;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.jvm.internal.markers.KMappedMarker;
|
||||
|
||||
/* compiled from: Iterators.kt */
|
||||
@Metadata(d1 = {"\u0000 \n\u0002\u0018\u0002\n\u0000\n\u0002\u0010(\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0010\b\n\u0000\n\u0002\u0010\u000b\n\u0002\b\u0002\b\u0000\u0018\u0000*\u0006\b\u0000\u0010\u0001 \u00012\u000e\u0012\n\u0012\b\u0012\u0004\u0012\u0002H\u00010\u00030\u0002B\u0013\u0012\f\u0010\u0004\u001a\b\u0012\u0004\u0012\u00028\u00000\u0002¢\u0006\u0002\u0010\u0005J\t\u0010\b\u001a\u00020\tH\u0086\u0002J\u000f\u0010\n\u001a\b\u0012\u0004\u0012\u00028\u00000\u0003H\u0086\u0002R\u000e\u0010\u0006\u001a\u00020\u0007X\u0082\u000e¢\u0006\u0002\n\u0000R\u0014\u0010\u0004\u001a\b\u0012\u0004\u0012\u00028\u00000\u0002X\u0082\u0004¢\u0006\u0002\n\u0000¨\u0006\u000b"}, d2 = {"Lkotlin/collections/IndexingIterator;", "T", "", "Lkotlin/collections/IndexedValue;", "iterator", "(Ljava/util/Iterator;)V", "index", "", "hasNext", "", "next", "kotlin-stdlib"}, k = 1, mv = {1, 8, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public final class IndexingIterator<T> implements Iterator<IndexedValue<? extends T>>, KMappedMarker {
|
||||
private int index;
|
||||
private final Iterator<T> iterator;
|
||||
|
||||
@Override // java.util.Iterator
|
||||
public void remove() {
|
||||
throw new UnsupportedOperationException("Operation is not supported for read-only collection");
|
||||
}
|
||||
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
public IndexingIterator(Iterator<? extends T> iterator) {
|
||||
Intrinsics.checkNotNullParameter(iterator, "iterator");
|
||||
this.iterator = iterator;
|
||||
}
|
||||
|
||||
@Override // java.util.Iterator
|
||||
public final boolean hasNext() {
|
||||
return this.iterator.hasNext();
|
||||
}
|
||||
|
||||
@Override // java.util.Iterator
|
||||
public final IndexedValue<T> next() {
|
||||
int i = this.index;
|
||||
this.index = i + 1;
|
||||
if (i < 0) {
|
||||
CollectionsKt.throwIndexOverflow();
|
||||
}
|
||||
return new IndexedValue<>(i, this.iterator.next());
|
||||
}
|
||||
}
|
28
02-Easy5/E5/sources/kotlin/collections/IntIterator.java
Normal file
28
02-Easy5/E5/sources/kotlin/collections/IntIterator.java
Normal file
@ -0,0 +1,28 @@
|
||||
package kotlin.collections;
|
||||
|
||||
import java.util.Iterator;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.internal.markers.KMappedMarker;
|
||||
|
||||
/* compiled from: PrimitiveIterators.kt */
|
||||
@Metadata(d1 = {"\u0000\u0010\n\u0002\u0018\u0002\n\u0002\u0010(\n\u0002\u0010\b\n\u0002\b\u0005\b&\u0018\u00002\b\u0012\u0004\u0012\u00020\u00020\u0001B\u0005¢\u0006\u0002\u0010\u0003J\u000e\u0010\u0004\u001a\u00020\u0002H\u0086\u0002¢\u0006\u0002\u0010\u0005J\b\u0010\u0006\u001a\u00020\u0002H&¨\u0006\u0007"}, d2 = {"Lkotlin/collections/IntIterator;", "", "", "()V", "next", "()Ljava/lang/Integer;", "nextInt", "kotlin-stdlib"}, k = 1, mv = {1, 8, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public abstract class IntIterator implements Iterator<Integer>, KMappedMarker {
|
||||
public abstract int nextInt();
|
||||
|
||||
@Override // java.util.Iterator
|
||||
public void remove() {
|
||||
throw new UnsupportedOperationException("Operation is not supported for read-only collection");
|
||||
}
|
||||
|
||||
@Override // java.util.Iterator
|
||||
public /* bridge */ /* synthetic */ Integer next() {
|
||||
return Integer.valueOf(nextInt());
|
||||
}
|
||||
|
||||
/* JADX WARN: Can't rename method to resolve collision */
|
||||
@Override // java.util.Iterator
|
||||
public final Integer next() {
|
||||
return Integer.valueOf(nextInt());
|
||||
}
|
||||
}
|
28
02-Easy5/E5/sources/kotlin/collections/LongIterator.java
Normal file
28
02-Easy5/E5/sources/kotlin/collections/LongIterator.java
Normal file
@ -0,0 +1,28 @@
|
||||
package kotlin.collections;
|
||||
|
||||
import java.util.Iterator;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.internal.markers.KMappedMarker;
|
||||
|
||||
/* compiled from: PrimitiveIterators.kt */
|
||||
@Metadata(d1 = {"\u0000\u0010\n\u0002\u0018\u0002\n\u0002\u0010(\n\u0002\u0010\t\n\u0002\b\u0005\b&\u0018\u00002\b\u0012\u0004\u0012\u00020\u00020\u0001B\u0005¢\u0006\u0002\u0010\u0003J\u000e\u0010\u0004\u001a\u00020\u0002H\u0086\u0002¢\u0006\u0002\u0010\u0005J\b\u0010\u0006\u001a\u00020\u0002H&¨\u0006\u0007"}, d2 = {"Lkotlin/collections/LongIterator;", "", "", "()V", "next", "()Ljava/lang/Long;", "nextLong", "kotlin-stdlib"}, k = 1, mv = {1, 8, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public abstract class LongIterator implements Iterator<Long>, KMappedMarker {
|
||||
public abstract long nextLong();
|
||||
|
||||
@Override // java.util.Iterator
|
||||
public void remove() {
|
||||
throw new UnsupportedOperationException("Operation is not supported for read-only collection");
|
||||
}
|
||||
|
||||
@Override // java.util.Iterator
|
||||
public /* bridge */ /* synthetic */ Long next() {
|
||||
return Long.valueOf(nextLong());
|
||||
}
|
||||
|
||||
/* JADX WARN: Can't rename method to resolve collision */
|
||||
@Override // java.util.Iterator
|
||||
public final Long next() {
|
||||
return Long.valueOf(nextLong());
|
||||
}
|
||||
}
|
30
02-Easy5/E5/sources/kotlin/collections/MapAccessorsKt.java
Normal file
30
02-Easy5/E5/sources/kotlin/collections/MapAccessorsKt.java
Normal file
@ -0,0 +1,30 @@
|
||||
package kotlin.collections;
|
||||
|
||||
import java.util.Map;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.reflect.KProperty;
|
||||
|
||||
/* compiled from: MapAccessors.kt */
|
||||
@Metadata(d1 = {"\u0000.\n\u0002\b\u0003\n\u0002\u0010$\n\u0002\u0010\u000e\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0000\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010%\n\u0002\b\u0002\n\u0002\u0010\u0002\n\u0002\b\u0003\u001aK\u0010\u0000\u001a\u0002H\u0001\"\u0004\b\u0000\u0010\u0002\"\b\b\u0001\u0010\u0001*\u0002H\u0002*\u0015\u0012\u0006\b\u0000\u0012\u00020\u0004\u0012\t\u0012\u0007H\u0002¢\u0006\u0002\b\u00050\u00032\b\u0010\u0006\u001a\u0004\u0018\u00010\u00072\n\u0010\b\u001a\u0006\u0012\u0002\b\u00030\tH\u0087\n¢\u0006\u0002\u0010\n\u001aO\u0010\u0000\u001a\u0002H\u0001\"\u0004\b\u0000\u0010\u0002\"\b\b\u0001\u0010\u0001*\u0002H\u0002*\u0017\u0012\u0006\b\u0000\u0012\u00020\u0004\u0012\u000b\b\u0001\u0012\u0007H\u0002¢\u0006\u0002\b\u00050\u000b2\b\u0010\u0006\u001a\u0004\u0018\u00010\u00072\n\u0010\b\u001a\u0006\u0012\u0002\b\u00030\tH\u0087\n¢\u0006\u0004\b\f\u0010\n\u001aF\u0010\r\u001a\u00020\u000e\"\u0004\b\u0000\u0010\u0002*\u0012\u0012\u0006\b\u0000\u0012\u00020\u0004\u0012\u0006\b\u0000\u0012\u0002H\u00020\u000b2\b\u0010\u0006\u001a\u0004\u0018\u00010\u00072\n\u0010\b\u001a\u0006\u0012\u0002\b\u00030\t2\u0006\u0010\u000f\u001a\u0002H\u0002H\u0087\n¢\u0006\u0002\u0010\u0010¨\u0006\u0011"}, d2 = {"getValue", "V1", "V", "", "", "Lkotlin/internal/Exact;", "thisRef", "", "property", "Lkotlin/reflect/KProperty;", "(Ljava/util/Map;Ljava/lang/Object;Lkotlin/reflect/KProperty;)Ljava/lang/Object;", "", "getVar", "setValue", "", "value", "(Ljava/util/Map;Ljava/lang/Object;Lkotlin/reflect/KProperty;Ljava/lang/Object;)V", "kotlin-stdlib"}, k = 2, mv = {1, 8, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public final class MapAccessorsKt {
|
||||
private static final <V, V1 extends V> V1 getValue(Map<? super String, ? extends V> map, Object obj, KProperty<?> property) {
|
||||
Intrinsics.checkNotNullParameter(map, "<this>");
|
||||
Intrinsics.checkNotNullParameter(property, "property");
|
||||
return (V1) MapsKt.getOrImplicitDefaultNullable(map, property.getName());
|
||||
}
|
||||
|
||||
private static final <V, V1 extends V> V1 getVar(Map<? super String, ? extends V> map, Object obj, KProperty<?> property) {
|
||||
Intrinsics.checkNotNullParameter(map, "<this>");
|
||||
Intrinsics.checkNotNullParameter(property, "property");
|
||||
return (V1) MapsKt.getOrImplicitDefaultNullable(map, property.getName());
|
||||
}
|
||||
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
private static final <V> void setValue(Map<? super String, ? super V> map, Object obj, KProperty<?> property, V v) {
|
||||
Intrinsics.checkNotNullParameter(map, "<this>");
|
||||
Intrinsics.checkNotNullParameter(property, "property");
|
||||
map.put(property.getName(), v);
|
||||
}
|
||||
}
|
14
02-Easy5/E5/sources/kotlin/collections/MapWithDefault.java
Normal file
14
02-Easy5/E5/sources/kotlin/collections/MapWithDefault.java
Normal file
@ -0,0 +1,14 @@
|
||||
package kotlin.collections;
|
||||
|
||||
import java.util.Map;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.internal.markers.KMappedMarker;
|
||||
|
||||
/* compiled from: MapWithDefault.kt */
|
||||
@Metadata(d1 = {"\u0000\u0010\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010$\n\u0002\b\u0007\bb\u0018\u0000*\u0004\b\u0000\u0010\u0001*\u0006\b\u0001\u0010\u0002 \u00012\u000e\u0012\u0004\u0012\u0002H\u0001\u0012\u0004\u0012\u0002H\u00020\u0003J\u0015\u0010\u0007\u001a\u00028\u00012\u0006\u0010\b\u001a\u00028\u0000H&¢\u0006\u0002\u0010\tR\u001e\u0010\u0004\u001a\u000e\u0012\u0004\u0012\u00028\u0000\u0012\u0004\u0012\u00028\u00010\u0003X¦\u0004¢\u0006\u0006\u001a\u0004\b\u0005\u0010\u0006¨\u0006\n"}, d2 = {"Lkotlin/collections/MapWithDefault;", "K", "V", "", "map", "getMap", "()Ljava/util/Map;", "getOrImplicitDefault", "key", "(Ljava/lang/Object;)Ljava/lang/Object;", "kotlin-stdlib"}, k = 1, mv = {1, 8, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
interface MapWithDefault<K, V> extends Map<K, V>, KMappedMarker {
|
||||
Map<K, V> getMap();
|
||||
|
||||
V getOrImplicitDefault(K key);
|
||||
}
|
126
02-Easy5/E5/sources/kotlin/collections/MapWithDefaultImpl.java
Normal file
126
02-Easy5/E5/sources/kotlin/collections/MapWithDefaultImpl.java
Normal file
@ -0,0 +1,126 @@
|
||||
package kotlin.collections;
|
||||
|
||||
import java.util.Collection;
|
||||
import java.util.Map;
|
||||
import java.util.Set;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.functions.Function1;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
|
||||
/* compiled from: MapWithDefault.kt */
|
||||
@Metadata(d1 = {"\u0000R\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010$\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0010\"\n\u0002\u0010&\n\u0002\b\u0007\n\u0002\u0010\b\n\u0002\b\u0003\n\u0002\u0010\u001e\n\u0002\b\u0003\n\u0002\u0010\u000b\n\u0002\b\u0005\n\u0002\u0010\u0000\n\u0002\b\u0006\n\u0002\u0010\u000e\n\u0000\b\u0002\u0018\u0000*\u0004\b\u0000\u0010\u0001*\u0006\b\u0001\u0010\u0002 \u00012\u000e\u0012\u0004\u0012\u0002H\u0001\u0012\u0004\u0012\u0002H\u00020\u0003B<\u0012\u0012\u0010\u0004\u001a\u000e\u0012\u0004\u0012\u00028\u0000\u0012\u0004\u0012\u00028\u00010\u0005\u0012!\u0010\u0006\u001a\u001d\u0012\u0013\u0012\u00118\u0000¢\u0006\f\b\b\u0012\b\b\t\u0012\u0004\b\b(\n\u0012\u0004\u0012\u00028\u00010\u0007¢\u0006\u0002\u0010\u000bJ\u0015\u0010\u001d\u001a\u00020\u001e2\u0006\u0010\n\u001a\u00028\u0000H\u0016¢\u0006\u0002\u0010\u001fJ\u0015\u0010 \u001a\u00020\u001e2\u0006\u0010!\u001a\u00028\u0001H\u0016¢\u0006\u0002\u0010\u001fJ\u0013\u0010\"\u001a\u00020\u001e2\b\u0010#\u001a\u0004\u0018\u00010$H\u0096\u0002J\u0018\u0010%\u001a\u0004\u0018\u00018\u00012\u0006\u0010\n\u001a\u00028\u0000H\u0096\u0002¢\u0006\u0002\u0010&J\u0015\u0010'\u001a\u00028\u00012\u0006\u0010\n\u001a\u00028\u0000H\u0016¢\u0006\u0002\u0010&J\b\u0010(\u001a\u00020\u0016H\u0016J\b\u0010)\u001a\u00020\u001eH\u0016J\b\u0010*\u001a\u00020+H\u0016R)\u0010\u0006\u001a\u001d\u0012\u0013\u0012\u00118\u0000¢\u0006\f\b\b\u0012\b\b\t\u0012\u0004\b\b(\n\u0012\u0004\u0012\u00028\u00010\u0007X\u0082\u0004¢\u0006\u0002\n\u0000R&\u0010\f\u001a\u0014\u0012\u0010\u0012\u000e\u0012\u0004\u0012\u00028\u0000\u0012\u0004\u0012\u00028\u00010\u000e0\r8VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b\u000f\u0010\u0010R\u001a\u0010\u0011\u001a\b\u0012\u0004\u0012\u00028\u00000\r8VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b\u0012\u0010\u0010R \u0010\u0004\u001a\u000e\u0012\u0004\u0012\u00028\u0000\u0012\u0004\u0012\u00028\u00010\u0005X\u0096\u0004¢\u0006\b\n\u0000\u001a\u0004\b\u0013\u0010\u0014R\u0014\u0010\u0015\u001a\u00020\u00168VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b\u0017\u0010\u0018R\u001a\u0010\u0019\u001a\b\u0012\u0004\u0012\u00028\u00010\u001a8VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b\u001b\u0010\u001c¨\u0006,"}, d2 = {"Lkotlin/collections/MapWithDefaultImpl;", "K", "V", "Lkotlin/collections/MapWithDefault;", "map", "", "default", "Lkotlin/Function1;", "Lkotlin/ParameterName;", "name", "key", "(Ljava/util/Map;Lkotlin/jvm/functions/Function1;)V", "entries", "", "", "getEntries", "()Ljava/util/Set;", "keys", "getKeys", "getMap", "()Ljava/util/Map;", "size", "", "getSize", "()I", "values", "", "getValues", "()Ljava/util/Collection;", "containsKey", "", "(Ljava/lang/Object;)Z", "containsValue", "value", "equals", "other", "", "get", "(Ljava/lang/Object;)Ljava/lang/Object;", "getOrImplicitDefault", "hashCode", "isEmpty", "toString", "", "kotlin-stdlib"}, k = 1, mv = {1, 8, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
final class MapWithDefaultImpl<K, V> implements MapWithDefault<K, V> {
|
||||
private final Function1<K, V> default;
|
||||
private final Map<K, V> map;
|
||||
|
||||
@Override // java.util.Map
|
||||
public void clear() {
|
||||
throw new UnsupportedOperationException("Operation is not supported for read-only collection");
|
||||
}
|
||||
|
||||
@Override // kotlin.collections.MapWithDefault
|
||||
public Map<K, V> getMap() {
|
||||
return this.map;
|
||||
}
|
||||
|
||||
@Override // java.util.Map
|
||||
public V put(K k, V v) {
|
||||
throw new UnsupportedOperationException("Operation is not supported for read-only collection");
|
||||
}
|
||||
|
||||
@Override // java.util.Map
|
||||
public void putAll(Map<? extends K, ? extends V> map) {
|
||||
throw new UnsupportedOperationException("Operation is not supported for read-only collection");
|
||||
}
|
||||
|
||||
@Override // java.util.Map
|
||||
public V remove(Object obj) {
|
||||
throw new UnsupportedOperationException("Operation is not supported for read-only collection");
|
||||
}
|
||||
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
public MapWithDefaultImpl(Map<K, ? extends V> map, Function1<? super K, ? extends V> function1) {
|
||||
Intrinsics.checkNotNullParameter(map, "map");
|
||||
Intrinsics.checkNotNullParameter(function1, "default");
|
||||
this.map = map;
|
||||
this.default = function1;
|
||||
}
|
||||
|
||||
@Override // java.util.Map
|
||||
public final /* bridge */ Set<Map.Entry<K, V>> entrySet() {
|
||||
return getEntries();
|
||||
}
|
||||
|
||||
@Override // java.util.Map
|
||||
public final /* bridge */ Set<K> keySet() {
|
||||
return getKeys();
|
||||
}
|
||||
|
||||
@Override // java.util.Map
|
||||
public final /* bridge */ int size() {
|
||||
return getSize();
|
||||
}
|
||||
|
||||
@Override // java.util.Map
|
||||
public final /* bridge */ Collection<V> values() {
|
||||
return getValues();
|
||||
}
|
||||
|
||||
@Override // java.util.Map
|
||||
public boolean equals(Object other) {
|
||||
return getMap().equals(other);
|
||||
}
|
||||
|
||||
@Override // java.util.Map
|
||||
public int hashCode() {
|
||||
return getMap().hashCode();
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return getMap().toString();
|
||||
}
|
||||
|
||||
public int getSize() {
|
||||
return getMap().size();
|
||||
}
|
||||
|
||||
@Override // java.util.Map
|
||||
public boolean isEmpty() {
|
||||
return getMap().isEmpty();
|
||||
}
|
||||
|
||||
@Override // java.util.Map
|
||||
public boolean containsKey(Object key) {
|
||||
return getMap().containsKey(key);
|
||||
}
|
||||
|
||||
@Override // java.util.Map
|
||||
public boolean containsValue(Object value) {
|
||||
return getMap().containsValue(value);
|
||||
}
|
||||
|
||||
@Override // java.util.Map
|
||||
public V get(Object key) {
|
||||
return getMap().get(key);
|
||||
}
|
||||
|
||||
public Set<K> getKeys() {
|
||||
return getMap().keySet();
|
||||
}
|
||||
|
||||
public Collection<V> getValues() {
|
||||
return getMap().values();
|
||||
}
|
||||
|
||||
public Set<Map.Entry<K, V>> getEntries() {
|
||||
return getMap().entrySet();
|
||||
}
|
||||
|
||||
@Override // kotlin.collections.MapWithDefault
|
||||
public V getOrImplicitDefault(K key) {
|
||||
Map<K, V> map = getMap();
|
||||
V v = map.get(key);
|
||||
return (v != null || map.containsKey(key)) ? v : this.default.invoke(key);
|
||||
}
|
||||
}
|
10
02-Easy5/E5/sources/kotlin/collections/MapsKt.java
Normal file
10
02-Easy5/E5/sources/kotlin/collections/MapsKt.java
Normal file
@ -0,0 +1,10 @@
|
||||
package kotlin.collections;
|
||||
|
||||
import kotlin.Metadata;
|
||||
|
||||
@Metadata(d1 = {"kotlin/collections/MapsKt__MapWithDefaultKt", "kotlin/collections/MapsKt__MapsJVMKt", "kotlin/collections/MapsKt__MapsKt", "kotlin/collections/MapsKt___MapsJvmKt", "kotlin/collections/MapsKt___MapsKt"}, k = 4, mv = {1, 8, 0}, xi = 49)
|
||||
/* loaded from: classes.dex */
|
||||
public final class MapsKt extends MapsKt___MapsKt {
|
||||
private MapsKt() {
|
||||
}
|
||||
}
|
@ -0,0 +1,36 @@
|
||||
package kotlin.collections;
|
||||
|
||||
import java.util.Map;
|
||||
import java.util.NoSuchElementException;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.functions.Function1;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
|
||||
/* compiled from: MapWithDefault.kt */
|
||||
@Metadata(d1 = {"\u0000\u001e\n\u0002\b\u0003\n\u0002\u0010$\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010%\n\u0002\b\u0002\u001a3\u0010\u0000\u001a\u0002H\u0001\"\u0004\b\u0000\u0010\u0002\"\u0004\b\u0001\u0010\u0001*\u000e\u0012\u0004\u0012\u0002H\u0002\u0012\u0004\u0012\u0002H\u00010\u00032\u0006\u0010\u0004\u001a\u0002H\u0002H\u0001¢\u0006\u0004\b\u0005\u0010\u0006\u001aQ\u0010\u0007\u001a\u000e\u0012\u0004\u0012\u0002H\u0002\u0012\u0004\u0012\u0002H\u00010\u0003\"\u0004\b\u0000\u0010\u0002\"\u0004\b\u0001\u0010\u0001*\u000e\u0012\u0004\u0012\u0002H\u0002\u0012\u0004\u0012\u0002H\u00010\u00032!\u0010\b\u001a\u001d\u0012\u0013\u0012\u0011H\u0002¢\u0006\f\b\n\u0012\b\b\u000b\u0012\u0004\b\b(\u0004\u0012\u0004\u0012\u0002H\u00010\t\u001aX\u0010\u0007\u001a\u000e\u0012\u0004\u0012\u0002H\u0002\u0012\u0004\u0012\u0002H\u00010\f\"\u0004\b\u0000\u0010\u0002\"\u0004\b\u0001\u0010\u0001*\u000e\u0012\u0004\u0012\u0002H\u0002\u0012\u0004\u0012\u0002H\u00010\f2!\u0010\b\u001a\u001d\u0012\u0013\u0012\u0011H\u0002¢\u0006\f\b\n\u0012\b\b\u000b\u0012\u0004\b\b(\u0004\u0012\u0004\u0012\u0002H\u00010\tH\u0007¢\u0006\u0002\b\r¨\u0006\u000e"}, d2 = {"getOrImplicitDefault", "V", "K", "", "key", "getOrImplicitDefaultNullable", "(Ljava/util/Map;Ljava/lang/Object;)Ljava/lang/Object;", "withDefault", "defaultValue", "Lkotlin/Function1;", "Lkotlin/ParameterName;", "name", "", "withDefaultMutable", "kotlin-stdlib"}, k = 5, mv = {1, 8, 0}, xi = 49, xs = "kotlin/collections/MapsKt")
|
||||
/* loaded from: classes.dex */
|
||||
class MapsKt__MapWithDefaultKt {
|
||||
public static final <K, V> V getOrImplicitDefaultNullable(Map<K, ? extends V> map, K k) {
|
||||
Intrinsics.checkNotNullParameter(map, "<this>");
|
||||
if (map instanceof MapWithDefault) {
|
||||
return (V) ((MapWithDefault) map).getOrImplicitDefault(k);
|
||||
}
|
||||
V v = map.get(k);
|
||||
if (v != null || map.containsKey(k)) {
|
||||
return v;
|
||||
}
|
||||
throw new NoSuchElementException("Key " + k + " is missing in the map.");
|
||||
}
|
||||
|
||||
public static final <K, V> Map<K, V> withDefault(Map<K, ? extends V> map, Function1<? super K, ? extends V> defaultValue) {
|
||||
Intrinsics.checkNotNullParameter(map, "<this>");
|
||||
Intrinsics.checkNotNullParameter(defaultValue, "defaultValue");
|
||||
return map instanceof MapWithDefault ? MapsKt.withDefault(((MapWithDefault) map).getMap(), defaultValue) : new MapWithDefaultImpl(map, defaultValue);
|
||||
}
|
||||
|
||||
public static final <K, V> Map<K, V> withDefaultMutable(Map<K, V> map, Function1<? super K, ? extends V> defaultValue) {
|
||||
Intrinsics.checkNotNullParameter(map, "<this>");
|
||||
Intrinsics.checkNotNullParameter(defaultValue, "defaultValue");
|
||||
return map instanceof MutableMapWithDefault ? MapsKt.withDefaultMutable(((MutableMapWithDefault) map).getMap(), defaultValue) : new MutableMapWithDefaultImpl(map, defaultValue);
|
||||
}
|
||||
}
|
131
02-Easy5/E5/sources/kotlin/collections/MapsKt__MapsJVMKt.java
Normal file
131
02-Easy5/E5/sources/kotlin/collections/MapsKt__MapsJVMKt.java
Normal file
File diff suppressed because one or more lines are too long
558
02-Easy5/E5/sources/kotlin/collections/MapsKt__MapsKt.java
Normal file
558
02-Easy5/E5/sources/kotlin/collections/MapsKt__MapsKt.java
Normal file
File diff suppressed because one or more lines are too long
@ -0,0 +1,86 @@
|
||||
package kotlin.collections;
|
||||
|
||||
import java.util.Comparator;
|
||||
import java.util.Iterator;
|
||||
import java.util.Map;
|
||||
import kotlin.Deprecated;
|
||||
import kotlin.DeprecatedSinceKotlin;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.ReplaceWith;
|
||||
import kotlin.jvm.functions.Function1;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
|
||||
/* compiled from: _MapsJvm.kt */
|
||||
@Metadata(d1 = {"\u0000(\n\u0000\n\u0002\u0010&\n\u0002\b\u0003\n\u0002\u0010\u000f\n\u0002\u0010$\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\u001ah\u0010\u0000\u001a\u0010\u0012\u0004\u0012\u0002H\u0002\u0012\u0004\u0012\u0002H\u0003\u0018\u00010\u0001\"\u0004\b\u0000\u0010\u0002\"\u0004\b\u0001\u0010\u0003\"\u000e\b\u0002\u0010\u0004*\b\u0012\u0004\u0012\u0002H\u00040\u0005*\u0010\u0012\u0006\b\u0001\u0012\u0002H\u0002\u0012\u0004\u0012\u0002H\u00030\u00062\u001e\u0010\u0007\u001a\u001a\u0012\u0010\u0012\u000e\u0012\u0004\u0012\u0002H\u0002\u0012\u0004\u0012\u0002H\u00030\u0001\u0012\u0004\u0012\u0002H\u00040\bH\u0087\bø\u0001\u0000\u001ai\u0010\t\u001a\u0010\u0012\u0004\u0012\u0002H\u0002\u0012\u0004\u0012\u0002H\u0003\u0018\u00010\u0001\"\u0004\b\u0000\u0010\u0002\"\u0004\b\u0001\u0010\u0003*\u0010\u0012\u0006\b\u0001\u0012\u0002H\u0002\u0012\u0004\u0012\u0002H\u00030\u000622\u0010\n\u001a.\u0012\u0012\b\u0000\u0012\u000e\u0012\u0004\u0012\u0002H\u0002\u0012\u0004\u0012\u0002H\u00030\u00010\u000bj\u0016\u0012\u0012\b\u0000\u0012\u000e\u0012\u0004\u0012\u0002H\u0002\u0012\u0004\u0012\u0002H\u00030\u0001`\fH\u0087\b\u001ah\u0010\r\u001a\u0010\u0012\u0004\u0012\u0002H\u0002\u0012\u0004\u0012\u0002H\u0003\u0018\u00010\u0001\"\u0004\b\u0000\u0010\u0002\"\u0004\b\u0001\u0010\u0003\"\u000e\b\u0002\u0010\u0004*\b\u0012\u0004\u0012\u0002H\u00040\u0005*\u0010\u0012\u0006\b\u0001\u0012\u0002H\u0002\u0012\u0004\u0012\u0002H\u00030\u00062\u001e\u0010\u0007\u001a\u001a\u0012\u0010\u0012\u000e\u0012\u0004\u0012\u0002H\u0002\u0012\u0004\u0012\u0002H\u00030\u0001\u0012\u0004\u0012\u0002H\u00040\bH\u0087\bø\u0001\u0000\u001ah\u0010\u000e\u001a\u0010\u0012\u0004\u0012\u0002H\u0002\u0012\u0004\u0012\u0002H\u0003\u0018\u00010\u0001\"\u0004\b\u0000\u0010\u0002\"\u0004\b\u0001\u0010\u0003*\u0010\u0012\u0006\b\u0001\u0012\u0002H\u0002\u0012\u0004\u0012\u0002H\u00030\u000622\u0010\n\u001a.\u0012\u0012\b\u0000\u0012\u000e\u0012\u0004\u0012\u0002H\u0002\u0012\u0004\u0012\u0002H\u00030\u00010\u000bj\u0016\u0012\u0012\b\u0000\u0012\u000e\u0012\u0004\u0012\u0002H\u0002\u0012\u0004\u0012\u0002H\u00030\u0001`\fH\u0007\u0082\u0002\u0007\n\u0005\b\u009920\u0001¨\u0006\u000f"}, d2 = {"maxBy", "", "K", "V", "R", "", "", "selector", "Lkotlin/Function1;", "maxWith", "comparator", "Ljava/util/Comparator;", "Lkotlin/Comparator;", "minBy", "minWith", "kotlin-stdlib"}, k = 5, mv = {1, 8, 0}, xi = 49, xs = "kotlin/collections/MapsKt")
|
||||
/* loaded from: classes.dex */
|
||||
class MapsKt___MapsJvmKt extends MapsKt__MapsKt {
|
||||
@Deprecated(message = "Use maxByOrNull instead.", replaceWith = @ReplaceWith(expression = "this.maxByOrNull(selector)", imports = {}))
|
||||
@DeprecatedSinceKotlin(errorSince = "1.5", hiddenSince = "1.6", warningSince = "1.4")
|
||||
private static final /* synthetic */ <K, V, R extends Comparable<? super R>> Map.Entry<K, V> maxBy(Map<? extends K, ? extends V> map, Function1<? super Map.Entry<? extends K, ? extends V>, ? extends R> selector) {
|
||||
Map.Entry<K, V> entry;
|
||||
Intrinsics.checkNotNullParameter(map, "<this>");
|
||||
Intrinsics.checkNotNullParameter(selector, "selector");
|
||||
Iterator<T> it = map.entrySet().iterator();
|
||||
if (it.hasNext()) {
|
||||
Map.Entry<K, V> entry2 = (Object) it.next();
|
||||
if (it.hasNext()) {
|
||||
R invoke = selector.invoke(entry2);
|
||||
do {
|
||||
Map.Entry<K, V> entry3 = (Object) it.next();
|
||||
R invoke2 = selector.invoke(entry3);
|
||||
if (invoke.compareTo(invoke2) < 0) {
|
||||
entry2 = entry3;
|
||||
invoke = invoke2;
|
||||
}
|
||||
} while (it.hasNext());
|
||||
}
|
||||
entry = entry2;
|
||||
} else {
|
||||
entry = null;
|
||||
}
|
||||
return entry;
|
||||
}
|
||||
|
||||
@Deprecated(message = "Use maxWithOrNull instead.", replaceWith = @ReplaceWith(expression = "this.maxWithOrNull(comparator)", imports = {}))
|
||||
@DeprecatedSinceKotlin(errorSince = "1.5", hiddenSince = "1.6", warningSince = "1.4")
|
||||
private static final /* synthetic */ <K, V> Map.Entry<K, V> maxWith(Map<? extends K, ? extends V> map, Comparator<? super Map.Entry<? extends K, ? extends V>> comparator) {
|
||||
Intrinsics.checkNotNullParameter(map, "<this>");
|
||||
Intrinsics.checkNotNullParameter(comparator, "comparator");
|
||||
return (Map.Entry) CollectionsKt.maxWithOrNull(map.entrySet(), comparator);
|
||||
}
|
||||
|
||||
@Deprecated(message = "Use minByOrNull instead.", replaceWith = @ReplaceWith(expression = "this.minByOrNull(selector)", imports = {}))
|
||||
@DeprecatedSinceKotlin(errorSince = "1.5", hiddenSince = "1.6", warningSince = "1.4")
|
||||
public static final /* synthetic */ <K, V, R extends Comparable<? super R>> Map.Entry<K, V> minBy(Map<? extends K, ? extends V> map, Function1<? super Map.Entry<? extends K, ? extends V>, ? extends R> selector) {
|
||||
Map.Entry<K, V> entry;
|
||||
Intrinsics.checkNotNullParameter(map, "<this>");
|
||||
Intrinsics.checkNotNullParameter(selector, "selector");
|
||||
Iterator<T> it = map.entrySet().iterator();
|
||||
if (it.hasNext()) {
|
||||
Map.Entry<K, V> entry2 = (Object) it.next();
|
||||
if (it.hasNext()) {
|
||||
R invoke = selector.invoke(entry2);
|
||||
do {
|
||||
Map.Entry<K, V> entry3 = (Object) it.next();
|
||||
R invoke2 = selector.invoke(entry3);
|
||||
if (invoke.compareTo(invoke2) > 0) {
|
||||
entry2 = entry3;
|
||||
invoke = invoke2;
|
||||
}
|
||||
} while (it.hasNext());
|
||||
}
|
||||
entry = entry2;
|
||||
} else {
|
||||
entry = null;
|
||||
}
|
||||
return entry;
|
||||
}
|
||||
|
||||
@Deprecated(message = "Use minWithOrNull instead.", replaceWith = @ReplaceWith(expression = "this.minWithOrNull(comparator)", imports = {}))
|
||||
@DeprecatedSinceKotlin(errorSince = "1.5", hiddenSince = "1.6", warningSince = "1.4")
|
||||
public static final /* synthetic */ Map.Entry minWith(Map map, Comparator comparator) {
|
||||
Intrinsics.checkNotNullParameter(map, "<this>");
|
||||
Intrinsics.checkNotNullParameter(comparator, "comparator");
|
||||
return (Map.Entry) CollectionsKt.minWithOrNull(map.entrySet(), comparator);
|
||||
}
|
||||
}
|
676
02-Easy5/E5/sources/kotlin/collections/MapsKt___MapsKt.java
Normal file
676
02-Easy5/E5/sources/kotlin/collections/MapsKt___MapsKt.java
Normal file
File diff suppressed because one or more lines are too long
39
02-Easy5/E5/sources/kotlin/collections/MovingSubList.java
Normal file
39
02-Easy5/E5/sources/kotlin/collections/MovingSubList.java
Normal file
@ -0,0 +1,39 @@
|
||||
package kotlin.collections;
|
||||
|
||||
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;", "E", "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, 8, 0}, xi = 48)
|
||||
/* loaded from: classes.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);
|
||||
}
|
||||
}
|
@ -0,0 +1,13 @@
|
||||
package kotlin.collections;
|
||||
|
||||
import java.util.Map;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.internal.markers.KMutableMap;
|
||||
|
||||
/* compiled from: MapWithDefault.kt */
|
||||
@Metadata(d1 = {"\u0000\u0014\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010%\n\u0002\u0018\u0002\n\u0002\b\u0004\bb\u0018\u0000*\u0004\b\u0000\u0010\u0001*\u0004\b\u0001\u0010\u00022\u000e\u0012\u0004\u0012\u0002H\u0001\u0012\u0004\u0012\u0002H\u00020\u00032\u000e\u0012\u0004\u0012\u0002H\u0001\u0012\u0004\u0012\u0002H\u00020\u0004R\u001e\u0010\u0005\u001a\u000e\u0012\u0004\u0012\u00028\u0000\u0012\u0004\u0012\u00028\u00010\u0003X¦\u0004¢\u0006\u0006\u001a\u0004\b\u0006\u0010\u0007¨\u0006\b"}, d2 = {"Lkotlin/collections/MutableMapWithDefault;", "K", "V", "", "Lkotlin/collections/MapWithDefault;", "map", "getMap", "()Ljava/util/Map;", "kotlin-stdlib"}, k = 1, mv = {1, 8, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
interface MutableMapWithDefault<K, V> extends Map<K, V>, MapWithDefault<K, V>, KMutableMap {
|
||||
@Override // kotlin.collections.MapWithDefault
|
||||
Map<K, V> getMap();
|
||||
}
|
@ -0,0 +1,128 @@
|
||||
package kotlin.collections;
|
||||
|
||||
import androidx.constraintlayout.core.motion.utils.TypedValues;
|
||||
import java.util.Collection;
|
||||
import java.util.Map;
|
||||
import java.util.Set;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.functions.Function1;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
|
||||
/* compiled from: MapWithDefault.kt */
|
||||
@Metadata(d1 = {"\u0000`\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010%\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0010#\n\u0002\u0010'\n\u0002\b\u0007\n\u0002\u0010\b\n\u0002\b\u0003\n\u0002\u0010\u001f\n\u0002\b\u0003\n\u0002\u0010\u0002\n\u0000\n\u0002\u0010\u000b\n\u0002\b\u0005\n\u0002\u0010\u0000\n\u0002\b\t\n\u0002\u0010$\n\u0002\b\u0002\n\u0002\u0010\u000e\n\u0000\b\u0002\u0018\u0000*\u0004\b\u0000\u0010\u0001*\u0004\b\u0001\u0010\u00022\u000e\u0012\u0004\u0012\u0002H\u0001\u0012\u0004\u0012\u0002H\u00020\u0003B<\u0012\u0012\u0010\u0004\u001a\u000e\u0012\u0004\u0012\u00028\u0000\u0012\u0004\u0012\u00028\u00010\u0005\u0012!\u0010\u0006\u001a\u001d\u0012\u0013\u0012\u00118\u0000¢\u0006\f\b\b\u0012\b\b\t\u0012\u0004\b\b(\n\u0012\u0004\u0012\u00028\u00010\u0007¢\u0006\u0002\u0010\u000bJ\b\u0010\u001d\u001a\u00020\u001eH\u0016J\u0015\u0010\u001f\u001a\u00020 2\u0006\u0010\n\u001a\u00028\u0000H\u0016¢\u0006\u0002\u0010!J\u0015\u0010\"\u001a\u00020 2\u0006\u0010#\u001a\u00028\u0001H\u0016¢\u0006\u0002\u0010!J\u0013\u0010$\u001a\u00020 2\b\u0010%\u001a\u0004\u0018\u00010&H\u0096\u0002J\u0018\u0010'\u001a\u0004\u0018\u00018\u00012\u0006\u0010\n\u001a\u00028\u0000H\u0096\u0002¢\u0006\u0002\u0010(J\u0015\u0010)\u001a\u00028\u00012\u0006\u0010\n\u001a\u00028\u0000H\u0016¢\u0006\u0002\u0010(J\b\u0010*\u001a\u00020\u0016H\u0016J\b\u0010+\u001a\u00020 H\u0016J\u001f\u0010,\u001a\u0004\u0018\u00018\u00012\u0006\u0010\n\u001a\u00028\u00002\u0006\u0010#\u001a\u00028\u0001H\u0016¢\u0006\u0002\u0010-J\u001e\u0010.\u001a\u00020\u001e2\u0014\u0010/\u001a\u0010\u0012\u0006\b\u0001\u0012\u00028\u0000\u0012\u0004\u0012\u00028\u000100H\u0016J\u0017\u00101\u001a\u0004\u0018\u00018\u00012\u0006\u0010\n\u001a\u00028\u0000H\u0016¢\u0006\u0002\u0010(J\b\u00102\u001a\u000203H\u0016R)\u0010\u0006\u001a\u001d\u0012\u0013\u0012\u00118\u0000¢\u0006\f\b\b\u0012\b\b\t\u0012\u0004\b\b(\n\u0012\u0004\u0012\u00028\u00010\u0007X\u0082\u0004¢\u0006\u0002\n\u0000R&\u0010\f\u001a\u0014\u0012\u0010\u0012\u000e\u0012\u0004\u0012\u00028\u0000\u0012\u0004\u0012\u00028\u00010\u000e0\r8VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b\u000f\u0010\u0010R\u001a\u0010\u0011\u001a\b\u0012\u0004\u0012\u00028\u00000\r8VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b\u0012\u0010\u0010R \u0010\u0004\u001a\u000e\u0012\u0004\u0012\u00028\u0000\u0012\u0004\u0012\u00028\u00010\u0005X\u0096\u0004¢\u0006\b\n\u0000\u001a\u0004\b\u0013\u0010\u0014R\u0014\u0010\u0015\u001a\u00020\u00168VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b\u0017\u0010\u0018R\u001a\u0010\u0019\u001a\b\u0012\u0004\u0012\u00028\u00010\u001a8VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b\u001b\u0010\u001c¨\u00064"}, d2 = {"Lkotlin/collections/MutableMapWithDefaultImpl;", "K", "V", "Lkotlin/collections/MutableMapWithDefault;", "map", "", "default", "Lkotlin/Function1;", "Lkotlin/ParameterName;", "name", "key", "(Ljava/util/Map;Lkotlin/jvm/functions/Function1;)V", "entries", "", "", "getEntries", "()Ljava/util/Set;", "keys", "getKeys", "getMap", "()Ljava/util/Map;", "size", "", "getSize", "()I", "values", "", "getValues", "()Ljava/util/Collection;", "clear", "", "containsKey", "", "(Ljava/lang/Object;)Z", "containsValue", "value", "equals", "other", "", "get", "(Ljava/lang/Object;)Ljava/lang/Object;", "getOrImplicitDefault", "hashCode", "isEmpty", "put", "(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;", "putAll", TypedValues.TransitionType.S_FROM, "", "remove", "toString", "", "kotlin-stdlib"}, k = 1, mv = {1, 8, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
final class MutableMapWithDefaultImpl<K, V> implements MutableMapWithDefault<K, V> {
|
||||
private final Function1<K, V> default;
|
||||
private final Map<K, V> map;
|
||||
|
||||
@Override // kotlin.collections.MutableMapWithDefault, kotlin.collections.MapWithDefault
|
||||
public Map<K, V> getMap() {
|
||||
return this.map;
|
||||
}
|
||||
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
public MutableMapWithDefaultImpl(Map<K, V> map, Function1<? super K, ? extends V> function1) {
|
||||
Intrinsics.checkNotNullParameter(map, "map");
|
||||
Intrinsics.checkNotNullParameter(function1, "default");
|
||||
this.map = map;
|
||||
this.default = function1;
|
||||
}
|
||||
|
||||
@Override // java.util.Map
|
||||
public final /* bridge */ Set<Map.Entry<K, V>> entrySet() {
|
||||
return getEntries();
|
||||
}
|
||||
|
||||
@Override // java.util.Map
|
||||
public final /* bridge */ Set<K> keySet() {
|
||||
return getKeys();
|
||||
}
|
||||
|
||||
@Override // java.util.Map
|
||||
public final /* bridge */ int size() {
|
||||
return getSize();
|
||||
}
|
||||
|
||||
@Override // java.util.Map
|
||||
public final /* bridge */ Collection<V> values() {
|
||||
return getValues();
|
||||
}
|
||||
|
||||
@Override // java.util.Map
|
||||
public boolean equals(Object other) {
|
||||
return getMap().equals(other);
|
||||
}
|
||||
|
||||
@Override // java.util.Map
|
||||
public int hashCode() {
|
||||
return getMap().hashCode();
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return getMap().toString();
|
||||
}
|
||||
|
||||
public int getSize() {
|
||||
return getMap().size();
|
||||
}
|
||||
|
||||
@Override // java.util.Map
|
||||
public boolean isEmpty() {
|
||||
return getMap().isEmpty();
|
||||
}
|
||||
|
||||
@Override // java.util.Map
|
||||
public boolean containsKey(Object key) {
|
||||
return getMap().containsKey(key);
|
||||
}
|
||||
|
||||
@Override // java.util.Map
|
||||
public boolean containsValue(Object value) {
|
||||
return getMap().containsValue(value);
|
||||
}
|
||||
|
||||
@Override // java.util.Map
|
||||
public V get(Object key) {
|
||||
return getMap().get(key);
|
||||
}
|
||||
|
||||
public Set<K> getKeys() {
|
||||
return getMap().keySet();
|
||||
}
|
||||
|
||||
public Collection<V> getValues() {
|
||||
return getMap().values();
|
||||
}
|
||||
|
||||
public Set<Map.Entry<K, V>> getEntries() {
|
||||
return getMap().entrySet();
|
||||
}
|
||||
|
||||
@Override // java.util.Map
|
||||
public V put(K key, V value) {
|
||||
return getMap().put(key, value);
|
||||
}
|
||||
|
||||
@Override // java.util.Map
|
||||
public V remove(Object key) {
|
||||
return getMap().remove(key);
|
||||
}
|
||||
|
||||
@Override // java.util.Map
|
||||
public void putAll(Map<? extends K, ? extends V> from) {
|
||||
Intrinsics.checkNotNullParameter(from, "from");
|
||||
getMap().putAll(from);
|
||||
}
|
||||
|
||||
@Override // java.util.Map
|
||||
public void clear() {
|
||||
getMap().clear();
|
||||
}
|
||||
|
||||
@Override // kotlin.collections.MapWithDefault
|
||||
public V getOrImplicitDefault(K key) {
|
||||
Map<K, V> map = getMap();
|
||||
V v = map.get(key);
|
||||
return (v != null || map.containsKey(key)) ? v : this.default.invoke(key);
|
||||
}
|
||||
}
|
59
02-Easy5/E5/sources/kotlin/collections/ReversedList.java
Normal file
59
02-Easy5/E5/sources/kotlin/collections/ReversedList.java
Normal file
@ -0,0 +1,59 @@
|
||||
package kotlin.collections;
|
||||
|
||||
import java.util.List;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
|
||||
/* compiled from: ReversedViews.kt */
|
||||
@Metadata(d1 = {"\u0000$\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010!\n\u0002\b\u0002\n\u0002\u0010\b\n\u0002\b\u0003\n\u0002\u0010\u0002\n\u0002\b\n\b\u0002\u0018\u0000*\u0004\b\u0000\u0010\u00012\b\u0012\u0004\u0012\u0002H\u00010\u0002B\u0013\u0012\f\u0010\u0003\u001a\b\u0012\u0004\u0012\u00028\u00000\u0004¢\u0006\u0002\u0010\u0005J\u001d\u0010\n\u001a\u00020\u000b2\u0006\u0010\f\u001a\u00020\u00072\u0006\u0010\r\u001a\u00028\u0000H\u0016¢\u0006\u0002\u0010\u000eJ\b\u0010\u000f\u001a\u00020\u000bH\u0016J\u0016\u0010\u0010\u001a\u00028\u00002\u0006\u0010\f\u001a\u00020\u0007H\u0096\u0002¢\u0006\u0002\u0010\u0011J\u0015\u0010\u0012\u001a\u00028\u00002\u0006\u0010\f\u001a\u00020\u0007H\u0016¢\u0006\u0002\u0010\u0011J\u001e\u0010\u0013\u001a\u00028\u00002\u0006\u0010\f\u001a\u00020\u00072\u0006\u0010\r\u001a\u00028\u0000H\u0096\u0002¢\u0006\u0002\u0010\u0014R\u0014\u0010\u0003\u001a\b\u0012\u0004\u0012\u00028\u00000\u0004X\u0082\u0004¢\u0006\u0002\n\u0000R\u0014\u0010\u0006\u001a\u00020\u00078VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b\b\u0010\t¨\u0006\u0015"}, d2 = {"Lkotlin/collections/ReversedList;", "T", "Lkotlin/collections/AbstractMutableList;", "delegate", "", "(Ljava/util/List;)V", "size", "", "getSize", "()I", "add", "", "index", "element", "(ILjava/lang/Object;)V", "clear", "get", "(I)Ljava/lang/Object;", "removeAt", "set", "(ILjava/lang/Object;)Ljava/lang/Object;", "kotlin-stdlib"}, k = 1, mv = {1, 8, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
final class ReversedList<T> extends AbstractMutableList<T> {
|
||||
private final List<T> delegate;
|
||||
|
||||
public ReversedList(List<T> delegate) {
|
||||
Intrinsics.checkNotNullParameter(delegate, "delegate");
|
||||
this.delegate = delegate;
|
||||
}
|
||||
|
||||
@Override // kotlin.collections.AbstractMutableList
|
||||
public int getSize() {
|
||||
return this.delegate.size();
|
||||
}
|
||||
|
||||
@Override // java.util.AbstractList, java.util.List
|
||||
public T get(int index) {
|
||||
int reverseElementIndex$CollectionsKt__ReversedViewsKt;
|
||||
List<T> list = this.delegate;
|
||||
reverseElementIndex$CollectionsKt__ReversedViewsKt = CollectionsKt__ReversedViewsKt.reverseElementIndex$CollectionsKt__ReversedViewsKt(this, index);
|
||||
return list.get(reverseElementIndex$CollectionsKt__ReversedViewsKt);
|
||||
}
|
||||
|
||||
@Override // java.util.AbstractList, java.util.AbstractCollection, java.util.Collection, java.util.List
|
||||
public void clear() {
|
||||
this.delegate.clear();
|
||||
}
|
||||
|
||||
@Override // kotlin.collections.AbstractMutableList
|
||||
public T removeAt(int index) {
|
||||
int reverseElementIndex$CollectionsKt__ReversedViewsKt;
|
||||
List<T> list = this.delegate;
|
||||
reverseElementIndex$CollectionsKt__ReversedViewsKt = CollectionsKt__ReversedViewsKt.reverseElementIndex$CollectionsKt__ReversedViewsKt(this, index);
|
||||
return list.remove(reverseElementIndex$CollectionsKt__ReversedViewsKt);
|
||||
}
|
||||
|
||||
@Override // kotlin.collections.AbstractMutableList, java.util.AbstractList, java.util.List
|
||||
public T set(int index, T element) {
|
||||
int reverseElementIndex$CollectionsKt__ReversedViewsKt;
|
||||
List<T> list = this.delegate;
|
||||
reverseElementIndex$CollectionsKt__ReversedViewsKt = CollectionsKt__ReversedViewsKt.reverseElementIndex$CollectionsKt__ReversedViewsKt(this, index);
|
||||
return list.set(reverseElementIndex$CollectionsKt__ReversedViewsKt, element);
|
||||
}
|
||||
|
||||
@Override // kotlin.collections.AbstractMutableList, java.util.AbstractList, java.util.List
|
||||
public void add(int index, T element) {
|
||||
int reversePositionIndex$CollectionsKt__ReversedViewsKt;
|
||||
List<T> list = this.delegate;
|
||||
reversePositionIndex$CollectionsKt__ReversedViewsKt = CollectionsKt__ReversedViewsKt.reversePositionIndex$CollectionsKt__ReversedViewsKt(this, index);
|
||||
list.add(reversePositionIndex$CollectionsKt__ReversedViewsKt, element);
|
||||
}
|
||||
}
|
@ -0,0 +1,32 @@
|
||||
package kotlin.collections;
|
||||
|
||||
import java.util.List;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
|
||||
/* compiled from: ReversedViews.kt */
|
||||
@Metadata(d1 = {"\u0000\u001c\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010 \n\u0002\b\u0002\n\u0002\u0010\b\n\u0002\b\u0006\b\u0012\u0018\u0000*\u0006\b\u0000\u0010\u0001 \u00012\b\u0012\u0004\u0012\u0002H\u00010\u0002B\u0013\u0012\f\u0010\u0003\u001a\b\u0012\u0004\u0012\u00028\u00000\u0004¢\u0006\u0002\u0010\u0005J\u0016\u0010\n\u001a\u00028\u00002\u0006\u0010\u000b\u001a\u00020\u0007H\u0096\u0002¢\u0006\u0002\u0010\fR\u0014\u0010\u0003\u001a\b\u0012\u0004\u0012\u00028\u00000\u0004X\u0082\u0004¢\u0006\u0002\n\u0000R\u0014\u0010\u0006\u001a\u00020\u00078VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b\b\u0010\t¨\u0006\r"}, d2 = {"Lkotlin/collections/ReversedListReadOnly;", "T", "Lkotlin/collections/AbstractList;", "delegate", "", "(Ljava/util/List;)V", "size", "", "getSize", "()I", "get", "index", "(I)Ljava/lang/Object;", "kotlin-stdlib"}, k = 1, mv = {1, 8, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
class ReversedListReadOnly<T> extends AbstractList<T> {
|
||||
private final List<T> delegate;
|
||||
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
public ReversedListReadOnly(List<? extends T> delegate) {
|
||||
Intrinsics.checkNotNullParameter(delegate, "delegate");
|
||||
this.delegate = delegate;
|
||||
}
|
||||
|
||||
@Override // kotlin.collections.AbstractList, kotlin.collections.AbstractCollection
|
||||
/* renamed from: getSize */
|
||||
public int get_size() {
|
||||
return this.delegate.size();
|
||||
}
|
||||
|
||||
@Override // kotlin.collections.AbstractList, java.util.List
|
||||
public T get(int index) {
|
||||
int reverseElementIndex$CollectionsKt__ReversedViewsKt;
|
||||
List<T> list = this.delegate;
|
||||
reverseElementIndex$CollectionsKt__ReversedViewsKt = CollectionsKt__ReversedViewsKt.reverseElementIndex$CollectionsKt__ReversedViewsKt(this, index);
|
||||
return list.get(reverseElementIndex$CollectionsKt__ReversedViewsKt);
|
||||
}
|
||||
}
|
161
02-Easy5/E5/sources/kotlin/collections/RingBuffer.java
Normal file
161
02-Easy5/E5/sources/kotlin/collections/RingBuffer.java
Normal file
@ -0,0 +1,161 @@
|
||||
package kotlin.collections;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.Iterator;
|
||||
import java.util.RandomAccess;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.ranges.RangesKt;
|
||||
|
||||
/* 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\b\n\u0002\b\u0002\n\u0002\u0010\u0011\n\u0002\u0010\u0000\n\u0002\b\t\n\u0002\u0010\u0002\n\u0002\b\b\n\u0002\u0010\u000b\n\u0000\n\u0002\u0010(\n\u0002\b\b\b\u0002\u0018\u0000*\u0004\b\u0000\u0010\u00012\b\u0012\u0004\u0012\u0002H\u00010\u00022\u00060\u0003j\u0002`\u0004B\u000f\b\u0016\u0012\u0006\u0010\u0005\u001a\u00020\u0006¢\u0006\u0002\u0010\u0007B\u001d\u0012\u000e\u0010\b\u001a\n\u0012\u0006\u0012\u0004\u0018\u00010\n0\t\u0012\u0006\u0010\u000b\u001a\u00020\u0006¢\u0006\u0002\u0010\fJ\u0013\u0010\u0013\u001a\u00020\u00142\u0006\u0010\u0015\u001a\u00028\u0000¢\u0006\u0002\u0010\u0016J\u0014\u0010\u0017\u001a\b\u0012\u0004\u0012\u00028\u00000\u00002\u0006\u0010\u0018\u001a\u00020\u0006J\u0016\u0010\u0019\u001a\u00028\u00002\u0006\u0010\u001a\u001a\u00020\u0006H\u0096\u0002¢\u0006\u0002\u0010\u001bJ\u0006\u0010\u001c\u001a\u00020\u001dJ\u000f\u0010\u001e\u001a\b\u0012\u0004\u0012\u00028\u00000\u001fH\u0096\u0002J\u000e\u0010 \u001a\u00020\u00142\u0006\u0010!\u001a\u00020\u0006J\u0015\u0010\"\u001a\n\u0012\u0006\u0012\u0004\u0018\u00010\n0\tH\u0014¢\u0006\u0002\u0010#J'\u0010\"\u001a\b\u0012\u0004\u0012\u0002H\u00010\t\"\u0004\b\u0001\u0010\u00012\f\u0010$\u001a\b\u0012\u0004\u0012\u0002H\u00010\tH\u0014¢\u0006\u0002\u0010%J\u0015\u0010&\u001a\u00020\u0006*\u00020\u00062\u0006\u0010!\u001a\u00020\u0006H\u0082\bR\u0018\u0010\b\u001a\n\u0012\u0006\u0012\u0004\u0018\u00010\n0\tX\u0082\u0004¢\u0006\u0004\n\u0002\u0010\rR\u000e\u0010\u0005\u001a\u00020\u0006X\u0082\u0004¢\u0006\u0002\n\u0000R\u001e\u0010\u000f\u001a\u00020\u00062\u0006\u0010\u000e\u001a\u00020\u0006@RX\u0096\u000e¢\u0006\b\n\u0000\u001a\u0004\b\u0010\u0010\u0011R\u000e\u0010\u0012\u001a\u00020\u0006X\u0082\u000e¢\u0006\u0002\n\u0000¨\u0006'"}, d2 = {"Lkotlin/collections/RingBuffer;", "T", "Lkotlin/collections/AbstractList;", "Ljava/util/RandomAccess;", "Lkotlin/collections/RandomAccess;", "capacity", "", "(I)V", "buffer", "", "", "filledSize", "([Ljava/lang/Object;I)V", "[Ljava/lang/Object;", "<set-?>", "size", "getSize", "()I", "startIndex", "add", "", "element", "(Ljava/lang/Object;)V", "expanded", "maxCapacity", "get", "index", "(I)Ljava/lang/Object;", "isFull", "", "iterator", "", "removeFirst", "n", "toArray", "()[Ljava/lang/Object;", "array", "([Ljava/lang/Object;)[Ljava/lang/Object;", "forward", "kotlin-stdlib"}, k = 1, mv = {1, 8, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
final class RingBuffer<T> extends AbstractList<T> implements RandomAccess {
|
||||
private final Object[] buffer;
|
||||
private final int capacity;
|
||||
private int size;
|
||||
private int startIndex;
|
||||
|
||||
@Override // kotlin.collections.AbstractList, kotlin.collections.AbstractCollection
|
||||
/* renamed from: getSize, reason: from getter */
|
||||
public int get_size() {
|
||||
return this.size;
|
||||
}
|
||||
|
||||
public RingBuffer(Object[] buffer, int i) {
|
||||
Intrinsics.checkNotNullParameter(buffer, "buffer");
|
||||
this.buffer = buffer;
|
||||
if (i < 0) {
|
||||
throw new IllegalArgumentException(("ring buffer filled size should not be negative but it is " + i).toString());
|
||||
}
|
||||
if (i > buffer.length) {
|
||||
throw new IllegalArgumentException(("ring buffer filled size: " + i + " cannot be larger than the buffer size: " + buffer.length).toString());
|
||||
}
|
||||
this.capacity = buffer.length;
|
||||
this.size = i;
|
||||
}
|
||||
|
||||
public RingBuffer(int i) {
|
||||
this(new Object[i], 0);
|
||||
}
|
||||
|
||||
@Override // kotlin.collections.AbstractList, java.util.List
|
||||
public T get(int index) {
|
||||
AbstractList.INSTANCE.checkElementIndex$kotlin_stdlib(index, size());
|
||||
return (T) this.buffer[(this.startIndex + index) % this.capacity];
|
||||
}
|
||||
|
||||
public final boolean isFull() {
|
||||
return size() == this.capacity;
|
||||
}
|
||||
|
||||
@Override // kotlin.collections.AbstractList, kotlin.collections.AbstractCollection, java.util.Collection, java.lang.Iterable
|
||||
public Iterator<T> iterator() {
|
||||
return new AbstractIterator<T>(this) { // from class: kotlin.collections.RingBuffer$iterator$1
|
||||
private int count;
|
||||
private int index;
|
||||
final /* synthetic */ RingBuffer<T> this$0;
|
||||
|
||||
{
|
||||
int i;
|
||||
this.this$0 = this;
|
||||
this.count = this.size();
|
||||
i = ((RingBuffer) this).startIndex;
|
||||
this.index = i;
|
||||
}
|
||||
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
@Override // kotlin.collections.AbstractIterator
|
||||
protected void computeNext() {
|
||||
Object[] objArr;
|
||||
if (this.count != 0) {
|
||||
objArr = ((RingBuffer) this.this$0).buffer;
|
||||
setNext(objArr[this.index]);
|
||||
this.index = (this.index + 1) % ((RingBuffer) this.this$0).capacity;
|
||||
this.count--;
|
||||
return;
|
||||
}
|
||||
done();
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
@Override // kotlin.collections.AbstractCollection, java.util.Collection
|
||||
public <T> T[] toArray(T[] array) {
|
||||
Intrinsics.checkNotNullParameter(array, "array");
|
||||
if (array.length < size()) {
|
||||
array = (T[]) Arrays.copyOf(array, size());
|
||||
Intrinsics.checkNotNullExpressionValue(array, "copyOf(this, newSize)");
|
||||
}
|
||||
int size = size();
|
||||
int i = 0;
|
||||
int i2 = 0;
|
||||
for (int i3 = this.startIndex; i2 < size && i3 < this.capacity; i3++) {
|
||||
array[i2] = this.buffer[i3];
|
||||
i2++;
|
||||
}
|
||||
while (i2 < size) {
|
||||
array[i2] = this.buffer[i];
|
||||
i2++;
|
||||
i++;
|
||||
}
|
||||
if (array.length > size()) {
|
||||
array[size()] = null;
|
||||
}
|
||||
return array;
|
||||
}
|
||||
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
@Override // kotlin.collections.AbstractCollection, java.util.Collection
|
||||
public Object[] toArray() {
|
||||
return toArray(new Object[size()]);
|
||||
}
|
||||
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
public final RingBuffer<T> expanded(int maxCapacity) {
|
||||
Object[] array;
|
||||
int i = this.capacity;
|
||||
int coerceAtMost = RangesKt.coerceAtMost(i + (i >> 1) + 1, maxCapacity);
|
||||
if (this.startIndex == 0) {
|
||||
array = Arrays.copyOf(this.buffer, coerceAtMost);
|
||||
Intrinsics.checkNotNullExpressionValue(array, "copyOf(this, newSize)");
|
||||
} else {
|
||||
array = toArray(new Object[coerceAtMost]);
|
||||
}
|
||||
return new RingBuffer<>(array, size());
|
||||
}
|
||||
|
||||
@Override // java.util.Collection, java.util.List
|
||||
public final void add(T element) {
|
||||
if (isFull()) {
|
||||
throw new IllegalStateException("ring buffer is full");
|
||||
}
|
||||
this.buffer[(this.startIndex + size()) % this.capacity] = element;
|
||||
this.size = size() + 1;
|
||||
}
|
||||
|
||||
public final void removeFirst(int n) {
|
||||
if (n < 0) {
|
||||
throw new IllegalArgumentException(("n shouldn't be negative but it is " + n).toString());
|
||||
}
|
||||
if (n > size()) {
|
||||
throw new IllegalArgumentException(("n shouldn't be greater than the buffer size: n = " + n + ", size = " + size()).toString());
|
||||
}
|
||||
if (n > 0) {
|
||||
int i = this.startIndex;
|
||||
int i2 = (i + n) % this.capacity;
|
||||
if (i > i2) {
|
||||
ArraysKt.fill(this.buffer, (Object) null, i, this.capacity);
|
||||
ArraysKt.fill(this.buffer, (Object) null, 0, i2);
|
||||
} else {
|
||||
ArraysKt.fill(this.buffer, (Object) null, i, i2);
|
||||
}
|
||||
this.startIndex = i2;
|
||||
this.size = size() - n;
|
||||
}
|
||||
}
|
||||
|
||||
private final int forward(int i, int i2) {
|
||||
return (i + i2) % this.capacity;
|
||||
}
|
||||
}
|
10
02-Easy5/E5/sources/kotlin/collections/SetsKt.java
Normal file
10
02-Easy5/E5/sources/kotlin/collections/SetsKt.java
Normal file
@ -0,0 +1,10 @@
|
||||
package kotlin.collections;
|
||||
|
||||
import kotlin.Metadata;
|
||||
|
||||
@Metadata(d1 = {"kotlin/collections/SetsKt__SetsJVMKt", "kotlin/collections/SetsKt__SetsKt", "kotlin/collections/SetsKt___SetsKt"}, k = 4, mv = {1, 8, 0}, xi = 49)
|
||||
/* loaded from: classes.dex */
|
||||
public final class SetsKt extends SetsKt___SetsKt {
|
||||
private SetsKt() {
|
||||
}
|
||||
}
|
@ -0,0 +1,61 @@
|
||||
package kotlin.collections;
|
||||
|
||||
import java.util.Collections;
|
||||
import java.util.Comparator;
|
||||
import java.util.Set;
|
||||
import java.util.TreeSet;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.Unit;
|
||||
import kotlin.collections.builders.SetBuilder;
|
||||
import kotlin.jvm.functions.Function1;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
|
||||
/* JADX INFO: Access modifiers changed from: package-private */
|
||||
/* compiled from: SetsJVM.kt */
|
||||
@Metadata(d1 = {"\u0000B\n\u0000\n\u0002\u0010\"\n\u0002\b\u0002\n\u0002\u0010#\n\u0002\b\u0002\n\u0002\u0010\b\n\u0000\n\u0002\u0018\u0002\n\u0002\u0010\u0002\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0011\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\u001a\"\u0010\u0000\u001a\b\u0012\u0004\u0012\u0002H\u00020\u0001\"\u0004\b\u0000\u0010\u00022\f\u0010\u0003\u001a\b\u0012\u0004\u0012\u0002H\u00020\u0004H\u0001\u001a?\u0010\u0005\u001a\b\u0012\u0004\u0012\u0002H\u00020\u0001\"\u0004\b\u0000\u0010\u00022\u0006\u0010\u0006\u001a\u00020\u00072\u001d\u0010\b\u001a\u0019\u0012\n\u0012\b\u0012\u0004\u0012\u0002H\u00020\u0004\u0012\u0004\u0012\u00020\n0\t¢\u0006\u0002\b\u000bH\u0081\bø\u0001\u0000\u001a7\u0010\u0005\u001a\b\u0012\u0004\u0012\u0002H\u00020\u0001\"\u0004\b\u0000\u0010\u00022\u001d\u0010\b\u001a\u0019\u0012\n\u0012\b\u0012\u0004\u0012\u0002H\u00020\u0004\u0012\u0004\u0012\u00020\n0\t¢\u0006\u0002\b\u000bH\u0081\bø\u0001\u0000\u001a\u0014\u0010\f\u001a\b\u0012\u0004\u0012\u0002H\u00020\u0004\"\u0004\b\u0000\u0010\u0002H\u0001\u001a\u001c\u0010\f\u001a\b\u0012\u0004\u0012\u0002H\u00020\u0004\"\u0004\b\u0000\u0010\u00022\u0006\u0010\u0006\u001a\u00020\u0007H\u0001\u001a\u001f\u0010\r\u001a\b\u0012\u0004\u0012\u0002H\u000e0\u0001\"\u0004\b\u0000\u0010\u000e2\u0006\u0010\u000f\u001a\u0002H\u000e¢\u0006\u0002\u0010\u0010\u001a+\u0010\u0011\u001a\b\u0012\u0004\u0012\u0002H\u000e0\u0012\"\u0004\b\u0000\u0010\u000e2\u0012\u0010\u0013\u001a\n\u0012\u0006\b\u0001\u0012\u0002H\u000e0\u0014\"\u0002H\u000e¢\u0006\u0002\u0010\u0015\u001aG\u0010\u0011\u001a\b\u0012\u0004\u0012\u0002H\u000e0\u0012\"\u0004\b\u0000\u0010\u000e2\u001a\u0010\u0016\u001a\u0016\u0012\u0006\b\u0000\u0012\u0002H\u000e0\u0017j\n\u0012\u0006\b\u0000\u0012\u0002H\u000e`\u00182\u0012\u0010\u0013\u001a\n\u0012\u0006\b\u0001\u0012\u0002H\u000e0\u0014\"\u0002H\u000e¢\u0006\u0002\u0010\u0019\u0082\u0002\u0007\n\u0005\b\u009920\u0001¨\u0006\u001a"}, d2 = {"build", "", "E", "builder", "", "buildSetInternal", "capacity", "", "builderAction", "Lkotlin/Function1;", "", "Lkotlin/ExtensionFunctionType;", "createSetBuilder", "setOf", "T", "element", "(Ljava/lang/Object;)Ljava/util/Set;", "sortedSetOf", "Ljava/util/TreeSet;", "elements", "", "([Ljava/lang/Object;)Ljava/util/TreeSet;", "comparator", "Ljava/util/Comparator;", "Lkotlin/Comparator;", "(Ljava/util/Comparator;[Ljava/lang/Object;)Ljava/util/TreeSet;", "kotlin-stdlib"}, k = 5, mv = {1, 8, 0}, xi = 49, xs = "kotlin/collections/SetsKt")
|
||||
/* loaded from: classes.dex */
|
||||
public class SetsKt__SetsJVMKt {
|
||||
public static final <T> Set<T> setOf(T t) {
|
||||
Set<T> singleton = Collections.singleton(t);
|
||||
Intrinsics.checkNotNullExpressionValue(singleton, "singleton(element)");
|
||||
return singleton;
|
||||
}
|
||||
|
||||
private static final <E> Set<E> buildSetInternal(Function1<? super Set<E>, Unit> builderAction) {
|
||||
Intrinsics.checkNotNullParameter(builderAction, "builderAction");
|
||||
Set createSetBuilder = SetsKt.createSetBuilder();
|
||||
builderAction.invoke(createSetBuilder);
|
||||
return SetsKt.build(createSetBuilder);
|
||||
}
|
||||
|
||||
private static final <E> Set<E> buildSetInternal(int i, Function1<? super Set<E>, Unit> builderAction) {
|
||||
Intrinsics.checkNotNullParameter(builderAction, "builderAction");
|
||||
Set createSetBuilder = SetsKt.createSetBuilder(i);
|
||||
builderAction.invoke(createSetBuilder);
|
||||
return SetsKt.build(createSetBuilder);
|
||||
}
|
||||
|
||||
public static final <E> Set<E> createSetBuilder() {
|
||||
return new SetBuilder();
|
||||
}
|
||||
|
||||
public static final <E> Set<E> createSetBuilder(int i) {
|
||||
return new SetBuilder(i);
|
||||
}
|
||||
|
||||
public static final <E> Set<E> build(Set<E> builder) {
|
||||
Intrinsics.checkNotNullParameter(builder, "builder");
|
||||
return ((SetBuilder) builder).build();
|
||||
}
|
||||
|
||||
public static final <T> TreeSet<T> sortedSetOf(T... elements) {
|
||||
Intrinsics.checkNotNullParameter(elements, "elements");
|
||||
return (TreeSet) ArraysKt.toCollection(elements, new TreeSet());
|
||||
}
|
||||
|
||||
public static final <T> TreeSet<T> sortedSetOf(Comparator<? super T> comparator, T... elements) {
|
||||
Intrinsics.checkNotNullParameter(comparator, "comparator");
|
||||
Intrinsics.checkNotNullParameter(elements, "elements");
|
||||
return (TreeSet) ArraysKt.toCollection(elements, new TreeSet(comparator));
|
||||
}
|
||||
}
|
93
02-Easy5/E5/sources/kotlin/collections/SetsKt__SetsKt.java
Normal file
93
02-Easy5/E5/sources/kotlin/collections/SetsKt__SetsKt.java
Normal file
@ -0,0 +1,93 @@
|
||||
package kotlin.collections;
|
||||
|
||||
import java.util.HashSet;
|
||||
import java.util.LinkedHashSet;
|
||||
import java.util.Set;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.Unit;
|
||||
import kotlin.jvm.functions.Function1;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
|
||||
/* JADX INFO: Access modifiers changed from: package-private */
|
||||
/* compiled from: Sets.kt */
|
||||
@Metadata(d1 = {"\u0000J\n\u0000\n\u0002\u0010\"\n\u0002\b\u0002\n\u0002\u0010\b\n\u0000\n\u0002\u0018\u0002\n\u0002\u0010#\n\u0002\u0010\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0011\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0010\u0000\n\u0002\b\u0005\u001aN\u0010\u0000\u001a\b\u0012\u0004\u0012\u0002H\u00020\u0001\"\u0004\b\u0000\u0010\u00022\u0006\u0010\u0003\u001a\u00020\u00042\u001f\b\u0001\u0010\u0005\u001a\u0019\u0012\n\u0012\b\u0012\u0004\u0012\u0002H\u00020\u0007\u0012\u0004\u0012\u00020\b0\u0006¢\u0006\u0002\b\tH\u0087\bø\u0001\u0000\u0082\u0002\n\n\b\b\u0001\u0012\u0002\u0010\u0002 \u0001\u001aF\u0010\u0000\u001a\b\u0012\u0004\u0012\u0002H\u00020\u0001\"\u0004\b\u0000\u0010\u00022\u001f\b\u0001\u0010\u0005\u001a\u0019\u0012\n\u0012\b\u0012\u0004\u0012\u0002H\u00020\u0007\u0012\u0004\u0012\u00020\b0\u0006¢\u0006\u0002\b\tH\u0087\bø\u0001\u0000\u0082\u0002\n\n\b\b\u0001\u0012\u0002\u0010\u0001 \u0001\u001a\u0012\u0010\n\u001a\b\u0012\u0004\u0012\u0002H\u000b0\u0001\"\u0004\b\u0000\u0010\u000b\u001a\u001f\u0010\f\u001a\u0012\u0012\u0004\u0012\u0002H\u000b0\rj\b\u0012\u0004\u0012\u0002H\u000b`\u000e\"\u0004\b\u0000\u0010\u000bH\u0087\b\u001a5\u0010\f\u001a\u0012\u0012\u0004\u0012\u0002H\u000b0\rj\b\u0012\u0004\u0012\u0002H\u000b`\u000e\"\u0004\b\u0000\u0010\u000b2\u0012\u0010\u000f\u001a\n\u0012\u0006\b\u0001\u0012\u0002H\u000b0\u0010\"\u0002H\u000b¢\u0006\u0002\u0010\u0011\u001a\u001f\u0010\u0012\u001a\u0012\u0012\u0004\u0012\u0002H\u000b0\u0013j\b\u0012\u0004\u0012\u0002H\u000b`\u0014\"\u0004\b\u0000\u0010\u000bH\u0087\b\u001a5\u0010\u0012\u001a\u0012\u0012\u0004\u0012\u0002H\u000b0\u0013j\b\u0012\u0004\u0012\u0002H\u000b`\u0014\"\u0004\b\u0000\u0010\u000b2\u0012\u0010\u000f\u001a\n\u0012\u0006\b\u0001\u0012\u0002H\u000b0\u0010\"\u0002H\u000b¢\u0006\u0002\u0010\u0015\u001a\u0015\u0010\u0016\u001a\b\u0012\u0004\u0012\u0002H\u000b0\u0007\"\u0004\b\u0000\u0010\u000bH\u0087\b\u001a+\u0010\u0016\u001a\b\u0012\u0004\u0012\u0002H\u000b0\u0007\"\u0004\b\u0000\u0010\u000b2\u0012\u0010\u000f\u001a\n\u0012\u0006\b\u0001\u0012\u0002H\u000b0\u0010\"\u0002H\u000b¢\u0006\u0002\u0010\u0017\u001a\u0015\u0010\u0018\u001a\b\u0012\u0004\u0012\u0002H\u000b0\u0001\"\u0004\b\u0000\u0010\u000bH\u0087\b\u001a+\u0010\u0018\u001a\b\u0012\u0004\u0012\u0002H\u000b0\u0001\"\u0004\b\u0000\u0010\u000b2\u0012\u0010\u000f\u001a\n\u0012\u0006\b\u0001\u0012\u0002H\u000b0\u0010\"\u0002H\u000b¢\u0006\u0002\u0010\u0017\u001a'\u0010\u0019\u001a\b\u0012\u0004\u0012\u0002H\u000b0\u0001\"\b\b\u0000\u0010\u000b*\u00020\u001a2\b\u0010\u001b\u001a\u0004\u0018\u0001H\u000bH\u0007¢\u0006\u0002\u0010\u001c\u001a5\u0010\u0019\u001a\b\u0012\u0004\u0012\u0002H\u000b0\u0001\"\b\b\u0000\u0010\u000b*\u00020\u001a2\u0016\u0010\u000f\u001a\f\u0012\b\b\u0001\u0012\u0004\u0018\u0001H\u000b0\u0010\"\u0004\u0018\u0001H\u000bH\u0007¢\u0006\u0002\u0010\u0017\u001a\u001e\u0010\u001d\u001a\b\u0012\u0004\u0012\u0002H\u000b0\u0001\"\u0004\b\u0000\u0010\u000b*\b\u0012\u0004\u0012\u0002H\u000b0\u0001H\u0000\u001a!\u0010\u001e\u001a\b\u0012\u0004\u0012\u0002H\u000b0\u0001\"\u0004\b\u0000\u0010\u000b*\n\u0012\u0004\u0012\u0002H\u000b\u0018\u00010\u0001H\u0087\b\u0082\u0002\u0007\n\u0005\b\u009920\u0001¨\u0006\u001f"}, d2 = {"buildSet", "", "E", "capacity", "", "builderAction", "Lkotlin/Function1;", "", "", "Lkotlin/ExtensionFunctionType;", "emptySet", "T", "hashSetOf", "Ljava/util/HashSet;", "Lkotlin/collections/HashSet;", "elements", "", "([Ljava/lang/Object;)Ljava/util/HashSet;", "linkedSetOf", "Ljava/util/LinkedHashSet;", "Lkotlin/collections/LinkedHashSet;", "([Ljava/lang/Object;)Ljava/util/LinkedHashSet;", "mutableSetOf", "([Ljava/lang/Object;)Ljava/util/Set;", "setOf", "setOfNotNull", "", "element", "(Ljava/lang/Object;)Ljava/util/Set;", "optimizeReadOnlySet", "orEmpty", "kotlin-stdlib"}, k = 5, mv = {1, 8, 0}, xi = 49, xs = "kotlin/collections/SetsKt")
|
||||
/* loaded from: classes.dex */
|
||||
public class SetsKt__SetsKt extends SetsKt__SetsJVMKt {
|
||||
public static final <T> Set<T> emptySet() {
|
||||
return EmptySet.INSTANCE;
|
||||
}
|
||||
|
||||
public static final <T> Set<T> setOf(T... elements) {
|
||||
Intrinsics.checkNotNullParameter(elements, "elements");
|
||||
return elements.length > 0 ? ArraysKt.toSet(elements) : SetsKt.emptySet();
|
||||
}
|
||||
|
||||
private static final <T> Set<T> setOf() {
|
||||
return SetsKt.emptySet();
|
||||
}
|
||||
|
||||
private static final <T> Set<T> mutableSetOf() {
|
||||
return new LinkedHashSet();
|
||||
}
|
||||
|
||||
public static final <T> Set<T> mutableSetOf(T... elements) {
|
||||
Intrinsics.checkNotNullParameter(elements, "elements");
|
||||
return (Set) ArraysKt.toCollection(elements, new LinkedHashSet(MapsKt.mapCapacity(elements.length)));
|
||||
}
|
||||
|
||||
private static final <T> HashSet<T> hashSetOf() {
|
||||
return new HashSet<>();
|
||||
}
|
||||
|
||||
public static final <T> HashSet<T> hashSetOf(T... elements) {
|
||||
Intrinsics.checkNotNullParameter(elements, "elements");
|
||||
return (HashSet) ArraysKt.toCollection(elements, new HashSet(MapsKt.mapCapacity(elements.length)));
|
||||
}
|
||||
|
||||
private static final <T> LinkedHashSet<T> linkedSetOf() {
|
||||
return new LinkedHashSet<>();
|
||||
}
|
||||
|
||||
public static final <T> LinkedHashSet<T> linkedSetOf(T... elements) {
|
||||
Intrinsics.checkNotNullParameter(elements, "elements");
|
||||
return (LinkedHashSet) ArraysKt.toCollection(elements, new LinkedHashSet(MapsKt.mapCapacity(elements.length)));
|
||||
}
|
||||
|
||||
public static final <T> Set<T> setOfNotNull(T t) {
|
||||
return t != null ? SetsKt.setOf(t) : SetsKt.emptySet();
|
||||
}
|
||||
|
||||
public static final <T> Set<T> setOfNotNull(T... elements) {
|
||||
Intrinsics.checkNotNullParameter(elements, "elements");
|
||||
return (Set) ArraysKt.filterNotNullTo(elements, new LinkedHashSet());
|
||||
}
|
||||
|
||||
private static final <E> Set<E> buildSet(Function1<? super Set<E>, Unit> builderAction) {
|
||||
Intrinsics.checkNotNullParameter(builderAction, "builderAction");
|
||||
Set createSetBuilder = SetsKt.createSetBuilder();
|
||||
builderAction.invoke(createSetBuilder);
|
||||
return SetsKt.build(createSetBuilder);
|
||||
}
|
||||
|
||||
private static final <E> Set<E> buildSet(int i, Function1<? super Set<E>, Unit> builderAction) {
|
||||
Intrinsics.checkNotNullParameter(builderAction, "builderAction");
|
||||
Set createSetBuilder = SetsKt.createSetBuilder(i);
|
||||
builderAction.invoke(createSetBuilder);
|
||||
return SetsKt.build(createSetBuilder);
|
||||
}
|
||||
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
private static final <T> Set<T> orEmpty(Set<? extends T> set) {
|
||||
return set == 0 ? SetsKt.emptySet() : set;
|
||||
}
|
||||
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
public static final <T> Set<T> optimizeReadOnlySet(Set<? extends T> set) {
|
||||
Intrinsics.checkNotNullParameter(set, "<this>");
|
||||
int size = set.size();
|
||||
if (size != 0) {
|
||||
return size != 1 ? set : SetsKt.setOf(set.iterator().next());
|
||||
}
|
||||
return SetsKt.emptySet();
|
||||
}
|
||||
}
|
120
02-Easy5/E5/sources/kotlin/collections/SetsKt___SetsKt.java
Normal file
120
02-Easy5/E5/sources/kotlin/collections/SetsKt___SetsKt.java
Normal file
@ -0,0 +1,120 @@
|
||||
package kotlin.collections;
|
||||
|
||||
import java.util.Collection;
|
||||
import java.util.LinkedHashSet;
|
||||
import java.util.Set;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.sequences.Sequence;
|
||||
|
||||
/* JADX INFO: Access modifiers changed from: package-private */
|
||||
/* compiled from: _Sets.kt */
|
||||
@Metadata(d1 = {"\u0000\u001c\n\u0000\n\u0002\u0010\"\n\u0002\b\u0004\n\u0002\u0010\u0011\n\u0000\n\u0002\u0010\u001c\n\u0002\u0018\u0002\n\u0002\b\u0004\u001a,\u0010\u0000\u001a\b\u0012\u0004\u0012\u0002H\u00020\u0001\"\u0004\b\u0000\u0010\u0002*\b\u0012\u0004\u0012\u0002H\u00020\u00012\u0006\u0010\u0003\u001a\u0002H\u0002H\u0086\u0002¢\u0006\u0002\u0010\u0004\u001a4\u0010\u0000\u001a\b\u0012\u0004\u0012\u0002H\u00020\u0001\"\u0004\b\u0000\u0010\u0002*\b\u0012\u0004\u0012\u0002H\u00020\u00012\u000e\u0010\u0005\u001a\n\u0012\u0006\b\u0001\u0012\u0002H\u00020\u0006H\u0086\u0002¢\u0006\u0002\u0010\u0007\u001a-\u0010\u0000\u001a\b\u0012\u0004\u0012\u0002H\u00020\u0001\"\u0004\b\u0000\u0010\u0002*\b\u0012\u0004\u0012\u0002H\u00020\u00012\f\u0010\u0005\u001a\b\u0012\u0004\u0012\u0002H\u00020\bH\u0086\u0002\u001a-\u0010\u0000\u001a\b\u0012\u0004\u0012\u0002H\u00020\u0001\"\u0004\b\u0000\u0010\u0002*\b\u0012\u0004\u0012\u0002H\u00020\u00012\f\u0010\u0005\u001a\b\u0012\u0004\u0012\u0002H\u00020\tH\u0086\u0002\u001a,\u0010\n\u001a\b\u0012\u0004\u0012\u0002H\u00020\u0001\"\u0004\b\u0000\u0010\u0002*\b\u0012\u0004\u0012\u0002H\u00020\u00012\u0006\u0010\u0003\u001a\u0002H\u0002H\u0087\b¢\u0006\u0002\u0010\u0004\u001a,\u0010\u000b\u001a\b\u0012\u0004\u0012\u0002H\u00020\u0001\"\u0004\b\u0000\u0010\u0002*\b\u0012\u0004\u0012\u0002H\u00020\u00012\u0006\u0010\u0003\u001a\u0002H\u0002H\u0086\u0002¢\u0006\u0002\u0010\u0004\u001a4\u0010\u000b\u001a\b\u0012\u0004\u0012\u0002H\u00020\u0001\"\u0004\b\u0000\u0010\u0002*\b\u0012\u0004\u0012\u0002H\u00020\u00012\u000e\u0010\u0005\u001a\n\u0012\u0006\b\u0001\u0012\u0002H\u00020\u0006H\u0086\u0002¢\u0006\u0002\u0010\u0007\u001a-\u0010\u000b\u001a\b\u0012\u0004\u0012\u0002H\u00020\u0001\"\u0004\b\u0000\u0010\u0002*\b\u0012\u0004\u0012\u0002H\u00020\u00012\f\u0010\u0005\u001a\b\u0012\u0004\u0012\u0002H\u00020\bH\u0086\u0002\u001a-\u0010\u000b\u001a\b\u0012\u0004\u0012\u0002H\u00020\u0001\"\u0004\b\u0000\u0010\u0002*\b\u0012\u0004\u0012\u0002H\u00020\u00012\f\u0010\u0005\u001a\b\u0012\u0004\u0012\u0002H\u00020\tH\u0086\u0002\u001a,\u0010\f\u001a\b\u0012\u0004\u0012\u0002H\u00020\u0001\"\u0004\b\u0000\u0010\u0002*\b\u0012\u0004\u0012\u0002H\u00020\u00012\u0006\u0010\u0003\u001a\u0002H\u0002H\u0087\b¢\u0006\u0002\u0010\u0004¨\u0006\r"}, d2 = {"minus", "", "T", "element", "(Ljava/util/Set;Ljava/lang/Object;)Ljava/util/Set;", "elements", "", "(Ljava/util/Set;[Ljava/lang/Object;)Ljava/util/Set;", "", "Lkotlin/sequences/Sequence;", "minusElement", "plus", "plusElement", "kotlin-stdlib"}, k = 5, mv = {1, 8, 0}, xi = 49, xs = "kotlin/collections/SetsKt")
|
||||
/* loaded from: classes.dex */
|
||||
public class SetsKt___SetsKt extends SetsKt__SetsKt {
|
||||
public static final <T> Set<T> minus(Set<? extends T> set, T t) {
|
||||
Intrinsics.checkNotNullParameter(set, "<this>");
|
||||
LinkedHashSet linkedHashSet = new LinkedHashSet(MapsKt.mapCapacity(set.size()));
|
||||
boolean z = false;
|
||||
for (T t2 : set) {
|
||||
boolean z2 = true;
|
||||
if (!z && Intrinsics.areEqual(t2, t)) {
|
||||
z = true;
|
||||
z2 = false;
|
||||
}
|
||||
if (z2) {
|
||||
linkedHashSet.add(t2);
|
||||
}
|
||||
}
|
||||
return linkedHashSet;
|
||||
}
|
||||
|
||||
public static final <T> Set<T> minus(Set<? extends T> set, T[] elements) {
|
||||
Intrinsics.checkNotNullParameter(set, "<this>");
|
||||
Intrinsics.checkNotNullParameter(elements, "elements");
|
||||
LinkedHashSet linkedHashSet = new LinkedHashSet(set);
|
||||
CollectionsKt.removeAll(linkedHashSet, elements);
|
||||
return linkedHashSet;
|
||||
}
|
||||
|
||||
public static final <T> Set<T> minus(Set<? extends T> set, Iterable<? extends T> elements) {
|
||||
Intrinsics.checkNotNullParameter(set, "<this>");
|
||||
Intrinsics.checkNotNullParameter(elements, "elements");
|
||||
Collection<?> convertToListIfNotCollection = CollectionsKt.convertToListIfNotCollection(elements);
|
||||
if (convertToListIfNotCollection.isEmpty()) {
|
||||
return CollectionsKt.toSet(set);
|
||||
}
|
||||
if (!(convertToListIfNotCollection instanceof Set)) {
|
||||
LinkedHashSet linkedHashSet = new LinkedHashSet(set);
|
||||
linkedHashSet.removeAll(convertToListIfNotCollection);
|
||||
return linkedHashSet;
|
||||
}
|
||||
LinkedHashSet linkedHashSet2 = new LinkedHashSet();
|
||||
for (T t : set) {
|
||||
if (!convertToListIfNotCollection.contains(t)) {
|
||||
linkedHashSet2.add(t);
|
||||
}
|
||||
}
|
||||
return linkedHashSet2;
|
||||
}
|
||||
|
||||
public static final <T> Set<T> minus(Set<? extends T> set, Sequence<? extends T> elements) {
|
||||
Intrinsics.checkNotNullParameter(set, "<this>");
|
||||
Intrinsics.checkNotNullParameter(elements, "elements");
|
||||
LinkedHashSet linkedHashSet = new LinkedHashSet(set);
|
||||
CollectionsKt.removeAll(linkedHashSet, elements);
|
||||
return linkedHashSet;
|
||||
}
|
||||
|
||||
private static final <T> Set<T> minusElement(Set<? extends T> set, T t) {
|
||||
Intrinsics.checkNotNullParameter(set, "<this>");
|
||||
return SetsKt.minus(set, t);
|
||||
}
|
||||
|
||||
public static final <T> Set<T> plus(Set<? extends T> set, T t) {
|
||||
Intrinsics.checkNotNullParameter(set, "<this>");
|
||||
LinkedHashSet linkedHashSet = new LinkedHashSet(MapsKt.mapCapacity(set.size() + 1));
|
||||
linkedHashSet.addAll(set);
|
||||
linkedHashSet.add(t);
|
||||
return linkedHashSet;
|
||||
}
|
||||
|
||||
public static final <T> Set<T> plus(Set<? extends T> set, T[] elements) {
|
||||
Intrinsics.checkNotNullParameter(set, "<this>");
|
||||
Intrinsics.checkNotNullParameter(elements, "elements");
|
||||
LinkedHashSet linkedHashSet = new LinkedHashSet(MapsKt.mapCapacity(set.size() + elements.length));
|
||||
linkedHashSet.addAll(set);
|
||||
CollectionsKt.addAll(linkedHashSet, elements);
|
||||
return linkedHashSet;
|
||||
}
|
||||
|
||||
public static final <T> Set<T> plus(Set<? extends T> set, Iterable<? extends T> elements) {
|
||||
int size;
|
||||
Intrinsics.checkNotNullParameter(set, "<this>");
|
||||
Intrinsics.checkNotNullParameter(elements, "elements");
|
||||
Integer collectionSizeOrNull = CollectionsKt.collectionSizeOrNull(elements);
|
||||
if (collectionSizeOrNull != null) {
|
||||
size = set.size() + collectionSizeOrNull.intValue();
|
||||
} else {
|
||||
size = set.size() * 2;
|
||||
}
|
||||
LinkedHashSet linkedHashSet = new LinkedHashSet(MapsKt.mapCapacity(size));
|
||||
linkedHashSet.addAll(set);
|
||||
CollectionsKt.addAll(linkedHashSet, elements);
|
||||
return linkedHashSet;
|
||||
}
|
||||
|
||||
public static final <T> Set<T> plus(Set<? extends T> set, Sequence<? extends T> elements) {
|
||||
Intrinsics.checkNotNullParameter(set, "<this>");
|
||||
Intrinsics.checkNotNullParameter(elements, "elements");
|
||||
LinkedHashSet linkedHashSet = new LinkedHashSet(MapsKt.mapCapacity(set.size() * 2));
|
||||
linkedHashSet.addAll(set);
|
||||
CollectionsKt.addAll(linkedHashSet, elements);
|
||||
return linkedHashSet;
|
||||
}
|
||||
|
||||
private static final <T> Set<T> plusElement(Set<? extends T> set, T t) {
|
||||
Intrinsics.checkNotNullParameter(set, "<this>");
|
||||
return SetsKt.plus(set, t);
|
||||
}
|
||||
}
|
28
02-Easy5/E5/sources/kotlin/collections/ShortIterator.java
Normal file
28
02-Easy5/E5/sources/kotlin/collections/ShortIterator.java
Normal file
@ -0,0 +1,28 @@
|
||||
package kotlin.collections;
|
||||
|
||||
import java.util.Iterator;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.internal.markers.KMappedMarker;
|
||||
|
||||
/* compiled from: PrimitiveIterators.kt */
|
||||
@Metadata(d1 = {"\u0000\u0010\n\u0002\u0018\u0002\n\u0002\u0010(\n\u0002\u0010\n\n\u0002\b\u0005\b&\u0018\u00002\b\u0012\u0004\u0012\u00020\u00020\u0001B\u0005¢\u0006\u0002\u0010\u0003J\u000e\u0010\u0004\u001a\u00020\u0002H\u0086\u0002¢\u0006\u0002\u0010\u0005J\b\u0010\u0006\u001a\u00020\u0002H&¨\u0006\u0007"}, d2 = {"Lkotlin/collections/ShortIterator;", "", "", "()V", "next", "()Ljava/lang/Short;", "nextShort", "kotlin-stdlib"}, k = 1, mv = {1, 8, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public abstract class ShortIterator implements Iterator<Short>, KMappedMarker {
|
||||
public abstract short nextShort();
|
||||
|
||||
@Override // java.util.Iterator
|
||||
public void remove() {
|
||||
throw new UnsupportedOperationException("Operation is not supported for read-only collection");
|
||||
}
|
||||
|
||||
@Override // java.util.Iterator
|
||||
public /* bridge */ /* synthetic */ Short next() {
|
||||
return Short.valueOf(nextShort());
|
||||
}
|
||||
|
||||
@Override // java.util.Iterator
|
||||
/* renamed from: next, reason: avoid collision after fix types in other method */
|
||||
public final Short next2() {
|
||||
return Short.valueOf(nextShort());
|
||||
}
|
||||
}
|
@ -0,0 +1,76 @@
|
||||
package kotlin.collections;
|
||||
|
||||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.Unit;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.jvm.internal.DebugMetadata;
|
||||
import kotlin.coroutines.jvm.internal.RestrictedSuspendLambda;
|
||||
import kotlin.jvm.functions.Function2;
|
||||
import kotlin.sequences.SequenceScope;
|
||||
|
||||
/* JADX INFO: Add missing generic type declarations: [T] */
|
||||
/* compiled from: SlidingWindow.kt */
|
||||
@Metadata(d1 = {"\u0000\u0010\n\u0000\n\u0002\u0018\u0002\n\u0002\u0010 \n\u0002\u0010\u0002\n\u0000\u0010\u0004\u001a\u00020\u0003\"\u0004\b\u0000\u0010\u0000*\u000e\u0012\n\u0012\b\u0012\u0004\u0012\u00028\u00000\u00020\u0001H\u008a@"}, d2 = {"T", "Lkotlin/sequences/SequenceScope;", "", "", "<anonymous>"}, k = 3, mv = {1, 8, 0})
|
||||
@DebugMetadata(c = "kotlin.collections.SlidingWindowKt$windowedIterator$1", f = "SlidingWindow.kt", i = {0, 0, 0, 2, 2, 3, 3}, l = {34, 40, 49, 55, 58}, m = "invokeSuspend", n = {"$this$iterator", "buffer", "gap", "$this$iterator", "buffer", "$this$iterator", "buffer"}, s = {"L$0", "L$1", "I$0", "L$0", "L$1", "L$0", "L$1"})
|
||||
/* loaded from: classes.dex */
|
||||
final class SlidingWindowKt$windowedIterator$1<T> extends RestrictedSuspendLambda implements Function2<SequenceScope<? super List<? extends T>>, Continuation<? super Unit>, Object> {
|
||||
final /* synthetic */ Iterator<T> $iterator;
|
||||
final /* synthetic */ boolean $partialWindows;
|
||||
final /* synthetic */ boolean $reuseBuffer;
|
||||
final /* synthetic */ int $size;
|
||||
final /* synthetic */ int $step;
|
||||
int I$0;
|
||||
private /* synthetic */ Object L$0;
|
||||
Object L$1;
|
||||
Object L$2;
|
||||
int label;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
SlidingWindowKt$windowedIterator$1(int i, int i2, Iterator<? extends T> it, boolean z, boolean z2, Continuation<? super SlidingWindowKt$windowedIterator$1> continuation) {
|
||||
super(2, continuation);
|
||||
this.$size = i;
|
||||
this.$step = i2;
|
||||
this.$iterator = it;
|
||||
this.$reuseBuffer = z;
|
||||
this.$partialWindows = z2;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Continuation<Unit> create(Object obj, Continuation<?> continuation) {
|
||||
SlidingWindowKt$windowedIterator$1 slidingWindowKt$windowedIterator$1 = new SlidingWindowKt$windowedIterator$1(this.$size, this.$step, this.$iterator, this.$reuseBuffer, this.$partialWindows, continuation);
|
||||
slidingWindowKt$windowedIterator$1.L$0 = obj;
|
||||
return slidingWindowKt$windowedIterator$1;
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function2
|
||||
public final Object invoke(SequenceScope<? super List<? extends T>> sequenceScope, Continuation<? super Unit> continuation) {
|
||||
return ((SlidingWindowKt$windowedIterator$1) create(sequenceScope, continuation)).invokeSuspend(Unit.INSTANCE);
|
||||
}
|
||||
|
||||
/* JADX WARN: Removed duplicated region for block: B:15:0x0147 */
|
||||
/* JADX WARN: Removed duplicated region for block: B:22:0x0171 */
|
||||
/* JADX WARN: Removed duplicated region for block: B:34:0x00f5 */
|
||||
/* JADX WARN: Removed duplicated region for block: B:54:0x013d */
|
||||
/* JADX WARN: Removed duplicated region for block: B:60:0x00b0 */
|
||||
/* JADX WARN: Removed duplicated region for block: B:65:0x0084 */
|
||||
/* JADX WARN: Removed duplicated region for block: B:88:0x00e5 A[RETURN] */
|
||||
/* JADX WARN: Removed duplicated region for block: B:89:0x00b4 */
|
||||
/* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:19:0x0168 -> B:12:0x016b). Please report as a decompilation issue!!! */
|
||||
/* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:42:0x0130 -> B:30:0x0133). Please report as a decompilation issue!!! */
|
||||
/* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:63:0x00a9 -> B:50:0x0058). Please report as a decompilation issue!!! */
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct add '--show-bad-code' argument
|
||||
*/
|
||||
public final java.lang.Object invokeSuspend(java.lang.Object r12) {
|
||||
/*
|
||||
Method dump skipped, instructions count: 400
|
||||
To view this dump add '--comments-level debug' option
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: kotlin.collections.SlidingWindowKt$windowedIterator$1.invokeSuspend(java.lang.Object):java.lang.Object");
|
||||
}
|
||||
}
|
41
02-Easy5/E5/sources/kotlin/collections/SlidingWindowKt.java
Normal file
41
02-Easy5/E5/sources/kotlin/collections/SlidingWindowKt.java
Normal file
@ -0,0 +1,41 @@
|
||||
package kotlin.collections;
|
||||
|
||||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.sequences.Sequence;
|
||||
import kotlin.sequences.SequencesKt;
|
||||
|
||||
/* compiled from: SlidingWindow.kt */
|
||||
@Metadata(d1 = {"\u0000*\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0010\b\n\u0002\b\u0002\n\u0002\u0010(\n\u0002\u0010 \n\u0002\b\u0003\n\u0002\u0010\u000b\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\u001a\u0018\u0010\u0000\u001a\u00020\u00012\u0006\u0010\u0002\u001a\u00020\u00032\u0006\u0010\u0004\u001a\u00020\u0003H\u0000\u001aH\u0010\u0005\u001a\u000e\u0012\n\u0012\b\u0012\u0004\u0012\u0002H\b0\u00070\u0006\"\u0004\b\u0000\u0010\b2\f\u0010\t\u001a\b\u0012\u0004\u0012\u0002H\b0\u00062\u0006\u0010\u0002\u001a\u00020\u00032\u0006\u0010\u0004\u001a\u00020\u00032\u0006\u0010\n\u001a\u00020\u000b2\u0006\u0010\f\u001a\u00020\u000bH\u0000\u001aD\u0010\r\u001a\u000e\u0012\n\u0012\b\u0012\u0004\u0012\u0002H\b0\u00070\u000e\"\u0004\b\u0000\u0010\b*\b\u0012\u0004\u0012\u0002H\b0\u000e2\u0006\u0010\u0002\u001a\u00020\u00032\u0006\u0010\u0004\u001a\u00020\u00032\u0006\u0010\n\u001a\u00020\u000b2\u0006\u0010\f\u001a\u00020\u000bH\u0000¨\u0006\u000f"}, d2 = {"checkWindowSizeStep", "", "size", "", "step", "windowedIterator", "", "", "T", "iterator", "partialWindows", "", "reuseBuffer", "windowedSequence", "Lkotlin/sequences/Sequence;", "kotlin-stdlib"}, k = 2, mv = {1, 8, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public final class SlidingWindowKt {
|
||||
public static final void checkWindowSizeStep(int i, int i2) {
|
||||
String str;
|
||||
if (i <= 0 || i2 <= 0) {
|
||||
if (i != i2) {
|
||||
str = "Both size " + i + " and step " + i2 + " must be greater than zero.";
|
||||
} else {
|
||||
str = "size " + i + " must be greater than zero.";
|
||||
}
|
||||
throw new IllegalArgumentException(str.toString());
|
||||
}
|
||||
}
|
||||
|
||||
public static final <T> Sequence<List<T>> windowedSequence(final Sequence<? extends T> sequence, final int i, final int i2, final boolean z, final boolean z2) {
|
||||
Intrinsics.checkNotNullParameter(sequence, "<this>");
|
||||
checkWindowSizeStep(i, i2);
|
||||
return new Sequence<List<? extends T>>() { // from class: kotlin.collections.SlidingWindowKt$windowedSequence$$inlined$Sequence$1
|
||||
@Override // kotlin.sequences.Sequence
|
||||
public Iterator<List<? extends T>> iterator() {
|
||||
return SlidingWindowKt.windowedIterator(Sequence.this.iterator(), i, i2, z, z2);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
public static final <T> Iterator<List<T>> windowedIterator(Iterator<? extends T> iterator, int i, int i2, boolean z, boolean z2) {
|
||||
Intrinsics.checkNotNullParameter(iterator, "iterator");
|
||||
return !iterator.hasNext() ? EmptyIterator.INSTANCE : SequencesKt.iterator(new SlidingWindowKt$windowedIterator$1(i, i2, iterator, z2, z, null));
|
||||
}
|
||||
}
|
13
02-Easy5/E5/sources/kotlin/collections/State.java
Normal file
13
02-Easy5/E5/sources/kotlin/collections/State.java
Normal file
@ -0,0 +1,13 @@
|
||||
package kotlin.collections;
|
||||
|
||||
import kotlin.Metadata;
|
||||
|
||||
/* compiled from: AbstractIterator.kt */
|
||||
@Metadata(d1 = {"\u0000\f\n\u0002\u0018\u0002\n\u0002\u0010\u0010\n\u0002\b\u0006\b\u0082\u0001\u0018\u00002\b\u0012\u0004\u0012\u00020\u00000\u0001B\u0007\b\u0002¢\u0006\u0002\u0010\u0002j\u0002\b\u0003j\u0002\b\u0004j\u0002\b\u0005j\u0002\b\u0006¨\u0006\u0007"}, d2 = {"Lkotlin/collections/State;", "", "(Ljava/lang/String;I)V", "Ready", "NotReady", "Done", "Failed", "kotlin-stdlib"}, k = 1, mv = {1, 8, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
enum State {
|
||||
Ready,
|
||||
NotReady,
|
||||
Done,
|
||||
Failed
|
||||
}
|
26
02-Easy5/E5/sources/kotlin/collections/TypeAliasesKt.java
Normal file
26
02-Easy5/E5/sources/kotlin/collections/TypeAliasesKt.java
Normal file
@ -0,0 +1,26 @@
|
||||
package kotlin.collections;
|
||||
|
||||
import kotlin.Metadata;
|
||||
|
||||
/* compiled from: TypeAliases.kt */
|
||||
@Metadata(d1 = {"\u0000.\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000*,\b\u0007\u0010\u0000\u001a\u0004\b\u0000\u0010\u0001\"\b\u0012\u0004\u0012\u0002H\u00010\u00022\b\u0012\u0004\u0012\u0002H\u00010\u0002B\f\b\u0003\u0012\b\b\u0004\u0012\u0004\b\b(\u0005*>\b\u0007\u0010\u0006\u001a\u0004\b\u0000\u0010\u0007\u001a\u0004\b\u0001\u0010\b\"\u000e\u0012\u0004\u0012\u0002H\u0007\u0012\u0004\u0012\u0002H\b0\t2\u000e\u0012\u0004\u0012\u0002H\u0007\u0012\u0004\u0012\u0002H\b0\tB\f\b\u0003\u0012\b\b\u0004\u0012\u0004\b\b(\u0005*,\b\u0007\u0010\n\u001a\u0004\b\u0000\u0010\u0001\"\b\u0012\u0004\u0012\u0002H\u00010\u000b2\b\u0012\u0004\u0012\u0002H\u00010\u000bB\f\b\u0003\u0012\b\b\u0004\u0012\u0004\b\b(\u0005*>\b\u0007\u0010\f\u001a\u0004\b\u0000\u0010\u0007\u001a\u0004\b\u0001\u0010\b\"\u000e\u0012\u0004\u0012\u0002H\u0007\u0012\u0004\u0012\u0002H\b0\r2\u000e\u0012\u0004\u0012\u0002H\u0007\u0012\u0004\u0012\u0002H\b0\rB\f\b\u0003\u0012\b\b\u0004\u0012\u0004\b\b(\u0005*,\b\u0007\u0010\u000e\u001a\u0004\b\u0000\u0010\u0001\"\b\u0012\u0004\u0012\u0002H\u00010\u000f2\b\u0012\u0004\u0012\u0002H\u00010\u000fB\f\b\u0003\u0012\b\b\u0004\u0012\u0004\b\b(\u0005*\u001a\b\u0007\u0010\u0010\"\u00020\u00112\u00020\u0011B\f\b\u0003\u0012\b\b\u0004\u0012\u0004\b\b(\u0005¨\u0006\u0012"}, d2 = {"ArrayList", "E", "Ljava/util/ArrayList;", "Lkotlin/SinceKotlin;", "version", "1.1", "HashMap", "K", "V", "Ljava/util/HashMap;", "HashSet", "Ljava/util/HashSet;", "LinkedHashMap", "Ljava/util/LinkedHashMap;", "LinkedHashSet", "Ljava/util/LinkedHashSet;", "RandomAccess", "Ljava/util/RandomAccess;", "kotlin-stdlib"}, k = 2, mv = {1, 8, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public final class TypeAliasesKt {
|
||||
public static /* synthetic */ void ArrayList$annotations() {
|
||||
}
|
||||
|
||||
public static /* synthetic */ void HashMap$annotations() {
|
||||
}
|
||||
|
||||
public static /* synthetic */ void HashSet$annotations() {
|
||||
}
|
||||
|
||||
public static /* synthetic */ void LinkedHashMap$annotations() {
|
||||
}
|
||||
|
||||
public static /* synthetic */ void LinkedHashSet$annotations() {
|
||||
}
|
||||
|
||||
public static /* synthetic */ void RandomAccess$annotations() {
|
||||
}
|
||||
}
|
221
02-Easy5/E5/sources/kotlin/collections/UArraySortingKt.java
Normal file
221
02-Easy5/E5/sources/kotlin/collections/UArraySortingKt.java
Normal file
@ -0,0 +1,221 @@
|
||||
package kotlin.collections;
|
||||
|
||||
import kotlin.Metadata;
|
||||
import kotlin.UByte;
|
||||
import kotlin.UByteArray;
|
||||
import kotlin.UShort;
|
||||
import kotlin.UShortArray;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
|
||||
/* compiled from: UArraySorting.kt */
|
||||
@Metadata(d1 = {"\u00000\n\u0000\n\u0002\u0010\b\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0010\u0002\n\u0002\b\u0010\u001a*\u0010\u0000\u001a\u00020\u00012\u0006\u0010\u0002\u001a\u00020\u00032\u0006\u0010\u0004\u001a\u00020\u00012\u0006\u0010\u0005\u001a\u00020\u0001H\u0003ø\u0001\u0000¢\u0006\u0004\b\u0006\u0010\u0007\u001a*\u0010\u0000\u001a\u00020\u00012\u0006\u0010\u0002\u001a\u00020\b2\u0006\u0010\u0004\u001a\u00020\u00012\u0006\u0010\u0005\u001a\u00020\u0001H\u0003ø\u0001\u0000¢\u0006\u0004\b\t\u0010\n\u001a*\u0010\u0000\u001a\u00020\u00012\u0006\u0010\u0002\u001a\u00020\u000b2\u0006\u0010\u0004\u001a\u00020\u00012\u0006\u0010\u0005\u001a\u00020\u0001H\u0003ø\u0001\u0000¢\u0006\u0004\b\f\u0010\r\u001a*\u0010\u0000\u001a\u00020\u00012\u0006\u0010\u0002\u001a\u00020\u000e2\u0006\u0010\u0004\u001a\u00020\u00012\u0006\u0010\u0005\u001a\u00020\u0001H\u0003ø\u0001\u0000¢\u0006\u0004\b\u000f\u0010\u0010\u001a*\u0010\u0011\u001a\u00020\u00122\u0006\u0010\u0002\u001a\u00020\u00032\u0006\u0010\u0004\u001a\u00020\u00012\u0006\u0010\u0005\u001a\u00020\u0001H\u0003ø\u0001\u0000¢\u0006\u0004\b\u0013\u0010\u0014\u001a*\u0010\u0011\u001a\u00020\u00122\u0006\u0010\u0002\u001a\u00020\b2\u0006\u0010\u0004\u001a\u00020\u00012\u0006\u0010\u0005\u001a\u00020\u0001H\u0003ø\u0001\u0000¢\u0006\u0004\b\u0015\u0010\u0016\u001a*\u0010\u0011\u001a\u00020\u00122\u0006\u0010\u0002\u001a\u00020\u000b2\u0006\u0010\u0004\u001a\u00020\u00012\u0006\u0010\u0005\u001a\u00020\u0001H\u0003ø\u0001\u0000¢\u0006\u0004\b\u0017\u0010\u0018\u001a*\u0010\u0011\u001a\u00020\u00122\u0006\u0010\u0002\u001a\u00020\u000e2\u0006\u0010\u0004\u001a\u00020\u00012\u0006\u0010\u0005\u001a\u00020\u0001H\u0003ø\u0001\u0000¢\u0006\u0004\b\u0019\u0010\u001a\u001a*\u0010\u001b\u001a\u00020\u00122\u0006\u0010\u0002\u001a\u00020\u00032\u0006\u0010\u001c\u001a\u00020\u00012\u0006\u0010\u001d\u001a\u00020\u0001H\u0001ø\u0001\u0000¢\u0006\u0004\b\u001e\u0010\u0014\u001a*\u0010\u001b\u001a\u00020\u00122\u0006\u0010\u0002\u001a\u00020\b2\u0006\u0010\u001c\u001a\u00020\u00012\u0006\u0010\u001d\u001a\u00020\u0001H\u0001ø\u0001\u0000¢\u0006\u0004\b\u001f\u0010\u0016\u001a*\u0010\u001b\u001a\u00020\u00122\u0006\u0010\u0002\u001a\u00020\u000b2\u0006\u0010\u001c\u001a\u00020\u00012\u0006\u0010\u001d\u001a\u00020\u0001H\u0001ø\u0001\u0000¢\u0006\u0004\b \u0010\u0018\u001a*\u0010\u001b\u001a\u00020\u00122\u0006\u0010\u0002\u001a\u00020\u000e2\u0006\u0010\u001c\u001a\u00020\u00012\u0006\u0010\u001d\u001a\u00020\u0001H\u0001ø\u0001\u0000¢\u0006\u0004\b!\u0010\u001a\u0082\u0002\u0004\n\u0002\b\u0019¨\u0006\""}, d2 = {"partition", "", "array", "Lkotlin/UByteArray;", "left", "right", "partition-4UcCI2c", "([BII)I", "Lkotlin/UIntArray;", "partition-oBK06Vg", "([III)I", "Lkotlin/ULongArray;", "partition--nroSd4", "([JII)I", "Lkotlin/UShortArray;", "partition-Aa5vz7o", "([SII)I", "quickSort", "", "quickSort-4UcCI2c", "([BII)V", "quickSort-oBK06Vg", "([III)V", "quickSort--nroSd4", "([JII)V", "quickSort-Aa5vz7o", "([SII)V", "sortArray", "fromIndex", "toIndex", "sortArray-4UcCI2c", "sortArray-oBK06Vg", "sortArray--nroSd4", "sortArray-Aa5vz7o", "kotlin-stdlib"}, k = 2, mv = {1, 8, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public final class UArraySortingKt {
|
||||
/* renamed from: partition-4UcCI2c, reason: not valid java name */
|
||||
private static final int m745partition4UcCI2c(byte[] bArr, int i, int i2) {
|
||||
int i3;
|
||||
byte m365getw2LRezQ = UByteArray.m365getw2LRezQ(bArr, (i + i2) / 2);
|
||||
while (i <= i2) {
|
||||
while (true) {
|
||||
int m365getw2LRezQ2 = UByteArray.m365getw2LRezQ(bArr, i) & UByte.MAX_VALUE;
|
||||
i3 = m365getw2LRezQ & UByte.MAX_VALUE;
|
||||
if (Intrinsics.compare(m365getw2LRezQ2, i3) >= 0) {
|
||||
break;
|
||||
}
|
||||
i++;
|
||||
}
|
||||
while (Intrinsics.compare(UByteArray.m365getw2LRezQ(bArr, i2) & UByte.MAX_VALUE, i3) > 0) {
|
||||
i2--;
|
||||
}
|
||||
if (i <= i2) {
|
||||
byte m365getw2LRezQ3 = UByteArray.m365getw2LRezQ(bArr, i);
|
||||
UByteArray.m370setVurrAj0(bArr, i, UByteArray.m365getw2LRezQ(bArr, i2));
|
||||
UByteArray.m370setVurrAj0(bArr, i2, m365getw2LRezQ3);
|
||||
i++;
|
||||
i2--;
|
||||
}
|
||||
}
|
||||
return i;
|
||||
}
|
||||
|
||||
/* renamed from: quickSort-4UcCI2c, reason: not valid java name */
|
||||
private static final void m749quickSort4UcCI2c(byte[] bArr, int i, int i2) {
|
||||
int m745partition4UcCI2c = m745partition4UcCI2c(bArr, i, i2);
|
||||
int i3 = m745partition4UcCI2c - 1;
|
||||
if (i < i3) {
|
||||
m749quickSort4UcCI2c(bArr, i, i3);
|
||||
}
|
||||
if (m745partition4UcCI2c < i2) {
|
||||
m749quickSort4UcCI2c(bArr, m745partition4UcCI2c, i2);
|
||||
}
|
||||
}
|
||||
|
||||
/* renamed from: partition-Aa5vz7o, reason: not valid java name */
|
||||
private static final int m746partitionAa5vz7o(short[] sArr, int i, int i2) {
|
||||
int i3;
|
||||
short m628getMh2AYeg = UShortArray.m628getMh2AYeg(sArr, (i + i2) / 2);
|
||||
while (i <= i2) {
|
||||
while (true) {
|
||||
int m628getMh2AYeg2 = UShortArray.m628getMh2AYeg(sArr, i) & UShort.MAX_VALUE;
|
||||
i3 = m628getMh2AYeg & UShort.MAX_VALUE;
|
||||
if (Intrinsics.compare(m628getMh2AYeg2, i3) >= 0) {
|
||||
break;
|
||||
}
|
||||
i++;
|
||||
}
|
||||
while (Intrinsics.compare(UShortArray.m628getMh2AYeg(sArr, i2) & UShort.MAX_VALUE, i3) > 0) {
|
||||
i2--;
|
||||
}
|
||||
if (i <= i2) {
|
||||
short m628getMh2AYeg3 = UShortArray.m628getMh2AYeg(sArr, i);
|
||||
UShortArray.m633set01HTLdE(sArr, i, UShortArray.m628getMh2AYeg(sArr, i2));
|
||||
UShortArray.m633set01HTLdE(sArr, i2, m628getMh2AYeg3);
|
||||
i++;
|
||||
i2--;
|
||||
}
|
||||
}
|
||||
return i;
|
||||
}
|
||||
|
||||
/* renamed from: quickSort-Aa5vz7o, reason: not valid java name */
|
||||
private static final void m750quickSortAa5vz7o(short[] sArr, int i, int i2) {
|
||||
int m746partitionAa5vz7o = m746partitionAa5vz7o(sArr, i, i2);
|
||||
int i3 = m746partitionAa5vz7o - 1;
|
||||
if (i < i3) {
|
||||
m750quickSortAa5vz7o(sArr, i, i3);
|
||||
}
|
||||
if (m746partitionAa5vz7o < i2) {
|
||||
m750quickSortAa5vz7o(sArr, m746partitionAa5vz7o, i2);
|
||||
}
|
||||
}
|
||||
|
||||
/* JADX WARN: Incorrect condition in loop: B:4:0x0012 */
|
||||
/* JADX WARN: Incorrect condition in loop: B:8:0x001f */
|
||||
/* renamed from: partition-oBK06Vg, reason: not valid java name */
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct add '--show-bad-code' argument
|
||||
*/
|
||||
private static final int m747partitionoBK06Vg(int[] r3, int r4, int r5) {
|
||||
/*
|
||||
int r0 = r4 + r5
|
||||
int r0 = r0 / 2
|
||||
int r0 = kotlin.UIntArray.m444getpVg5ArA(r3, r0)
|
||||
L8:
|
||||
if (r4 > r5) goto L39
|
||||
La:
|
||||
int r1 = kotlin.UIntArray.m444getpVg5ArA(r3, r4)
|
||||
int r1 = kotlin.UByte$$ExternalSyntheticBackport0.m$2(r1, r0)
|
||||
if (r1 >= 0) goto L17
|
||||
int r4 = r4 + 1
|
||||
goto La
|
||||
L17:
|
||||
int r1 = kotlin.UIntArray.m444getpVg5ArA(r3, r5)
|
||||
int r1 = kotlin.UByte$$ExternalSyntheticBackport0.m$2(r1, r0)
|
||||
if (r1 <= 0) goto L24
|
||||
int r5 = r5 + (-1)
|
||||
goto L17
|
||||
L24:
|
||||
if (r4 > r5) goto L8
|
||||
int r1 = kotlin.UIntArray.m444getpVg5ArA(r3, r4)
|
||||
int r2 = kotlin.UIntArray.m444getpVg5ArA(r3, r5)
|
||||
kotlin.UIntArray.m449setVXSXFK8(r3, r4, r2)
|
||||
kotlin.UIntArray.m449setVXSXFK8(r3, r5, r1)
|
||||
int r4 = r4 + 1
|
||||
int r5 = r5 + (-1)
|
||||
goto L8
|
||||
L39:
|
||||
return r4
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: kotlin.collections.UArraySortingKt.m747partitionoBK06Vg(int[], int, int):int");
|
||||
}
|
||||
|
||||
/* renamed from: quickSort-oBK06Vg, reason: not valid java name */
|
||||
private static final void m751quickSortoBK06Vg(int[] iArr, int i, int i2) {
|
||||
int m747partitionoBK06Vg = m747partitionoBK06Vg(iArr, i, i2);
|
||||
int i3 = m747partitionoBK06Vg - 1;
|
||||
if (i < i3) {
|
||||
m751quickSortoBK06Vg(iArr, i, i3);
|
||||
}
|
||||
if (m747partitionoBK06Vg < i2) {
|
||||
m751quickSortoBK06Vg(iArr, m747partitionoBK06Vg, i2);
|
||||
}
|
||||
}
|
||||
|
||||
/* JADX WARN: Incorrect condition in loop: B:4:0x0012 */
|
||||
/* JADX WARN: Incorrect condition in loop: B:8:0x001f */
|
||||
/* renamed from: partition--nroSd4, reason: not valid java name */
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct add '--show-bad-code' argument
|
||||
*/
|
||||
private static final int m744partitionnroSd4(long[] r6, int r7, int r8) {
|
||||
/*
|
||||
int r0 = r7 + r8
|
||||
int r0 = r0 / 2
|
||||
long r0 = kotlin.ULongArray.m523getsVKNKU(r6, r0)
|
||||
L8:
|
||||
if (r7 > r8) goto L39
|
||||
La:
|
||||
long r2 = kotlin.ULongArray.m523getsVKNKU(r6, r7)
|
||||
int r2 = kotlin.UByte$$ExternalSyntheticBackport0.m(r2, r0)
|
||||
if (r2 >= 0) goto L17
|
||||
int r7 = r7 + 1
|
||||
goto La
|
||||
L17:
|
||||
long r2 = kotlin.ULongArray.m523getsVKNKU(r6, r8)
|
||||
int r2 = kotlin.UByte$$ExternalSyntheticBackport0.m(r2, r0)
|
||||
if (r2 <= 0) goto L24
|
||||
int r8 = r8 + (-1)
|
||||
goto L17
|
||||
L24:
|
||||
if (r7 > r8) goto L8
|
||||
long r2 = kotlin.ULongArray.m523getsVKNKU(r6, r7)
|
||||
long r4 = kotlin.ULongArray.m523getsVKNKU(r6, r8)
|
||||
kotlin.ULongArray.m528setk8EXiF4(r6, r7, r4)
|
||||
kotlin.ULongArray.m528setk8EXiF4(r6, r8, r2)
|
||||
int r7 = r7 + 1
|
||||
int r8 = r8 + (-1)
|
||||
goto L8
|
||||
L39:
|
||||
return r7
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: kotlin.collections.UArraySortingKt.m744partitionnroSd4(long[], int, int):int");
|
||||
}
|
||||
|
||||
/* renamed from: quickSort--nroSd4, reason: not valid java name */
|
||||
private static final void m748quickSortnroSd4(long[] jArr, int i, int i2) {
|
||||
int m744partitionnroSd4 = m744partitionnroSd4(jArr, i, i2);
|
||||
int i3 = m744partitionnroSd4 - 1;
|
||||
if (i < i3) {
|
||||
m748quickSortnroSd4(jArr, i, i3);
|
||||
}
|
||||
if (m744partitionnroSd4 < i2) {
|
||||
m748quickSortnroSd4(jArr, m744partitionnroSd4, i2);
|
||||
}
|
||||
}
|
||||
|
||||
/* renamed from: sortArray-4UcCI2c, reason: not valid java name */
|
||||
public static final void m753sortArray4UcCI2c(byte[] array, int i, int i2) {
|
||||
Intrinsics.checkNotNullParameter(array, "array");
|
||||
m749quickSort4UcCI2c(array, i, i2 - 1);
|
||||
}
|
||||
|
||||
/* renamed from: sortArray-Aa5vz7o, reason: not valid java name */
|
||||
public static final void m754sortArrayAa5vz7o(short[] array, int i, int i2) {
|
||||
Intrinsics.checkNotNullParameter(array, "array");
|
||||
m750quickSortAa5vz7o(array, i, i2 - 1);
|
||||
}
|
||||
|
||||
/* renamed from: sortArray-oBK06Vg, reason: not valid java name */
|
||||
public static final void m755sortArrayoBK06Vg(int[] array, int i, int i2) {
|
||||
Intrinsics.checkNotNullParameter(array, "array");
|
||||
m751quickSortoBK06Vg(array, i, i2 - 1);
|
||||
}
|
||||
|
||||
/* renamed from: sortArray--nroSd4, reason: not valid java name */
|
||||
public static final void m752sortArraynroSd4(long[] array, int i, int i2) {
|
||||
Intrinsics.checkNotNullParameter(array, "array");
|
||||
m748quickSortnroSd4(array, i, i2 - 1);
|
||||
}
|
||||
}
|
11
02-Easy5/E5/sources/kotlin/collections/UCollectionsKt.java
Normal file
11
02-Easy5/E5/sources/kotlin/collections/UCollectionsKt.java
Normal file
@ -0,0 +1,11 @@
|
||||
package kotlin.collections;
|
||||
|
||||
import kotlin.Metadata;
|
||||
|
||||
/* compiled from: _UCollections.kt */
|
||||
@Metadata(d1 = {"kotlin/collections/UCollectionsKt___UCollectionsKt"}, k = 4, mv = {1, 8, 0}, xi = 49)
|
||||
/* loaded from: classes.dex */
|
||||
public final class UCollectionsKt extends UCollectionsKt___UCollectionsKt {
|
||||
private UCollectionsKt() {
|
||||
}
|
||||
}
|
@ -0,0 +1,107 @@
|
||||
package kotlin.collections;
|
||||
|
||||
import java.util.Collection;
|
||||
import java.util.Iterator;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.UByte;
|
||||
import kotlin.UByteArray;
|
||||
import kotlin.UInt;
|
||||
import kotlin.UIntArray;
|
||||
import kotlin.ULong;
|
||||
import kotlin.ULongArray;
|
||||
import kotlin.UShort;
|
||||
import kotlin.UShortArray;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
|
||||
/* compiled from: _UCollections.kt */
|
||||
@Metadata(d1 = {"\u0000F\n\u0000\n\u0002\u0018\u0002\n\u0002\u0010\u001c\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\u0010\u001e\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\u001a\u001c\u0010\u0000\u001a\u00020\u0001*\b\u0012\u0004\u0012\u00020\u00030\u0002H\u0007ø\u0001\u0000¢\u0006\u0004\b\u0004\u0010\u0005\u001a\u001c\u0010\u0000\u001a\u00020\u0001*\b\u0012\u0004\u0012\u00020\u00010\u0002H\u0007ø\u0001\u0000¢\u0006\u0004\b\u0006\u0010\u0005\u001a\u001c\u0010\u0000\u001a\u00020\u0007*\b\u0012\u0004\u0012\u00020\u00070\u0002H\u0007ø\u0001\u0000¢\u0006\u0004\b\b\u0010\t\u001a\u001c\u0010\u0000\u001a\u00020\u0001*\b\u0012\u0004\u0012\u00020\n0\u0002H\u0007ø\u0001\u0000¢\u0006\u0004\b\u000b\u0010\u0005\u001a\u001a\u0010\f\u001a\u00020\r*\b\u0012\u0004\u0012\u00020\u00030\u000eH\u0007ø\u0001\u0000¢\u0006\u0002\u0010\u000f\u001a\u001a\u0010\u0010\u001a\u00020\u0011*\b\u0012\u0004\u0012\u00020\u00010\u000eH\u0007ø\u0001\u0000¢\u0006\u0002\u0010\u0012\u001a\u001a\u0010\u0013\u001a\u00020\u0014*\b\u0012\u0004\u0012\u00020\u00070\u000eH\u0007ø\u0001\u0000¢\u0006\u0002\u0010\u0015\u001a\u001a\u0010\u0016\u001a\u00020\u0017*\b\u0012\u0004\u0012\u00020\n0\u000eH\u0007ø\u0001\u0000¢\u0006\u0002\u0010\u0018\u0082\u0002\u0004\n\u0002\b\u0019¨\u0006\u0019"}, d2 = {"sum", "Lkotlin/UInt;", "", "Lkotlin/UByte;", "sumOfUByte", "(Ljava/lang/Iterable;)I", "sumOfUInt", "Lkotlin/ULong;", "sumOfULong", "(Ljava/lang/Iterable;)J", "Lkotlin/UShort;", "sumOfUShort", "toUByteArray", "Lkotlin/UByteArray;", "", "(Ljava/util/Collection;)[B", "toUIntArray", "Lkotlin/UIntArray;", "(Ljava/util/Collection;)[I", "toULongArray", "Lkotlin/ULongArray;", "(Ljava/util/Collection;)[J", "toUShortArray", "Lkotlin/UShortArray;", "(Ljava/util/Collection;)[S", "kotlin-stdlib"}, k = 5, mv = {1, 8, 0}, xi = 49, xs = "kotlin/collections/UCollectionsKt")
|
||||
/* loaded from: classes.dex */
|
||||
class UCollectionsKt___UCollectionsKt {
|
||||
public static final byte[] toUByteArray(Collection<UByte> collection) {
|
||||
Intrinsics.checkNotNullParameter(collection, "<this>");
|
||||
byte[] m359constructorimpl = UByteArray.m359constructorimpl(collection.size());
|
||||
Iterator<UByte> it = collection.iterator();
|
||||
int i = 0;
|
||||
while (it.hasNext()) {
|
||||
UByteArray.m370setVurrAj0(m359constructorimpl, i, it.next().getData());
|
||||
i++;
|
||||
}
|
||||
return m359constructorimpl;
|
||||
}
|
||||
|
||||
public static final int[] toUIntArray(Collection<UInt> collection) {
|
||||
Intrinsics.checkNotNullParameter(collection, "<this>");
|
||||
int[] m438constructorimpl = UIntArray.m438constructorimpl(collection.size());
|
||||
Iterator<UInt> it = collection.iterator();
|
||||
int i = 0;
|
||||
while (it.hasNext()) {
|
||||
UIntArray.m449setVXSXFK8(m438constructorimpl, i, it.next().getData());
|
||||
i++;
|
||||
}
|
||||
return m438constructorimpl;
|
||||
}
|
||||
|
||||
public static final long[] toULongArray(Collection<ULong> collection) {
|
||||
Intrinsics.checkNotNullParameter(collection, "<this>");
|
||||
long[] m517constructorimpl = ULongArray.m517constructorimpl(collection.size());
|
||||
Iterator<ULong> it = collection.iterator();
|
||||
int i = 0;
|
||||
while (it.hasNext()) {
|
||||
ULongArray.m528setk8EXiF4(m517constructorimpl, i, it.next().getData());
|
||||
i++;
|
||||
}
|
||||
return m517constructorimpl;
|
||||
}
|
||||
|
||||
public static final short[] toUShortArray(Collection<UShort> collection) {
|
||||
Intrinsics.checkNotNullParameter(collection, "<this>");
|
||||
short[] m622constructorimpl = UShortArray.m622constructorimpl(collection.size());
|
||||
Iterator<UShort> it = collection.iterator();
|
||||
int i = 0;
|
||||
while (it.hasNext()) {
|
||||
UShortArray.m633set01HTLdE(m622constructorimpl, i, it.next().getData());
|
||||
i++;
|
||||
}
|
||||
return m622constructorimpl;
|
||||
}
|
||||
|
||||
public static final int sumOfUInt(Iterable<UInt> iterable) {
|
||||
Intrinsics.checkNotNullParameter(iterable, "<this>");
|
||||
Iterator<UInt> it = iterable.iterator();
|
||||
int i = 0;
|
||||
while (it.hasNext()) {
|
||||
i = UInt.m384constructorimpl(i + it.next().getData());
|
||||
}
|
||||
return i;
|
||||
}
|
||||
|
||||
public static final long sumOfULong(Iterable<ULong> iterable) {
|
||||
Intrinsics.checkNotNullParameter(iterable, "<this>");
|
||||
Iterator<ULong> it = iterable.iterator();
|
||||
long j = 0;
|
||||
while (it.hasNext()) {
|
||||
j = ULong.m463constructorimpl(j + it.next().getData());
|
||||
}
|
||||
return j;
|
||||
}
|
||||
|
||||
public static final int sumOfUByte(Iterable<UByte> iterable) {
|
||||
Intrinsics.checkNotNullParameter(iterable, "<this>");
|
||||
Iterator<UByte> it = iterable.iterator();
|
||||
int i = 0;
|
||||
while (it.hasNext()) {
|
||||
i = UInt.m384constructorimpl(i + UInt.m384constructorimpl(it.next().getData() & UByte.MAX_VALUE));
|
||||
}
|
||||
return i;
|
||||
}
|
||||
|
||||
public static final int sumOfUShort(Iterable<UShort> iterable) {
|
||||
Intrinsics.checkNotNullParameter(iterable, "<this>");
|
||||
Iterator<UShort> it = iterable.iterator();
|
||||
int i = 0;
|
||||
while (it.hasNext()) {
|
||||
i = UInt.m384constructorimpl(i + UInt.m384constructorimpl(it.next().getData() & UShort.MAX_VALUE));
|
||||
}
|
||||
return i;
|
||||
}
|
||||
}
|
@ -0,0 +1,40 @@
|
||||
package kotlin.collections.builders;
|
||||
|
||||
import java.util.Map;
|
||||
import java.util.Map.Entry;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.collections.AbstractMutableSet;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
|
||||
/* compiled from: MapBuilder.kt */
|
||||
@Metadata(d1 = {"\u0000\u001e\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010&\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u000b\n\u0002\b\u0004\b \u0018\u0000*\u0014\b\u0000\u0010\u0001*\u000e\u0012\u0004\u0012\u0002H\u0003\u0012\u0004\u0012\u0002H\u00040\u0002*\u0004\b\u0001\u0010\u0003*\u0004\b\u0002\u0010\u00042\b\u0012\u0004\u0012\u0002H\u00010\u0005B\u0005¢\u0006\u0002\u0010\u0006J\u0016\u0010\u0007\u001a\u00020\b2\u0006\u0010\t\u001a\u00028\u0000H\u0086\u0002¢\u0006\u0002\u0010\nJ\u001c\u0010\u000b\u001a\u00020\b2\u0012\u0010\t\u001a\u000e\u0012\u0004\u0012\u00028\u0001\u0012\u0004\u0012\u00028\u00020\u0002H&¨\u0006\f"}, d2 = {"Lkotlin/collections/builders/AbstractMapBuilderEntrySet;", "E", "", "K", "V", "Lkotlin/collections/AbstractMutableSet;", "()V", "contains", "", "element", "(Ljava/util/Map$Entry;)Z", "containsEntry", "kotlin-stdlib"}, k = 1, mv = {1, 8, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public abstract class AbstractMapBuilderEntrySet<E extends Map.Entry<? extends K, ? extends V>, K, V> extends AbstractMutableSet<E> {
|
||||
public abstract boolean containsEntry(Map.Entry<? extends K, ? extends V> element);
|
||||
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
@Override // java.util.AbstractCollection, java.util.Collection, java.util.Set
|
||||
public final /* bridge */ boolean contains(Object obj) {
|
||||
if (obj instanceof Map.Entry) {
|
||||
return contains((AbstractMapBuilderEntrySet<E, K, V>) obj);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override // java.util.AbstractCollection, java.util.Collection, java.util.Set
|
||||
public final /* bridge */ boolean remove(Object obj) {
|
||||
if (obj instanceof Map.Entry) {
|
||||
return remove((Map.Entry<?, ?>) obj);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
public /* bridge */ boolean remove(Map.Entry<?, ?> entry) {
|
||||
return super.remove((Object) entry);
|
||||
}
|
||||
|
||||
public final boolean contains(E element) {
|
||||
Intrinsics.checkNotNullParameter(element, "element");
|
||||
return containsEntry(element);
|
||||
}
|
||||
}
|
473
02-Easy5/E5/sources/kotlin/collections/builders/ListBuilder.java
Normal file
473
02-Easy5/E5/sources/kotlin/collections/builders/ListBuilder.java
Normal file
File diff suppressed because one or more lines are too long
@ -0,0 +1,78 @@
|
||||
package kotlin.collections.builders;
|
||||
|
||||
import androidx.constraintlayout.core.motion.utils.TypedValues;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
|
||||
/* compiled from: ListBuilder.kt */
|
||||
@Metadata(d1 = {"\u00002\n\u0000\n\u0002\u0010\u0011\n\u0002\b\u0002\n\u0002\u0010\b\n\u0002\b\u0006\n\u0002\u0010\u0002\n\u0002\b\u0007\n\u0002\u0010\u000b\n\u0002\b\u0003\n\u0002\u0010 \n\u0002\b\u0004\n\u0002\u0010\u000e\n\u0002\b\u0002\u001a!\u0010\u0000\u001a\b\u0012\u0004\u0012\u0002H\u00020\u0001\"\u0004\b\u0000\u0010\u00022\u0006\u0010\u0003\u001a\u00020\u0004H\u0000¢\u0006\u0002\u0010\u0005\u001a+\u0010\u0006\u001a\b\u0012\u0004\u0012\u0002H\u00070\u0001\"\u0004\b\u0000\u0010\u0007*\b\u0012\u0004\u0012\u0002H\u00070\u00012\u0006\u0010\b\u001a\u00020\u0004H\u0000¢\u0006\u0002\u0010\t\u001a%\u0010\n\u001a\u00020\u000b\"\u0004\b\u0000\u0010\u0002*\b\u0012\u0004\u0012\u0002H\u00020\u00012\u0006\u0010\f\u001a\u00020\u0004H\u0000¢\u0006\u0002\u0010\r\u001a-\u0010\u000e\u001a\u00020\u000b\"\u0004\b\u0000\u0010\u0002*\b\u0012\u0004\u0012\u0002H\u00020\u00012\u0006\u0010\u000f\u001a\u00020\u00042\u0006\u0010\u0010\u001a\u00020\u0004H\u0000¢\u0006\u0002\u0010\u0011\u001a9\u0010\u0012\u001a\u00020\u0013\"\u0004\b\u0000\u0010\u0007*\b\u0012\u0004\u0012\u0002H\u00070\u00012\u0006\u0010\u0014\u001a\u00020\u00042\u0006\u0010\u0015\u001a\u00020\u00042\n\u0010\u0016\u001a\u0006\u0012\u0002\b\u00030\u0017H\u0002¢\u0006\u0002\u0010\u0018\u001a-\u0010\u0019\u001a\u00020\u0004\"\u0004\b\u0000\u0010\u0007*\b\u0012\u0004\u0012\u0002H\u00070\u00012\u0006\u0010\u0014\u001a\u00020\u00042\u0006\u0010\u0015\u001a\u00020\u0004H\u0002¢\u0006\u0002\u0010\u001a\u001a/\u0010\u001b\u001a\u00020\u001c\"\u0004\b\u0000\u0010\u0007*\n\u0012\u0006\b\u0001\u0012\u0002H\u00070\u00012\u0006\u0010\u0014\u001a\u00020\u00042\u0006\u0010\u0015\u001a\u00020\u0004H\u0002¢\u0006\u0002\u0010\u001d¨\u0006\u001e"}, d2 = {"arrayOfUninitializedElements", "", "E", "size", "", "(I)[Ljava/lang/Object;", "copyOfUninitializedElements", "T", "newSize", "([Ljava/lang/Object;I)[Ljava/lang/Object;", "resetAt", "", "index", "([Ljava/lang/Object;I)V", "resetRange", "fromIndex", "toIndex", "([Ljava/lang/Object;II)V", "subarrayContentEquals", "", TypedValues.CycleType.S_WAVE_OFFSET, "length", "other", "", "([Ljava/lang/Object;IILjava/util/List;)Z", "subarrayContentHashCode", "([Ljava/lang/Object;II)I", "subarrayContentToString", "", "([Ljava/lang/Object;II)Ljava/lang/String;", "kotlin-stdlib"}, k = 2, mv = {1, 8, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public final class ListBuilderKt {
|
||||
public static final <E> E[] arrayOfUninitializedElements(int i) {
|
||||
if (i < 0) {
|
||||
throw new IllegalArgumentException("capacity must be non-negative.".toString());
|
||||
}
|
||||
return (E[]) new Object[i];
|
||||
}
|
||||
|
||||
/* JADX INFO: Access modifiers changed from: private */
|
||||
public static final <T> String subarrayContentToString(T[] tArr, int i, int i2) {
|
||||
StringBuilder sb = new StringBuilder((i2 * 3) + 2);
|
||||
sb.append("[");
|
||||
for (int i3 = 0; i3 < i2; i3++) {
|
||||
if (i3 > 0) {
|
||||
sb.append(", ");
|
||||
}
|
||||
sb.append(tArr[i + i3]);
|
||||
}
|
||||
sb.append("]");
|
||||
String sb2 = sb.toString();
|
||||
Intrinsics.checkNotNullExpressionValue(sb2, "sb.toString()");
|
||||
return sb2;
|
||||
}
|
||||
|
||||
/* JADX INFO: Access modifiers changed from: private */
|
||||
public static final <T> int subarrayContentHashCode(T[] tArr, int i, int i2) {
|
||||
int i3 = 1;
|
||||
for (int i4 = 0; i4 < i2; i4++) {
|
||||
T t = tArr[i + i4];
|
||||
i3 = (i3 * 31) + (t != null ? t.hashCode() : 0);
|
||||
}
|
||||
return i3;
|
||||
}
|
||||
|
||||
/* JADX INFO: Access modifiers changed from: private */
|
||||
public static final <T> boolean subarrayContentEquals(T[] tArr, int i, int i2, List<?> list) {
|
||||
if (i2 != list.size()) {
|
||||
return false;
|
||||
}
|
||||
for (int i3 = 0; i3 < i2; i3++) {
|
||||
if (!Intrinsics.areEqual(tArr[i + i3], list.get(i3))) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
public static final <T> T[] copyOfUninitializedElements(T[] tArr, int i) {
|
||||
Intrinsics.checkNotNullParameter(tArr, "<this>");
|
||||
T[] tArr2 = (T[]) Arrays.copyOf(tArr, i);
|
||||
Intrinsics.checkNotNullExpressionValue(tArr2, "copyOf(this, newSize)");
|
||||
return tArr2;
|
||||
}
|
||||
|
||||
public static final <E> void resetAt(E[] eArr, int i) {
|
||||
Intrinsics.checkNotNullParameter(eArr, "<this>");
|
||||
eArr[i] = null;
|
||||
}
|
||||
|
||||
public static final <E> void resetRange(E[] eArr, int i, int i2) {
|
||||
Intrinsics.checkNotNullParameter(eArr, "<this>");
|
||||
while (i < i2) {
|
||||
resetAt(eArr, i);
|
||||
i++;
|
||||
}
|
||||
}
|
||||
}
|
872
02-Easy5/E5/sources/kotlin/collections/builders/MapBuilder.java
Normal file
872
02-Easy5/E5/sources/kotlin/collections/builders/MapBuilder.java
Normal file
File diff suppressed because one or more lines are too long
@ -0,0 +1,87 @@
|
||||
package kotlin.collections.builders;
|
||||
|
||||
import java.util.Collection;
|
||||
import java.util.Iterator;
|
||||
import java.util.Map;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
|
||||
/* compiled from: MapBuilder.kt */
|
||||
@Metadata(d1 = {"\u0000H\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\u0010'\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0010\b\n\u0002\b\u0003\n\u0002\u0010\u000b\n\u0002\b\u0003\n\u0002\u0010\u001e\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0002\n\u0002\u0010&\n\u0002\b\u0002\n\u0002\u0010)\n\u0002\b\u0004\b\u0000\u0018\u0000*\u0004\b\u0000\u0010\u0001*\u0004\b\u0001\u0010\u00022 \u0012\u0010\u0012\u000e\u0012\u0004\u0012\u0002H\u0001\u0012\u0004\u0012\u0002H\u00020\u0004\u0012\u0004\u0012\u0002H\u0001\u0012\u0004\u0012\u0002H\u00020\u0003B\u001b\b\u0000\u0012\u0012\u0010\u0005\u001a\u000e\u0012\u0004\u0012\u00028\u0000\u0012\u0004\u0012\u00028\u00010\u0006¢\u0006\u0002\u0010\u0007J\u001c\u0010\u000e\u001a\u00020\u000f2\u0012\u0010\u0010\u001a\u000e\u0012\u0004\u0012\u00028\u0000\u0012\u0004\u0012\u00028\u00010\u0004H\u0016J\"\u0010\u0011\u001a\u00020\u000f2\u0018\u0010\u0012\u001a\u0014\u0012\u0010\u0012\u000e\u0012\u0004\u0012\u00028\u0000\u0012\u0004\u0012\u00028\u00010\u00040\u0013H\u0016J\b\u0010\u0014\u001a\u00020\u0015H\u0016J\"\u0010\u0016\u001a\u00020\u000f2\u0018\u0010\u0012\u001a\u0014\u0012\u0010\u0012\u000e\u0012\u0004\u0012\u00028\u0000\u0012\u0004\u0012\u00028\u00010\u00040\u0013H\u0016J\u001c\u0010\u0017\u001a\u00020\u000f2\u0012\u0010\u0010\u001a\u000e\u0012\u0004\u0012\u00028\u0000\u0012\u0004\u0012\u00028\u00010\u0018H\u0016J\b\u0010\u0019\u001a\u00020\u000fH\u0016J\u001b\u0010\u001a\u001a\u0014\u0012\u0010\u0012\u000e\u0012\u0004\u0012\u00028\u0000\u0012\u0004\u0012\u00028\u00010\u00040\u001bH\u0096\u0002J\u001c\u0010\u001c\u001a\u00020\u000f2\u0012\u0010\u0010\u001a\u000e\u0012\u0004\u0012\u00028\u0000\u0012\u0004\u0012\u00028\u00010\u0004H\u0016J\"\u0010\u001d\u001a\u00020\u000f2\u0018\u0010\u0012\u001a\u0014\u0012\u0010\u0012\u000e\u0012\u0004\u0012\u00028\u0000\u0012\u0004\u0012\u00028\u00010\u00040\u0013H\u0016J\"\u0010\u001e\u001a\u00020\u000f2\u0018\u0010\u0012\u001a\u0014\u0012\u0010\u0012\u000e\u0012\u0004\u0012\u00028\u0000\u0012\u0004\u0012\u00028\u00010\u00040\u0013H\u0016R\u001d\u0010\u0005\u001a\u000e\u0012\u0004\u0012\u00028\u0000\u0012\u0004\u0012\u00028\u00010\u0006¢\u0006\b\n\u0000\u001a\u0004\b\b\u0010\tR\u0014\u0010\n\u001a\u00020\u000b8VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b\f\u0010\r¨\u0006\u001f"}, d2 = {"Lkotlin/collections/builders/MapBuilderEntries;", "K", "V", "Lkotlin/collections/builders/AbstractMapBuilderEntrySet;", "", "backing", "Lkotlin/collections/builders/MapBuilder;", "(Lkotlin/collections/builders/MapBuilder;)V", "getBacking", "()Lkotlin/collections/builders/MapBuilder;", "size", "", "getSize", "()I", "add", "", "element", "addAll", "elements", "", "clear", "", "containsAll", "containsEntry", "", "isEmpty", "iterator", "", "remove", "removeAll", "retainAll", "kotlin-stdlib"}, k = 1, mv = {1, 8, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public final class MapBuilderEntries<K, V> extends AbstractMapBuilderEntrySet<Map.Entry<K, V>, K, V> {
|
||||
private final MapBuilder<K, V> backing;
|
||||
|
||||
public final MapBuilder<K, V> getBacking() {
|
||||
return this.backing;
|
||||
}
|
||||
|
||||
public MapBuilderEntries(MapBuilder<K, V> backing) {
|
||||
Intrinsics.checkNotNullParameter(backing, "backing");
|
||||
this.backing = backing;
|
||||
}
|
||||
|
||||
@Override // kotlin.collections.AbstractMutableSet
|
||||
public int getSize() {
|
||||
return this.backing.size();
|
||||
}
|
||||
|
||||
@Override // java.util.AbstractCollection, java.util.Collection, java.util.Set
|
||||
public boolean isEmpty() {
|
||||
return this.backing.isEmpty();
|
||||
}
|
||||
|
||||
@Override // kotlin.collections.builders.AbstractMapBuilderEntrySet
|
||||
public boolean containsEntry(Map.Entry<? extends K, ? extends V> element) {
|
||||
Intrinsics.checkNotNullParameter(element, "element");
|
||||
return this.backing.containsEntry$kotlin_stdlib(element);
|
||||
}
|
||||
|
||||
@Override // java.util.AbstractCollection, java.util.Collection, java.util.Set
|
||||
public void clear() {
|
||||
this.backing.clear();
|
||||
}
|
||||
|
||||
@Override // kotlin.collections.AbstractMutableSet, java.util.AbstractCollection, java.util.Collection, java.util.Set
|
||||
public boolean add(Map.Entry<K, V> element) {
|
||||
Intrinsics.checkNotNullParameter(element, "element");
|
||||
throw new UnsupportedOperationException();
|
||||
}
|
||||
|
||||
@Override // java.util.AbstractCollection, java.util.Collection, java.util.Set
|
||||
public boolean addAll(Collection<? extends Map.Entry<K, V>> elements) {
|
||||
Intrinsics.checkNotNullParameter(elements, "elements");
|
||||
throw new UnsupportedOperationException();
|
||||
}
|
||||
|
||||
@Override // kotlin.collections.builders.AbstractMapBuilderEntrySet
|
||||
public boolean remove(Map.Entry element) {
|
||||
Intrinsics.checkNotNullParameter(element, "element");
|
||||
return this.backing.removeEntry$kotlin_stdlib(element);
|
||||
}
|
||||
|
||||
@Override // java.util.AbstractCollection, java.util.Collection, java.lang.Iterable, java.util.Set
|
||||
public Iterator<Map.Entry<K, V>> iterator() {
|
||||
return this.backing.entriesIterator$kotlin_stdlib();
|
||||
}
|
||||
|
||||
@Override // java.util.AbstractCollection, java.util.Collection, java.util.Set
|
||||
public boolean containsAll(Collection<? extends Object> elements) {
|
||||
Intrinsics.checkNotNullParameter(elements, "elements");
|
||||
return this.backing.containsAllEntries$kotlin_stdlib(elements);
|
||||
}
|
||||
|
||||
@Override // java.util.AbstractSet, java.util.AbstractCollection, java.util.Collection, java.util.Set
|
||||
public boolean removeAll(Collection<? extends Object> elements) {
|
||||
Intrinsics.checkNotNullParameter(elements, "elements");
|
||||
this.backing.checkIsMutable$kotlin_stdlib();
|
||||
return super.removeAll(elements);
|
||||
}
|
||||
|
||||
@Override // java.util.AbstractCollection, java.util.Collection, java.util.Set
|
||||
public boolean retainAll(Collection<? extends Object> elements) {
|
||||
Intrinsics.checkNotNullParameter(elements, "elements");
|
||||
this.backing.checkIsMutable$kotlin_stdlib();
|
||||
return super.retainAll(elements);
|
||||
}
|
||||
}
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user