Initial import of ADIF API reverse-engineering toolkit
This commit is contained in:
commit
60388529c1
11486 files changed
+1086536
No files matched your search
@@ -0,0 +1,309 @@
|
||||
package kotlin.collections;
|
||||
|
||||
import com.google.firebase.analytics.FirebaseAnalytics;
|
||||
import java.util.Collection;
|
||||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
import java.util.NoSuchElementException;
|
||||
import java.util.RandomAccess;
|
||||
import kotlin.Deprecated;
|
||||
import kotlin.DeprecationLevel;
|
||||
import kotlin.ExperimentalStdlibApi;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.ReplaceWith;
|
||||
import kotlin.SinceKotlin;
|
||||
import kotlin.WasExperimental;
|
||||
import kotlin.internal.InlineOnly;
|
||||
import kotlin.jvm.functions.Function1;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.jvm.internal.TypeIntrinsics;
|
||||
import kotlin.ranges.IntRange;
|
||||
import kotlin.sequences.Sequence;
|
||||
import kotlin.sequences.SequencesKt;
|
||||
|
||||
/* JADX INFO: Access modifiers changed from: package-private */
|
||||
@Metadata(d1 = {"\u0000P\n\u0000\n\u0002\u0010\u000b\n\u0000\n\u0002\u0010\u001f\n\u0000\n\u0002\u0010\u0011\n\u0000\n\u0002\u0010\u001c\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u001e\n\u0000\n\u0002\u0010\u001d\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010!\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\b\n\u0002\b\u000b\u001a-\u0010\u0000\u001a\u00020\u0001\"\u0004\b\u0000\u0010\u0002*\n\u0012\u0006\b\u0000\u0012\u0002H\u00020\u00032\u000e\u0010\u0004\u001a\n\u0012\u0006\b\u0001\u0012\u0002H\u00020\u0005¢\u0006\u0002\u0010\u0006\u001a&\u0010\u0000\u001a\u00020\u0001\"\u0004\b\u0000\u0010\u0002*\n\u0012\u0006\b\u0000\u0012\u0002H\u00020\u00032\f\u0010\u0004\u001a\b\u0012\u0004\u0012\u0002H\u00020\u0007\u001a&\u0010\u0000\u001a\u00020\u0001\"\u0004\b\u0000\u0010\u0002*\n\u0012\u0006\b\u0000\u0012\u0002H\u00020\u00032\f\u0010\u0004\u001a\b\u0012\u0004\u0012\u0002H\u00020\b\u001a\u001e\u0010\t\u001a\b\u0012\u0004\u0012\u0002H\u00020\n\"\u0004\b\u0000\u0010\u0002*\b\u0012\u0004\u0012\u0002H\u00020\u0007H\u0000\u001a9\u0010\u000b\u001a\u00020\u0001\"\u0004\b\u0000\u0010\u0002*\b\u0012\u0004\u0012\u0002H\u00020\f2\u0012\u0010\r\u001a\u000e\u0012\u0004\u0012\u0002H\u0002\u0012\u0004\u0012\u00020\u00010\u000e2\u0006\u0010\u000f\u001a\u00020\u0001H\u0002¢\u0006\u0002\b\u0010\u001a9\u0010\u000b\u001a\u00020\u0001\"\u0004\b\u0000\u0010\u0002*\b\u0012\u0004\u0012\u0002H\u00020\u00112\u0012\u0010\r\u001a\u000e\u0012\u0004\u0012\u0002H\u0002\u0012\u0004\u0012\u00020\u00010\u000e2\u0006\u0010\u000f\u001a\u00020\u0001H\u0002¢\u0006\u0002\b\u0010\u001a(\u0010\u0012\u001a\u00020\u0013\"\u0004\b\u0000\u0010\u0002*\n\u0012\u0006\b\u0000\u0012\u0002H\u00020\u00032\u0006\u0010\u0014\u001a\u0002H\u0002H\u0087\n¢\u0006\u0002\u0010\u0015\u001a.\u0010\u0012\u001a\u00020\u0013\"\u0004\b\u0000\u0010\u0002*\n\u0012\u0006\b\u0000\u0012\u0002H\u00020\u00032\f\u0010\u0004\u001a\b\u0012\u0004\u0012\u0002H\u00020\u0005H\u0087\n¢\u0006\u0002\u0010\u0016\u001a)\u0010\u0012\u001a\u00020\u0013\"\u0004\b\u0000\u0010\u0002*\n\u0012\u0006\b\u0000\u0012\u0002H\u00020\u00032\f\u0010\u0004\u001a\b\u0012\u0004\u0012\u0002H\u00020\u0007H\u0087\n\u001a)\u0010\u0012\u001a\u00020\u0013\"\u0004\b\u0000\u0010\u0002*\n\u0012\u0006\b\u0000\u0012\u0002H\u00020\u00032\f\u0010\u0004\u001a\b\u0012\u0004\u0012\u0002H\u00020\bH\u0087\n\u001a(\u0010\u0017\u001a\u00020\u0013\"\u0004\b\u0000\u0010\u0002*\n\u0012\u0006\b\u0000\u0012\u0002H\u00020\u00032\u0006\u0010\u0014\u001a\u0002H\u0002H\u0087\n¢\u0006\u0002\u0010\u0015\u001a.\u0010\u0017\u001a\u00020\u0013\"\u0004\b\u0000\u0010\u0002*\n\u0012\u0006\b\u0000\u0012\u0002H\u00020\u00032\f\u0010\u0004\u001a\b\u0012\u0004\u0012\u0002H\u00020\u0005H\u0087\n¢\u0006\u0002\u0010\u0016\u001a)\u0010\u0017\u001a\u00020\u0013\"\u0004\b\u0000\u0010\u0002*\n\u0012\u0006\b\u0000\u0012\u0002H\u00020\u00032\f\u0010\u0004\u001a\b\u0012\u0004\u0012\u0002H\u00020\u0007H\u0087\n\u001a)\u0010\u0017\u001a\u00020\u0013\"\u0004\b\u0000\u0010\u0002*\n\u0012\u0006\b\u0000\u0012\u0002H\u00020\u00032\f\u0010\u0004\u001a\b\u0012\u0004\u0012\u0002H\u00020\bH\u0087\n\u001a-\u0010\u0018\u001a\u00020\u0001\"\t\b\u0000\u0010\u0002¢\u0006\u0002\b\u0019*\n\u0012\u0006\b\u0001\u0012\u0002H\u00020\u00032\u0006\u0010\u0014\u001a\u0002H\u0002H\u0087\b¢\u0006\u0002\u0010\u001a\u001a&\u0010\u0018\u001a\u0002H\u0002\"\u0004\b\u0000\u0010\u0002*\b\u0012\u0004\u0012\u0002H\u00020\u00112\u0006\u0010\u001b\u001a\u00020\u001cH\u0087\b¢\u0006\u0002\u0010\u001d\u001a-\u0010\u001e\u001a\u00020\u0001\"\u0004\b\u0000\u0010\u0002*\n\u0012\u0006\b\u0000\u0012\u0002H\u00020\u00032\u000e\u0010\u0004\u001a\n\u0012\u0006\b\u0001\u0012\u0002H\u00020\u0005¢\u0006\u0002\u0010\u0006\u001a&\u0010\u001e\u001a\u00020\u0001\"\u0004\b\u0000\u0010\u0002*\n\u0012\u0006\b\u0000\u0012\u0002H\u00020\u00032\f\u0010\u0004\u001a\b\u0012\u0004\u0012\u0002H\u00020\u0007\u001a&\u0010\u001e\u001a\u00020\u0001\"\u0004\b\u0000\u0010\u0002*\n\u0012\u0006\b\u0000\u0012\u0002H\u00020\u00032\f\u0010\u0004\u001a\b\u0012\u0004\u0012\u0002H\u00020\b\u001a.\u0010\u001e\u001a\u00020\u0001\"\t\b\u0000\u0010\u0002¢\u0006\u0002\b\u0019*\n\u0012\u0006\b\u0001\u0012\u0002H\u00020\u00032\f\u0010\u0004\u001a\b\u0012\u0004\u0012\u0002H\u00020\nH\u0087\b\u001a*\u0010\u001e\u001a\u00020\u0001\"\u0004\b\u0000\u0010\u0002*\b\u0012\u0004\u0012\u0002H\u00020\f2\u0012\u0010\r\u001a\u000e\u0012\u0004\u0012\u0002H\u0002\u0012\u0004\u0012\u00020\u00010\u000e\u001a*\u0010\u001e\u001a\u00020\u0001\"\u0004\b\u0000\u0010\u0002*\b\u0012\u0004\u0012\u0002H\u00020\u00112\u0012\u0010\r\u001a\u000e\u0012\u0004\u0012\u0002H\u0002\u0012\u0004\u0012\u00020\u00010\u000e\u001a\u001d\u0010\u001f\u001a\u0002H\u0002\"\u0004\b\u0000\u0010\u0002*\b\u0012\u0004\u0012\u0002H\u00020\u0011H\u0007¢\u0006\u0002\u0010 \u001a\u001f\u0010!\u001a\u0004\u0018\u0001H\u0002\"\u0004\b\u0000\u0010\u0002*\b\u0012\u0004\u0012\u0002H\u00020\u0011H\u0007¢\u0006\u0002\u0010 \u001a\u001d\uLine truncated
|
||||
/* loaded from: classes3.dex */
|
||||
public class CollectionsKt__MutableCollectionsKt extends CollectionsKt__MutableCollectionsJVMKt {
|
||||
public static <T> boolean addAll(Collection<? super T> collection, Iterable<? extends T> elements) {
|
||||
Intrinsics.checkNotNullParameter(collection, "<this>");
|
||||
Intrinsics.checkNotNullParameter(elements, "elements");
|
||||
if (elements instanceof Collection) {
|
||||
return collection.addAll((Collection) elements);
|
||||
}
|
||||
Iterator<? extends T> it = elements.iterator();
|
||||
boolean z3 = false;
|
||||
while (it.hasNext()) {
|
||||
if (collection.add(it.next())) {
|
||||
z3 = true;
|
||||
}
|
||||
}
|
||||
return z3;
|
||||
}
|
||||
|
||||
public static <T> Collection<T> convertToListIfNotCollection(Iterable<? extends T> iterable) {
|
||||
Intrinsics.checkNotNullParameter(iterable, "<this>");
|
||||
return iterable instanceof Collection ? (Collection) iterable : CollectionsKt___CollectionsKt.toList(iterable);
|
||||
}
|
||||
|
||||
private static final <T> boolean filterInPlace$CollectionsKt__MutableCollectionsKt(Iterable<? extends T> iterable, Function1<? super T, Boolean> function1, boolean z3) {
|
||||
Iterator<? extends T> it = iterable.iterator();
|
||||
boolean z4 = false;
|
||||
while (it.hasNext()) {
|
||||
if (function1.invoke(it.next()).booleanValue() == z3) {
|
||||
it.remove();
|
||||
z4 = true;
|
||||
}
|
||||
}
|
||||
return z4;
|
||||
}
|
||||
|
||||
@InlineOnly
|
||||
private static final <T> void minusAssign(Collection<? super T> collection, T t2) {
|
||||
Intrinsics.checkNotNullParameter(collection, "<this>");
|
||||
collection.remove(t2);
|
||||
}
|
||||
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
@InlineOnly
|
||||
private static final <T> void plusAssign(Collection<? super T> collection, T t2) {
|
||||
Intrinsics.checkNotNullParameter(collection, "<this>");
|
||||
collection.add(t2);
|
||||
}
|
||||
|
||||
@InlineOnly
|
||||
private static final <T> boolean remove(Collection<? extends T> collection, T t2) {
|
||||
Intrinsics.checkNotNullParameter(collection, "<this>");
|
||||
return TypeIntrinsics.asMutableCollection(collection).remove(t2);
|
||||
}
|
||||
|
||||
@InlineOnly
|
||||
private static final <T> boolean removeAll(Collection<? extends T> collection, Collection<? extends T> elements) {
|
||||
Intrinsics.checkNotNullParameter(collection, "<this>");
|
||||
Intrinsics.checkNotNullParameter(elements, "elements");
|
||||
return TypeIntrinsics.asMutableCollection(collection).removeAll(elements);
|
||||
}
|
||||
|
||||
@SinceKotlin(version = "1.4")
|
||||
@WasExperimental(markerClass = {ExperimentalStdlibApi.class})
|
||||
public static final <T> T removeFirst(List<T> list) {
|
||||
Intrinsics.checkNotNullParameter(list, "<this>");
|
||||
if (list.isEmpty()) {
|
||||
throw new NoSuchElementException("List is empty.");
|
||||
}
|
||||
return list.remove(0);
|
||||
}
|
||||
|
||||
@SinceKotlin(version = "1.4")
|
||||
@WasExperimental(markerClass = {ExperimentalStdlibApi.class})
|
||||
public static final <T> T removeFirstOrNull(List<T> list) {
|
||||
Intrinsics.checkNotNullParameter(list, "<this>");
|
||||
if (list.isEmpty()) {
|
||||
return null;
|
||||
}
|
||||
return list.remove(0);
|
||||
}
|
||||
|
||||
@SinceKotlin(version = "1.4")
|
||||
@WasExperimental(markerClass = {ExperimentalStdlibApi.class})
|
||||
public static <T> T removeLast(List<T> list) {
|
||||
Intrinsics.checkNotNullParameter(list, "<this>");
|
||||
if (list.isEmpty()) {
|
||||
throw new NoSuchElementException("List is empty.");
|
||||
}
|
||||
return list.remove(CollectionsKt__CollectionsKt.getLastIndex(list));
|
||||
}
|
||||
|
||||
@SinceKotlin(version = "1.4")
|
||||
@WasExperimental(markerClass = {ExperimentalStdlibApi.class})
|
||||
public static <T> T removeLastOrNull(List<T> list) {
|
||||
Intrinsics.checkNotNullParameter(list, "<this>");
|
||||
if (list.isEmpty()) {
|
||||
return null;
|
||||
}
|
||||
return list.remove(CollectionsKt__CollectionsKt.getLastIndex(list));
|
||||
}
|
||||
|
||||
@InlineOnly
|
||||
private static final <T> boolean retainAll(Collection<? extends T> collection, Collection<? extends T> elements) {
|
||||
Intrinsics.checkNotNullParameter(collection, "<this>");
|
||||
Intrinsics.checkNotNullParameter(elements, "elements");
|
||||
return TypeIntrinsics.asMutableCollection(collection).retainAll(elements);
|
||||
}
|
||||
|
||||
private static final boolean retainNothing$CollectionsKt__MutableCollectionsKt(Collection<?> collection) {
|
||||
boolean z3 = !collection.isEmpty();
|
||||
collection.clear();
|
||||
return z3;
|
||||
}
|
||||
|
||||
@InlineOnly
|
||||
private static final <T> void minusAssign(Collection<? super T> collection, Iterable<? extends T> elements) {
|
||||
Intrinsics.checkNotNullParameter(collection, "<this>");
|
||||
Intrinsics.checkNotNullParameter(elements, "elements");
|
||||
removeAll(collection, elements);
|
||||
}
|
||||
|
||||
@InlineOnly
|
||||
private static final <T> void plusAssign(Collection<? super T> collection, Iterable<? extends T> elements) {
|
||||
Intrinsics.checkNotNullParameter(collection, "<this>");
|
||||
Intrinsics.checkNotNullParameter(elements, "elements");
|
||||
addAll(collection, elements);
|
||||
}
|
||||
|
||||
@Deprecated(level = DeprecationLevel.ERROR, message = "Use removeAt(index) instead.", replaceWith = @ReplaceWith(expression = "removeAt(index)", imports = {}))
|
||||
@InlineOnly
|
||||
private static final <T> T remove(List<T> list, int i) {
|
||||
Intrinsics.checkNotNullParameter(list, "<this>");
|
||||
return list.remove(i);
|
||||
}
|
||||
|
||||
public static final <T> boolean removeAll(Collection<? super T> collection, Iterable<? extends T> elements) {
|
||||
Intrinsics.checkNotNullParameter(collection, "<this>");
|
||||
Intrinsics.checkNotNullParameter(elements, "elements");
|
||||
return collection.removeAll(convertToListIfNotCollection(elements));
|
||||
}
|
||||
|
||||
public static final <T> boolean retainAll(Collection<? super T> collection, Iterable<? extends T> elements) {
|
||||
Intrinsics.checkNotNullParameter(collection, "<this>");
|
||||
Intrinsics.checkNotNullParameter(elements, "elements");
|
||||
return collection.retainAll(convertToListIfNotCollection(elements));
|
||||
}
|
||||
|
||||
@InlineOnly
|
||||
private static final <T> void minusAssign(Collection<? super T> collection, T[] elements) {
|
||||
Intrinsics.checkNotNullParameter(collection, "<this>");
|
||||
Intrinsics.checkNotNullParameter(elements, "elements");
|
||||
removeAll(collection, elements);
|
||||
}
|
||||
|
||||
@InlineOnly
|
||||
private static final <T> void plusAssign(Collection<? super T> collection, T[] elements) {
|
||||
Intrinsics.checkNotNullParameter(collection, "<this>");
|
||||
Intrinsics.checkNotNullParameter(elements, "elements");
|
||||
addAll(collection, elements);
|
||||
}
|
||||
|
||||
public static final <T> boolean removeAll(Collection<? super T> collection, Sequence<? extends T> elements) {
|
||||
Intrinsics.checkNotNullParameter(collection, "<this>");
|
||||
Intrinsics.checkNotNullParameter(elements, "elements");
|
||||
List list = SequencesKt.toList(elements);
|
||||
return !list.isEmpty() && collection.removeAll(list);
|
||||
}
|
||||
|
||||
public static final <T> boolean retainAll(Collection<? super T> collection, T[] elements) {
|
||||
Intrinsics.checkNotNullParameter(collection, "<this>");
|
||||
Intrinsics.checkNotNullParameter(elements, "elements");
|
||||
if (!(elements.length == 0)) {
|
||||
return collection.retainAll(ArraysKt___ArraysJvmKt.asList(elements));
|
||||
}
|
||||
return retainNothing$CollectionsKt__MutableCollectionsKt(collection);
|
||||
}
|
||||
|
||||
public static <T> boolean addAll(Collection<? super T> collection, Sequence<? extends T> elements) {
|
||||
Intrinsics.checkNotNullParameter(collection, "<this>");
|
||||
Intrinsics.checkNotNullParameter(elements, "elements");
|
||||
Iterator<? extends T> it = elements.iterator();
|
||||
boolean z3 = false;
|
||||
while (it.hasNext()) {
|
||||
if (collection.add(it.next())) {
|
||||
z3 = true;
|
||||
}
|
||||
}
|
||||
return z3;
|
||||
}
|
||||
|
||||
@InlineOnly
|
||||
private static final <T> void minusAssign(Collection<? super T> collection, Sequence<? extends T> elements) {
|
||||
Intrinsics.checkNotNullParameter(collection, "<this>");
|
||||
Intrinsics.checkNotNullParameter(elements, "elements");
|
||||
removeAll(collection, elements);
|
||||
}
|
||||
|
||||
@InlineOnly
|
||||
private static final <T> void plusAssign(Collection<? super T> collection, Sequence<? extends T> elements) {
|
||||
Intrinsics.checkNotNullParameter(collection, "<this>");
|
||||
Intrinsics.checkNotNullParameter(elements, "elements");
|
||||
addAll(collection, elements);
|
||||
}
|
||||
|
||||
/* JADX WARN: Type inference failed for: r0v2, types: [kotlin.collections.IntIterator, java.util.Iterator] */
|
||||
private static final <T> boolean filterInPlace$CollectionsKt__MutableCollectionsKt(List<T> list, Function1<? super T, Boolean> function1, boolean z3) {
|
||||
if (!(list instanceof RandomAccess)) {
|
||||
Intrinsics.checkNotNull(list, "null cannot be cast to non-null type kotlin.collections.MutableIterable<T of kotlin.collections.CollectionsKt__MutableCollectionsKt.filterInPlace>");
|
||||
return filterInPlace$CollectionsKt__MutableCollectionsKt(TypeIntrinsics.asMutableIterable(list), function1, z3);
|
||||
}
|
||||
?? it = new IntRange(0, CollectionsKt__CollectionsKt.getLastIndex(list)).iterator();
|
||||
int i = 0;
|
||||
while (it.hasNext()) {
|
||||
int nextInt = it.nextInt();
|
||||
T t2 = list.get(nextInt);
|
||||
if (function1.invoke(t2).booleanValue() != z3) {
|
||||
if (i != nextInt) {
|
||||
list.set(i, t2);
|
||||
}
|
||||
i++;
|
||||
}
|
||||
}
|
||||
if (i >= list.size()) {
|
||||
return false;
|
||||
}
|
||||
int lastIndex = CollectionsKt__CollectionsKt.getLastIndex(list);
|
||||
if (i > lastIndex) {
|
||||
return true;
|
||||
}
|
||||
while (true) {
|
||||
list.remove(lastIndex);
|
||||
if (lastIndex == i) {
|
||||
return true;
|
||||
}
|
||||
lastIndex--;
|
||||
}
|
||||
}
|
||||
|
||||
public static final <T> boolean removeAll(Collection<? super T> collection, T[] elements) {
|
||||
Intrinsics.checkNotNullParameter(collection, "<this>");
|
||||
Intrinsics.checkNotNullParameter(elements, "elements");
|
||||
return !(elements.length == 0) && collection.removeAll(ArraysKt___ArraysJvmKt.asList(elements));
|
||||
}
|
||||
|
||||
public static <T> boolean addAll(Collection<? super T> collection, T[] elements) {
|
||||
Intrinsics.checkNotNullParameter(collection, "<this>");
|
||||
Intrinsics.checkNotNullParameter(elements, "elements");
|
||||
return collection.addAll(ArraysKt___ArraysJvmKt.asList(elements));
|
||||
}
|
||||
|
||||
public static <T> boolean removeAll(Iterable<? extends T> iterable, Function1<? super T, Boolean> predicate) {
|
||||
Intrinsics.checkNotNullParameter(iterable, "<this>");
|
||||
Intrinsics.checkNotNullParameter(predicate, "predicate");
|
||||
return filterInPlace$CollectionsKt__MutableCollectionsKt((Iterable) iterable, (Function1) predicate, true);
|
||||
}
|
||||
|
||||
public static final <T> boolean retainAll(Collection<? super T> collection, Sequence<? extends T> elements) {
|
||||
Intrinsics.checkNotNullParameter(collection, "<this>");
|
||||
Intrinsics.checkNotNullParameter(elements, "elements");
|
||||
List list = SequencesKt.toList(elements);
|
||||
if (!list.isEmpty()) {
|
||||
return collection.retainAll(list);
|
||||
}
|
||||
return retainNothing$CollectionsKt__MutableCollectionsKt(collection);
|
||||
}
|
||||
|
||||
public static <T> boolean removeAll(List<T> list, Function1<? super T, Boolean> predicate) {
|
||||
Intrinsics.checkNotNullParameter(list, "<this>");
|
||||
Intrinsics.checkNotNullParameter(predicate, "predicate");
|
||||
return filterInPlace$CollectionsKt__MutableCollectionsKt((List) list, (Function1) predicate, true);
|
||||
}
|
||||
|
||||
public static <T> boolean retainAll(Iterable<? extends T> iterable, Function1<? super T, Boolean> predicate) {
|
||||
Intrinsics.checkNotNullParameter(iterable, "<this>");
|
||||
Intrinsics.checkNotNullParameter(predicate, "predicate");
|
||||
return filterInPlace$CollectionsKt__MutableCollectionsKt((Iterable) iterable, (Function1) predicate, false);
|
||||
}
|
||||
|
||||
public static final <T> boolean retainAll(List<T> list, Function1<? super T, Boolean> predicate) {
|
||||
Intrinsics.checkNotNullParameter(list, "<this>");
|
||||
Intrinsics.checkNotNullParameter(predicate, "predicate");
|
||||
return filterInPlace$CollectionsKt__MutableCollectionsKt((List) list, (Function1) predicate, false);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user