- 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
56 lines
1.7 KiB
Java
56 lines
1.7 KiB
Java
package kotlin.collections;
|
|
|
|
import java.util.HashSet;
|
|
import java.util.LinkedHashSet;
|
|
import java.util.Set;
|
|
import kotlin.jvm.internal.Intrinsics;
|
|
|
|
/* loaded from: classes5.dex */
|
|
public abstract class SetsKt__SetsKt extends SetsKt__SetsJVMKt {
|
|
public static Set emptySet() {
|
|
return EmptySet.INSTANCE;
|
|
}
|
|
|
|
public static Set setOf(Object... elements) {
|
|
Set emptySet;
|
|
Set set;
|
|
Intrinsics.checkNotNullParameter(elements, "elements");
|
|
if (elements.length > 0) {
|
|
set = ArraysKt___ArraysKt.toSet(elements);
|
|
return set;
|
|
}
|
|
emptySet = emptySet();
|
|
return emptySet;
|
|
}
|
|
|
|
public static Set mutableSetOf(Object... elements) {
|
|
int mapCapacity;
|
|
Intrinsics.checkNotNullParameter(elements, "elements");
|
|
mapCapacity = MapsKt__MapsJVMKt.mapCapacity(elements.length);
|
|
return (Set) ArraysKt___ArraysKt.toCollection(elements, new LinkedHashSet(mapCapacity));
|
|
}
|
|
|
|
public static HashSet hashSetOf(Object... elements) {
|
|
int mapCapacity;
|
|
Intrinsics.checkNotNullParameter(elements, "elements");
|
|
mapCapacity = MapsKt__MapsJVMKt.mapCapacity(elements.length);
|
|
return (HashSet) ArraysKt___ArraysKt.toCollection(elements, new HashSet(mapCapacity));
|
|
}
|
|
|
|
public static final Set optimizeReadOnlySet(Set set) {
|
|
Set emptySet;
|
|
Set of;
|
|
Intrinsics.checkNotNullParameter(set, "<this>");
|
|
int size = set.size();
|
|
if (size == 0) {
|
|
emptySet = emptySet();
|
|
return emptySet;
|
|
}
|
|
if (size != 1) {
|
|
return set;
|
|
}
|
|
of = SetsKt__SetsJVMKt.setOf(set.iterator().next());
|
|
return of;
|
|
}
|
|
}
|