- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
38 lines
1.2 KiB
Java
38 lines
1.2 KiB
Java
package androidx.core.util;
|
|
|
|
import android.util.LruCache;
|
|
import kotlin.jvm.functions.Function1;
|
|
import kotlin.jvm.functions.Function2;
|
|
import kotlin.jvm.functions.Function4;
|
|
|
|
/* JADX INFO: Add missing generic type declarations: [V, K] */
|
|
/* loaded from: classes.dex */
|
|
public final class LruCacheKt$lruCache$4<K, V> extends LruCache<K, V> {
|
|
final /* synthetic */ Function1 $create;
|
|
final /* synthetic */ Function4 $onEntryRemoved;
|
|
final /* synthetic */ Function2 $sizeOf;
|
|
|
|
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
|
public LruCacheKt$lruCache$4(int i, Function2 function2, Function1 function1, Function4 function4) {
|
|
super(i);
|
|
this.$sizeOf = function2;
|
|
this.$create = function1;
|
|
this.$onEntryRemoved = function4;
|
|
}
|
|
|
|
@Override // android.util.LruCache
|
|
public int sizeOf(K k, V v) {
|
|
return ((Number) this.$sizeOf.invoke(k, v)).intValue();
|
|
}
|
|
|
|
@Override // android.util.LruCache
|
|
public V create(K k) {
|
|
return (V) this.$create.invoke(k);
|
|
}
|
|
|
|
@Override // android.util.LruCache
|
|
public void entryRemoved(boolean z, K k, V v, V v2) {
|
|
this.$onEntryRemoved.invoke(Boolean.valueOf(z), k, v, v2);
|
|
}
|
|
}
|