mirror of
https://github.com/VibedByKaKi/alexandroid.git
synced 2026-12-03 11:10:22 +01:00
73 lines
4.2 KiB
Java
73 lines
4.2 KiB
Java
package androidx.collection.internal;
|
|
|
|
import androidx.exifinterface.media.ExifInterface;
|
|
import com.amazon.alexa.auth.BuildConfig;
|
|
import com.amazon.clouddrive.extended.model.BulkOperationType;
|
|
import com.dee.app.metrics.MetricsConstants;
|
|
import java.util.LinkedHashMap;
|
|
import java.util.Map;
|
|
import java.util.Set;
|
|
import kotlin.Metadata;
|
|
import kotlin.jvm.internal.DefaultConstructorMarker;
|
|
import org.jetbrains.annotations.NotNull;
|
|
import org.jetbrains.annotations.Nullable;
|
|
|
|
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
|
|
@Metadata(d1 = {"\u0000<\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0000\n\u0002\b\u0004\n\u0002\u0010\b\n\u0000\n\u0002\u0010\u0007\n\u0002\b\u0002\n\u0002\u0010\"\n\u0002\u0010&\n\u0002\b\u0003\n\u0002\u0010\u000b\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\b\b\u0000\u0018\u0000*\b\b\u0000\u0010\u0001*\u00020\u0002*\b\b\u0001\u0010\u0003*\u00020\u00022\u00020\u0002B\u001d\b\u0016\u0012\u0014\u0010\u0004\u001a\u0010\u0012\u0006\b\u0001\u0012\u00028\u0000\u0012\u0004\u0012\u00028\u00010\u0000¢\u0006\u0002\u0010\u0005B\u0019\u0012\b\b\u0002\u0010\u0006\u001a\u00020\u0007\u0012\b\b\u0002\u0010\b\u001a\u00020\t¢\u0006\u0002\u0010\nJ\u0018\u0010\u0016\u001a\u0004\u0018\u00018\u00012\u0006\u0010\u0017\u001a\u00028\u0000H\u0086\u0002¢\u0006\u0002\u0010\u0018J\u001d\u0010\u0019\u001a\u0004\u0018\u00018\u00012\u0006\u0010\u0017\u001a\u00028\u00002\u0006\u0010\u001a\u001a\u00028\u0001¢\u0006\u0002\u0010\u001bJ\u0015\u0010\u001c\u001a\u0004\u0018\u00018\u00012\u0006\u0010\u0017\u001a\u00028\u0000¢\u0006\u0002\u0010\u0018R#\u0010\u000b\u001a\u0014\u0012\u0010\u0012\u000e\u0012\u0004\u0012\u00028\u0000\u0012\u0004\u0012\u00028\u00010\r0\f8F¢\u0006\u0006\u001a\u0004\b\u000e\u0010\u000fR\u0011\u0010\u0010\u001a\u00020\u00118F¢\u0006\u0006\u001a\u0004\b\u0010\u0010\u0012R*\u0010\u0013\u001a\u001e\u0012\u0004\u0012\u00028\u0000\u0012\u0004\u0012\u00028\u00010\u0014j\u000e\u0012\u0004\u0012\u00028\u0000\u0012\u0004\u0012\u00028\u0001`\u0015X\u0082\u0004¢\u0006\u0002\n\u0000¨\u0006\u001d"}, d2 = {"Landroidx/collection/internal/LruHashMap;", "K", "", ExifInterface.GPS_MEASUREMENT_INTERRUPTED, "original", "(Landroidx/collection/internal/LruHashMap;)V", "initialCapacity", "", "loadFactor", "", "(IF)V", "entries", "", "", "getEntries", "()Ljava/util/Set;", "isEmpty", "", "()Z", BuildConfig.FLAVOR_authType, "Ljava/util/LinkedHashMap;", "Lkotlin/collections/LinkedHashMap;", MetricsConstants.Method.CACHE_GET, "key", "(Ljava/lang/Object;)Ljava/lang/Object;", MetricsConstants.Method.CACHE_PUT, "value", "(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;", BulkOperationType.remove, "collection"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
|
/* loaded from: classes.dex */
|
|
public final class LruHashMap<K, V> {
|
|
|
|
@NotNull
|
|
private final LinkedHashMap<K, V> map;
|
|
|
|
/* JADX WARN: 'this' call moved to the top of the method (can break code semantics) */
|
|
public LruHashMap(@NotNull LruHashMap<? extends K, V> lruHashMap) {
|
|
this(0, 0.0f, 3, null);
|
|
lruHashMap.getClass();
|
|
for (Map.Entry<? extends K, V> entry : lruHashMap.getEntries()) {
|
|
put(entry.getKey(), entry.getValue());
|
|
}
|
|
}
|
|
|
|
@Nullable
|
|
public final V get(@NotNull K key) {
|
|
key.getClass();
|
|
return this.map.get(key);
|
|
}
|
|
|
|
@NotNull
|
|
public final Set<Map.Entry<K, V>> getEntries() {
|
|
Set<Map.Entry<K, V>> entrySet = this.map.entrySet();
|
|
entrySet.getClass();
|
|
return entrySet;
|
|
}
|
|
|
|
public final boolean isEmpty() {
|
|
return this.map.isEmpty();
|
|
}
|
|
|
|
@Nullable
|
|
public final V put(@NotNull K key, @NotNull V value) {
|
|
key.getClass();
|
|
value.getClass();
|
|
return this.map.put(key, value);
|
|
}
|
|
|
|
@Nullable
|
|
public final V remove(@NotNull K key) {
|
|
key.getClass();
|
|
return this.map.remove(key);
|
|
}
|
|
|
|
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);
|
|
}
|
|
|
|
public LruHashMap() {
|
|
this(0, 0.0f, 3, null);
|
|
}
|
|
}
|