- 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
52 lines
1.6 KiB
Java
52 lines
1.6 KiB
Java
package kotlin.collections;
|
|
|
|
import java.util.Collections;
|
|
import java.util.Map;
|
|
import kotlin.Pair;
|
|
import kotlin.collections.builders.MapBuilder;
|
|
import kotlin.jvm.internal.Intrinsics;
|
|
|
|
/* loaded from: classes5.dex */
|
|
public abstract class MapsKt__MapsJVMKt extends MapsKt__MapWithDefaultKt {
|
|
public static int mapCapacity(int i) {
|
|
if (i < 0) {
|
|
return i;
|
|
}
|
|
if (i < 3) {
|
|
return i + 1;
|
|
}
|
|
if (i < 1073741824) {
|
|
return (int) ((i / 0.75f) + 1.0f);
|
|
}
|
|
return Integer.MAX_VALUE;
|
|
}
|
|
|
|
public static Map mapOf(Pair pair) {
|
|
Intrinsics.checkNotNullParameter(pair, "pair");
|
|
Map singletonMap = Collections.singletonMap(pair.getFirst(), pair.getSecond());
|
|
Intrinsics.checkNotNullExpressionValue(singletonMap, "singletonMap(...)");
|
|
return singletonMap;
|
|
}
|
|
|
|
public static Map createMapBuilder() {
|
|
return new MapBuilder();
|
|
}
|
|
|
|
public static Map createMapBuilder(int i) {
|
|
return new MapBuilder(i);
|
|
}
|
|
|
|
public static Map build(Map builder) {
|
|
Intrinsics.checkNotNullParameter(builder, "builder");
|
|
return ((MapBuilder) builder).build();
|
|
}
|
|
|
|
public static final Map toSingletonMap(Map map) {
|
|
Intrinsics.checkNotNullParameter(map, "<this>");
|
|
Map.Entry entry = (Map.Entry) map.entrySet().iterator().next();
|
|
Map singletonMap = Collections.singletonMap(entry.getKey(), entry.getValue());
|
|
Intrinsics.checkNotNullExpressionValue(singletonMap, "with(...)");
|
|
return singletonMap;
|
|
}
|
|
}
|