- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
204 lines
7.7 KiB
Java
204 lines
7.7 KiB
Java
package androidx.collection;
|
|
|
|
import java.util.Collection;
|
|
import java.util.Iterator;
|
|
import kotlin.collections.CollectionsKt___CollectionsKt;
|
|
import kotlin.jvm.internal.CollectionToArray;
|
|
import kotlin.jvm.internal.Intrinsics;
|
|
import kotlin.jvm.internal.SourceDebugExtension;
|
|
import kotlin.jvm.internal.markers.KMutableCollection;
|
|
|
|
/* JADX INFO: Add missing generic type declarations: [V] */
|
|
@SourceDebugExtension({"SMAP\nScatterMap.kt\nKotlin\n*S Kotlin\n*F\n+ 1 ScatterMap.kt\nandroidx/collection/MutableScatterMap$MutableMapWrapper$values$1\n+ 2 ScatterMap.kt\nandroidx/collection/ScatterMap\n+ 3 ScatterMap.kt\nandroidx/collection/ScatterMapKt\n+ 4 _Collections.kt\nkotlin/collections/CollectionsKt___CollectionsKt\n*L\n1#1,1850:1\n363#2,6:1851\n373#2,3:1858\n376#2,9:1862\n363#2,6:1871\n373#2,3:1878\n376#2,9:1882\n363#2,6:1891\n373#2,3:1898\n376#2,9:1902\n1826#3:1857\n1688#3:1861\n1826#3:1877\n1688#3:1881\n1826#3:1897\n1688#3:1901\n1726#4,3:1911\n*S KotlinDebug\n*F\n+ 1 ScatterMap.kt\nandroidx/collection/MutableScatterMap$MutableMapWrapper$values$1\n*L\n1546#1:1851,6\n1546#1:1858,3\n1546#1:1862,9\n1557#1:1871,6\n1557#1:1878,3\n1557#1:1882,9\n1567#1:1891,6\n1567#1:1898,3\n1567#1:1902,9\n1546#1:1857\n1546#1:1861\n1557#1:1877\n1557#1:1881\n1567#1:1897\n1567#1:1901\n1577#1:1911,3\n*E\n"})
|
|
/* loaded from: classes.dex */
|
|
public final class MutableScatterMap$MutableMapWrapper$values$1<V> implements Collection<V>, KMutableCollection {
|
|
final /* synthetic */ MutableScatterMap<K, V> this$0;
|
|
|
|
@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);
|
|
}
|
|
|
|
@Override // java.util.Collection
|
|
public boolean remove(Object obj) {
|
|
MutableScatterMap<K, V> mutableScatterMap = this.this$0;
|
|
long[] jArr = mutableScatterMap.metadata;
|
|
int length = jArr.length - 2;
|
|
if (length >= 0) {
|
|
int i = 0;
|
|
while (true) {
|
|
long j = jArr[i];
|
|
if ((((~j) << 7) & j & (-9187201950435737472L)) != -9187201950435737472L) {
|
|
int i2 = 8 - ((~(i - length)) >>> 31);
|
|
for (int i3 = 0; i3 < i2; i3++) {
|
|
if ((255 & j) < 128) {
|
|
int i4 = (i << 3) + i3;
|
|
if (Intrinsics.areEqual(mutableScatterMap.values[i4], obj)) {
|
|
mutableScatterMap.removeValueAt(i4);
|
|
return true;
|
|
}
|
|
}
|
|
j >>= 8;
|
|
}
|
|
if (i2 != 8) {
|
|
break;
|
|
}
|
|
}
|
|
if (i == length) {
|
|
break;
|
|
}
|
|
i++;
|
|
}
|
|
}
|
|
return false;
|
|
}
|
|
|
|
@Override // java.util.Collection
|
|
public boolean removeAll(Collection<? extends Object> elements) {
|
|
boolean contains;
|
|
Intrinsics.checkNotNullParameter(elements, "elements");
|
|
MutableScatterMap<K, V> mutableScatterMap = this.this$0;
|
|
long[] jArr = mutableScatterMap.metadata;
|
|
int length = jArr.length - 2;
|
|
boolean z = false;
|
|
if (length >= 0) {
|
|
int i = 0;
|
|
boolean z2 = false;
|
|
while (true) {
|
|
long j = jArr[i];
|
|
if ((((~j) << 7) & j & (-9187201950435737472L)) != -9187201950435737472L) {
|
|
int i2 = 8 - ((~(i - length)) >>> 31);
|
|
for (int i3 = 0; i3 < i2; i3++) {
|
|
if ((255 & j) < 128) {
|
|
int i4 = (i << 3) + i3;
|
|
contains = CollectionsKt___CollectionsKt.contains(elements, mutableScatterMap.values[i4]);
|
|
if (contains) {
|
|
mutableScatterMap.removeValueAt(i4);
|
|
z2 = true;
|
|
}
|
|
}
|
|
j >>= 8;
|
|
}
|
|
if (i2 != 8) {
|
|
return z2;
|
|
}
|
|
}
|
|
if (i == length) {
|
|
z = z2;
|
|
break;
|
|
}
|
|
i++;
|
|
}
|
|
}
|
|
return z;
|
|
}
|
|
|
|
@Override // java.util.Collection
|
|
public boolean retainAll(Collection<? extends Object> elements) {
|
|
boolean contains;
|
|
Intrinsics.checkNotNullParameter(elements, "elements");
|
|
MutableScatterMap<K, V> mutableScatterMap = this.this$0;
|
|
long[] jArr = mutableScatterMap.metadata;
|
|
int length = jArr.length - 2;
|
|
boolean z = false;
|
|
if (length >= 0) {
|
|
int i = 0;
|
|
boolean z2 = false;
|
|
while (true) {
|
|
long j = jArr[i];
|
|
if ((((~j) << 7) & j & (-9187201950435737472L)) != -9187201950435737472L) {
|
|
int i2 = 8 - ((~(i - length)) >>> 31);
|
|
for (int i3 = 0; i3 < i2; i3++) {
|
|
if ((255 & j) < 128) {
|
|
int i4 = (i << 3) + i3;
|
|
contains = CollectionsKt___CollectionsKt.contains(elements, mutableScatterMap.values[i4]);
|
|
if (!contains) {
|
|
mutableScatterMap.removeValueAt(i4);
|
|
z2 = true;
|
|
}
|
|
}
|
|
j >>= 8;
|
|
}
|
|
if (i2 != 8) {
|
|
return z2;
|
|
}
|
|
}
|
|
if (i == length) {
|
|
z = z2;
|
|
break;
|
|
}
|
|
i++;
|
|
}
|
|
}
|
|
return z;
|
|
}
|
|
|
|
public MutableScatterMap$MutableMapWrapper$values$1(MutableScatterMap<K, V> mutableScatterMap) {
|
|
this.this$0 = mutableScatterMap;
|
|
}
|
|
|
|
@Override // java.util.Collection
|
|
public final /* bridge */ int size() {
|
|
return getSize();
|
|
}
|
|
|
|
public int getSize() {
|
|
return this.this$0._size;
|
|
}
|
|
|
|
@Override // java.util.Collection
|
|
public boolean isEmpty() {
|
|
return this.this$0.isEmpty();
|
|
}
|
|
|
|
@Override // java.util.Collection, java.lang.Iterable
|
|
public Iterator<V> iterator() {
|
|
return new MutableScatterMap$MutableMapWrapper$values$1$iterator$1(this.this$0);
|
|
}
|
|
|
|
@Override // java.util.Collection
|
|
public void clear() {
|
|
this.this$0.clear();
|
|
}
|
|
|
|
@Override // java.util.Collection
|
|
public boolean addAll(Collection<? extends V> elements) {
|
|
Intrinsics.checkNotNullParameter(elements, "elements");
|
|
throw new UnsupportedOperationException();
|
|
}
|
|
|
|
@Override // java.util.Collection
|
|
public boolean add(V v) {
|
|
throw new UnsupportedOperationException();
|
|
}
|
|
|
|
/* 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;
|
|
MutableScatterMap<K, V> mutableScatterMap = this.this$0;
|
|
if (collection.isEmpty()) {
|
|
return true;
|
|
}
|
|
Iterator<T> it = collection.iterator();
|
|
while (it.hasNext()) {
|
|
if (!mutableScatterMap.containsValue(it.next())) {
|
|
return false;
|
|
}
|
|
}
|
|
return true;
|
|
}
|
|
|
|
@Override // java.util.Collection
|
|
public boolean contains(Object obj) {
|
|
return this.this$0.containsValue(obj);
|
|
}
|
|
}
|