- Added realracing3-community.apk (71.57 MB) - Removed 32-bit support (armeabi-v7a) - Only includes arm64-v8a libraries - Decompiled source code included - Added README-community.md with analysis
111 lines
3.5 KiB
Java
111 lines
3.5 KiB
Java
package kotlin.collections;
|
|
|
|
import com.ironsource.v8;
|
|
import java.util.Collection;
|
|
import java.util.Iterator;
|
|
import kotlin.jvm.functions.Function1;
|
|
import kotlin.jvm.internal.CollectionToArray;
|
|
import kotlin.jvm.internal.Intrinsics;
|
|
import kotlin.jvm.internal.markers.KMappedMarker;
|
|
|
|
/* loaded from: classes5.dex */
|
|
public abstract class AbstractCollection implements Collection, KMappedMarker {
|
|
@Override // java.util.Collection
|
|
public boolean add(Object obj) {
|
|
throw new UnsupportedOperationException("Operation is not supported for read-only collection");
|
|
}
|
|
|
|
@Override // java.util.Collection
|
|
public boolean addAll(Collection 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 abstract int getSize();
|
|
|
|
@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 collection) {
|
|
throw new UnsupportedOperationException("Operation is not supported for read-only collection");
|
|
}
|
|
|
|
@Override // java.util.Collection
|
|
public boolean retainAll(Collection collection) {
|
|
throw new UnsupportedOperationException("Operation is not supported for read-only collection");
|
|
}
|
|
|
|
@Override // java.util.Collection
|
|
public final /* bridge */ int size() {
|
|
return getSize();
|
|
}
|
|
|
|
@Override // java.util.Collection
|
|
public boolean containsAll(Collection elements) {
|
|
Intrinsics.checkNotNullParameter(elements, "elements");
|
|
Collection collection = elements;
|
|
if (collection.isEmpty()) {
|
|
return true;
|
|
}
|
|
Iterator 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() {
|
|
String joinToString$default;
|
|
joinToString$default = CollectionsKt___CollectionsKt.joinToString$default(this, ", ", v8.i.d, v8.i.e, 0, null, new Function1() { // from class: kotlin.collections.AbstractCollection$toString$1
|
|
{
|
|
super(1);
|
|
}
|
|
|
|
@Override // kotlin.jvm.functions.Function1
|
|
public final CharSequence invoke(Object obj) {
|
|
return obj == AbstractCollection.this ? "(this Collection)" : String.valueOf(obj);
|
|
}
|
|
}, 24, null);
|
|
return joinToString$default;
|
|
}
|
|
|
|
@Override // java.util.Collection
|
|
public Object[] toArray() {
|
|
return CollectionToArray.toArray(this);
|
|
}
|
|
|
|
@Override // java.util.Collection
|
|
public Object[] toArray(Object[] array) {
|
|
Intrinsics.checkNotNullParameter(array, "array");
|
|
return CollectionToArray.toArray(this, array);
|
|
}
|
|
|
|
@Override // java.util.Collection
|
|
public boolean contains(Object obj) {
|
|
if (isEmpty()) {
|
|
return false;
|
|
}
|
|
Iterator<E> it = iterator();
|
|
while (it.hasNext()) {
|
|
if (Intrinsics.areEqual(it.next(), obj)) {
|
|
return true;
|
|
}
|
|
}
|
|
return false;
|
|
}
|
|
}
|