- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
112 lines
4.0 KiB
Java
112 lines
4.0 KiB
Java
package androidx.collection;
|
|
|
|
import java.util.Collection;
|
|
import java.util.Iterator;
|
|
import java.util.function.Predicate;
|
|
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] */
|
|
@SourceDebugExtension({"SMAP\nScatterMap.kt\nKotlin\n*S Kotlin\n*F\n+ 1 ScatterMap.kt\nandroidx/collection/ScatterMap$MapWrapper$values$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$values$1\n*L\n749#1:1851,3\n*E\n"})
|
|
/* loaded from: classes.dex */
|
|
public final class ScatterMap$MapWrapper$values$1<V> implements Collection<V>, KMappedMarker {
|
|
final /* synthetic */ ScatterMap<K, V> this$0;
|
|
|
|
@Override // java.util.Collection
|
|
public boolean add(V v) {
|
|
throw new UnsupportedOperationException("Operation is not supported for read-only collection");
|
|
}
|
|
|
|
@Override // java.util.Collection
|
|
public boolean addAll(Collection<? extends V> 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");
|
|
}
|
|
|
|
@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 removeIf(Predicate<? super V> predicate) {
|
|
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 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);
|
|
}
|
|
|
|
public ScatterMap$MapWrapper$values$1(ScatterMap<K, V> scatterMap) {
|
|
this.this$0 = scatterMap;
|
|
}
|
|
|
|
@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() {
|
|
Iterator<V> it;
|
|
it = SequencesKt__SequenceBuilderKt.iterator(new ScatterMap$MapWrapper$values$1$iterator$1(this.this$0, null));
|
|
return it;
|
|
}
|
|
|
|
/* 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;
|
|
ScatterMap<K, V> scatterMap = this.this$0;
|
|
if (collection.isEmpty()) {
|
|
return true;
|
|
}
|
|
Iterator<T> it = collection.iterator();
|
|
while (it.hasNext()) {
|
|
if (!scatterMap.containsValue(it.next())) {
|
|
return false;
|
|
}
|
|
}
|
|
return true;
|
|
}
|
|
|
|
@Override // java.util.Collection
|
|
public boolean contains(Object obj) {
|
|
return this.this$0.containsValue(obj);
|
|
}
|
|
}
|