- 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
91 lines
3.0 KiB
Java
91 lines
3.0 KiB
Java
package kotlin.collections.builders;
|
|
|
|
import java.io.Externalizable;
|
|
import java.io.InvalidObjectException;
|
|
import java.io.ObjectInput;
|
|
import java.io.ObjectOutput;
|
|
import java.util.Collection;
|
|
import java.util.Iterator;
|
|
import java.util.List;
|
|
import java.util.Set;
|
|
import kotlin.collections.CollectionsKt__CollectionsJVMKt;
|
|
import kotlin.collections.SetsKt__SetsJVMKt;
|
|
import kotlin.jvm.internal.DefaultConstructorMarker;
|
|
import kotlin.jvm.internal.Intrinsics;
|
|
|
|
/* loaded from: classes5.dex */
|
|
public final class SerializedCollection implements Externalizable {
|
|
public static final Companion Companion = new Companion(null);
|
|
private static final long serialVersionUID = 0;
|
|
public Collection collection;
|
|
public final int tag;
|
|
|
|
private final Object readResolve() {
|
|
return this.collection;
|
|
}
|
|
|
|
public SerializedCollection(Collection collection, int i) {
|
|
Intrinsics.checkNotNullParameter(collection, "collection");
|
|
this.collection = collection;
|
|
this.tag = i;
|
|
}
|
|
|
|
@Override // java.io.Externalizable
|
|
public void writeExternal(ObjectOutput output) {
|
|
Intrinsics.checkNotNullParameter(output, "output");
|
|
output.writeByte(this.tag);
|
|
output.writeInt(this.collection.size());
|
|
Iterator it = this.collection.iterator();
|
|
while (it.hasNext()) {
|
|
output.writeObject(it.next());
|
|
}
|
|
}
|
|
|
|
@Override // java.io.Externalizable
|
|
public void readExternal(ObjectInput input) {
|
|
List createListBuilder;
|
|
List build;
|
|
List list;
|
|
Set createSetBuilder;
|
|
Intrinsics.checkNotNullParameter(input, "input");
|
|
byte readByte = input.readByte();
|
|
int i = readByte & 1;
|
|
if ((readByte & (-2)) != 0) {
|
|
throw new InvalidObjectException("Unsupported flags value: " + ((int) readByte) + '.');
|
|
}
|
|
int readInt = input.readInt();
|
|
if (readInt < 0) {
|
|
throw new InvalidObjectException("Illegal size value: " + readInt + '.');
|
|
}
|
|
int i2 = 0;
|
|
if (i == 0) {
|
|
createListBuilder = CollectionsKt__CollectionsJVMKt.createListBuilder(readInt);
|
|
while (i2 < readInt) {
|
|
createListBuilder.add(input.readObject());
|
|
i2++;
|
|
}
|
|
build = CollectionsKt__CollectionsJVMKt.build(createListBuilder);
|
|
list = build;
|
|
} else if (i == 1) {
|
|
createSetBuilder = SetsKt__SetsJVMKt.createSetBuilder(readInt);
|
|
while (i2 < readInt) {
|
|
createSetBuilder.add(input.readObject());
|
|
i2++;
|
|
}
|
|
list = SetsKt__SetsJVMKt.build(createSetBuilder);
|
|
} else {
|
|
throw new InvalidObjectException("Unsupported collection type tag: " + i + '.');
|
|
}
|
|
this.collection = list;
|
|
}
|
|
|
|
public static final class Companion {
|
|
public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
|
|
this();
|
|
}
|
|
|
|
public Companion() {
|
|
}
|
|
}
|
|
}
|