50 lines
2.2 KiB
Java
50 lines
2.2 KiB
Java
package androidx.core.util;
|
|
|
|
import android.util.LruCache;
|
|
import d0.z.d.m;
|
|
import kotlin.Unit;
|
|
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<K, V> $create;
|
|
public final /* synthetic */ int $maxSize;
|
|
public final /* synthetic */ Function4<Boolean, K, V, V, Unit> $onEntryRemoved;
|
|
public final /* synthetic */ Function2<K, V, Integer> $sizeOf;
|
|
|
|
/* JADX DEBUG: Multi-variable search result rejected for r1v0, resolved type: kotlin.jvm.functions.Function2<? super K, ? super V, java.lang.Integer> */
|
|
/* JADX DEBUG: Multi-variable search result rejected for r2v0, resolved type: kotlin.jvm.functions.Function1<? super K, ? extends V> */
|
|
/* JADX DEBUG: Multi-variable search result rejected for r3v0, resolved type: kotlin.jvm.functions.Function4<? super java.lang.Boolean, ? super K, ? super V, ? super V, kotlin.Unit> */
|
|
/* JADX WARN: Multi-variable type inference failed */
|
|
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
|
public LruCacheKt$lruCache$4(Function2<? super K, ? super V, Integer> function2, Function1<? super K, ? extends V> function1, Function4<? super Boolean, ? super K, ? super V, ? super V, Unit> function4, int i) {
|
|
super(i);
|
|
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.checkNotNullParameter(k, "key");
|
|
return this.$create.invoke(k);
|
|
}
|
|
|
|
@Override // android.util.LruCache
|
|
public void entryRemoved(boolean z2, K k, V v, V v2) {
|
|
m.checkNotNullParameter(k, "key");
|
|
m.checkNotNullParameter(v, "oldValue");
|
|
this.$onEntryRemoved.invoke(Boolean.valueOf(z2), k, v, v2);
|
|
}
|
|
|
|
@Override // android.util.LruCache
|
|
public int sizeOf(K k, V v) {
|
|
m.checkNotNullParameter(k, "key");
|
|
m.checkNotNullParameter(v, "value");
|
|
return this.$sizeOf.invoke(k, v).intValue();
|
|
}
|
|
}
|