- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
121 lines
4.7 KiB
Java
121 lines
4.7 KiB
Java
package androidx.collection;
|
|
|
|
import java.util.Collection;
|
|
import java.util.Iterator;
|
|
import java.util.Map;
|
|
import java.util.Set;
|
|
import kotlin.jvm.internal.CollectionToArray;
|
|
import kotlin.jvm.internal.Intrinsics;
|
|
import kotlin.jvm.internal.SourceDebugExtension;
|
|
import kotlin.jvm.internal.markers.KMappedMarker;
|
|
import kotlin.sequences.SequencesKt__SequenceBuilderKt;
|
|
|
|
/* JADX INFO: Add missing generic type declarations: [V, K] */
|
|
@SourceDebugExtension({"SMAP\nScatterMap.kt\nKotlin\n*S Kotlin\n*F\n+ 1 ScatterMap.kt\nandroidx/collection/ScatterMap$MapWrapper$entries$1\n+ 2 _Collections.kt\nkotlin/collections/CollectionsKt___CollectionsKt\n*L\n1#1,1850:1\n1726#2,3:1851\n*S KotlinDebug\n*F\n+ 1 ScatterMap.kt\nandroidx/collection/ScatterMap$MapWrapper$entries$1\n*L\n712#1:1851,3\n*E\n"})
|
|
/* loaded from: classes.dex */
|
|
public final class ScatterMap$MapWrapper$entries$1<K, V> implements Set<Map.Entry<? extends K, ? extends V>>, KMappedMarker {
|
|
final /* synthetic */ ScatterMap<K, V> this$0;
|
|
|
|
@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(Map.Entry<? extends K, ? extends V> entry) {
|
|
throw new UnsupportedOperationException("Operation is not supported for read-only collection");
|
|
}
|
|
|
|
@Override // java.util.Set, java.util.Collection
|
|
public boolean addAll(Collection<? extends Map.Entry<? extends K, ? extends V>> 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");
|
|
}
|
|
|
|
@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<? extends Object> collection) {
|
|
throw new UnsupportedOperationException("Operation is not supported for read-only collection");
|
|
}
|
|
|
|
@Override // java.util.Set, java.util.Collection
|
|
public boolean retainAll(Collection<? extends Object> 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 ScatterMap$MapWrapper$entries$1(ScatterMap<K, V> scatterMap) {
|
|
this.this$0 = scatterMap;
|
|
}
|
|
|
|
@Override // java.util.Set, java.util.Collection
|
|
public final /* bridge */ boolean contains(Object obj) {
|
|
if (obj instanceof Map.Entry) {
|
|
return contains((Map.Entry) obj);
|
|
}
|
|
return false;
|
|
}
|
|
|
|
@Override // java.util.Set, java.util.Collection
|
|
public final /* bridge */ int size() {
|
|
return getSize();
|
|
}
|
|
|
|
public int getSize() {
|
|
return this.this$0._size;
|
|
}
|
|
|
|
@Override // java.util.Set, java.util.Collection
|
|
public boolean isEmpty() {
|
|
return this.this$0.isEmpty();
|
|
}
|
|
|
|
@Override // java.util.Set, java.util.Collection, java.lang.Iterable
|
|
public Iterator<Map.Entry<K, V>> iterator() {
|
|
Iterator<Map.Entry<K, V>> it;
|
|
it = SequencesKt__SequenceBuilderKt.iterator(new ScatterMap$MapWrapper$entries$1$iterator$1(this.this$0, null));
|
|
return it;
|
|
}
|
|
|
|
/* JADX WARN: Multi-variable type inference failed */
|
|
@Override // java.util.Set, java.util.Collection
|
|
public boolean containsAll(Collection<? extends Object> elements) {
|
|
Intrinsics.checkNotNullParameter(elements, "elements");
|
|
Collection<? extends Object> collection = elements;
|
|
ScatterMap<K, V> scatterMap = this.this$0;
|
|
if (collection.isEmpty()) {
|
|
return true;
|
|
}
|
|
Iterator<T> it = collection.iterator();
|
|
while (it.hasNext()) {
|
|
Map.Entry entry = (Map.Entry) it.next();
|
|
if (!Intrinsics.areEqual(scatterMap.get(entry.getKey()), entry.getValue())) {
|
|
return false;
|
|
}
|
|
}
|
|
return true;
|
|
}
|
|
|
|
public boolean contains(Map.Entry<? extends K, ? extends V> element) {
|
|
Intrinsics.checkNotNullParameter(element, "element");
|
|
return Intrinsics.areEqual(this.this$0.get(element.getKey()), element.getValue());
|
|
}
|
|
}
|