44 lines
1.6 KiB
Java
44 lines
1.6 KiB
Java
package androidx.core.util;
|
|
|
|
import android.util.LruCache;
|
|
import d0.z.d.m;
|
|
import kotlin.jvm.functions.Function1;
|
|
import kotlin.jvm.functions.Function2;
|
|
import kotlin.jvm.functions.Function4;
|
|
/* compiled from: LruCache.kt */
|
|
public final class LruCacheKt$lruCache$4 extends LruCache<K, V> {
|
|
public final /* synthetic */ Function1 $create;
|
|
public final /* synthetic */ int $maxSize;
|
|
public final /* synthetic */ Function4 $onEntryRemoved;
|
|
public final /* synthetic */ Function2 $sizeOf;
|
|
|
|
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
|
public LruCacheKt$lruCache$4(Function2 function2, Function1 function1, Function4 function4, int i, int i2) {
|
|
super(i2);
|
|
this.$sizeOf = function2;
|
|
this.$create = function1;
|
|
this.$onEntryRemoved = function4;
|
|
this.$maxSize = i;
|
|
}
|
|
|
|
/* JADX WARNING: Unknown variable types count: 1 */
|
|
@Override // android.util.LruCache
|
|
public V create(K k) {
|
|
m.checkParameterIsNotNull(k, "key");
|
|
return this.$create.invoke(k);
|
|
}
|
|
|
|
@Override // android.util.LruCache
|
|
public void entryRemoved(boolean z2, K k, V v, V v2) {
|
|
m.checkParameterIsNotNull(k, "key");
|
|
m.checkParameterIsNotNull(v, "oldValue");
|
|
this.$onEntryRemoved.invoke(Boolean.valueOf(z2), k, v, v2);
|
|
}
|
|
|
|
@Override // android.util.LruCache
|
|
public int sizeOf(K k, V v) {
|
|
m.checkParameterIsNotNull(k, "key");
|
|
m.checkParameterIsNotNull(v, "value");
|
|
return ((Number) this.$sizeOf.invoke(k, v)).intValue();
|
|
}
|
|
}
|