Files
rr3-apk/decompiled-community/sources/androidx/collection/internal/LruHashMap.java
Daniel Elliott c080f0d97f Add Discord community version (64-bit only)
- 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
2026-02-18 15:48:36 -08:00

60 lines
1.8 KiB
Java

package androidx.collection.internal;
import java.util.LinkedHashMap;
import java.util.Map;
import java.util.Set;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.jvm.internal.Intrinsics;
/* loaded from: classes.dex */
public final class LruHashMap<K, V> {
private final LinkedHashMap<K, V> map;
public LruHashMap() {
this(0, 0.0f, 3, null);
}
public LruHashMap(int i, float f) {
this.map = new LinkedHashMap<>(i, f, true);
}
public /* synthetic */ LruHashMap(int i, float f, int i2, DefaultConstructorMarker defaultConstructorMarker) {
this((i2 & 1) != 0 ? 16 : i, (i2 & 2) != 0 ? 0.75f : f);
}
/* JADX WARN: 'this' call moved to the top of the method (can break code semantics) */
public LruHashMap(LruHashMap<? extends K, V> original) {
this(0, 0.0f, 3, null);
Intrinsics.checkNotNullParameter(original, "original");
for (Map.Entry<? extends K, V> entry : original.getEntries()) {
put(entry.getKey(), entry.getValue());
}
}
public final boolean isEmpty() {
return this.map.isEmpty();
}
public final Set<Map.Entry<K, V>> getEntries() {
Set<Map.Entry<K, V>> entrySet = this.map.entrySet();
Intrinsics.checkNotNullExpressionValue(entrySet, "map.entries");
return entrySet;
}
public final V get(K key) {
Intrinsics.checkNotNullParameter(key, "key");
return this.map.get(key);
}
public final V put(K key, V value) {
Intrinsics.checkNotNullParameter(key, "key");
Intrinsics.checkNotNullParameter(value, "value");
return this.map.put(key, value);
}
public final V remove(K key) {
Intrinsics.checkNotNullParameter(key, "key");
return this.map.remove(key);
}
}