mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2024-12-27 01:22:33 -06:00
70 lines
5 KiB
Java
70 lines
5 KiB
Java
|
package androidx.collection;
|
||
|
|
||
|
import androidx.exifinterface.media.ExifInterface;
|
||
|
import kotlin.Metadata;
|
||
|
import kotlin.Unit;
|
||
|
import kotlin.jvm.functions.Function1;
|
||
|
import kotlin.jvm.functions.Function2;
|
||
|
import kotlin.jvm.functions.Function4;
|
||
|
import kotlin.jvm.internal.Intrinsics;
|
||
|
|
||
|
/* compiled from: LruCache.kt */
|
||
|
@Metadata(d1 = {"\u0000:\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\b\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0010\u000b\n\u0002\b\u0003\n\u0002\u0010\u0002\n\u0000\u001aû\u0001\u0010\u0000\u001a\u000e\u0012\u0004\u0012\u0002H\u0002\u0012\u0004\u0012\u0002H\u00030\u0001\"\b\b\u0000\u0010\u0002*\u00020\u0004\"\b\b\u0001\u0010\u0003*\u00020\u00042\u0006\u0010\u0005\u001a\u00020\u000628\b\u0006\u0010\u0007\u001a2\u0012\u0013\u0012\u0011H\u0002¢\u0006\f\b\t\u0012\b\b\n\u0012\u0004\b\b(\u000b\u0012\u0013\u0012\u0011H\u0003¢\u0006\f\b\t\u0012\b\b\n\u0012\u0004\b\b(\f\u0012\u0004\u0012\u00020\u00060\b2%\b\u0006\u0010\r\u001a\u001f\u0012\u0013\u0012\u0011H\u0002¢\u0006\f\b\t\u0012\b\b\n\u0012\u0004\b\b(\u000b\u0012\u0006\u0012\u0004\u0018\u0001H\u00030\u000e2d\b\u0006\u0010\u000f\u001a^\u0012\u0013\u0012\u00110\u0011¢\u0006\f\b\t\u0012\b\b\n\u0012\u0004\b\b(\u0012\u0012\u0013\u0012\u0011H\u0002¢\u0006\f\b\t\u0012\b\b\n\u0012\u0004\b\b(\u000b\u0012\u0013\u0012\u0011H\u0003¢\u0006\f\b\t\u0012\b\b\n\u0012\u0004\b\b(\u0013\u0012\u0015\u0012\u0013\u0018\u0001H\u0003¢\u0006\f\b\t\u0012\b\b\n\u0012\u0004\b\b(\u0014\u0012\u0004\u0012\u00020\u00150\u0010H\u0086\bø\u0001\u0000\u0082\u0002\u0007\n\u0005\b\u009920\u0001¨\u0006\u0016"}, d2 = {"lruCache", "Landroidx/collection/LruCache;", "K", ExifInterface.GPS_MEASUREMENT_INTERRUPTED, "", "maxSize", "", "sizeOf", "Lkotlin/Function2;", "Lkotlin/ParameterName;", "name", "key", "value", "create", "Lkotlin/Function1;", "onEntryRemoved", "Lkotlin/Function4;", "", "evicted", "oldValue", "newValue", "", "collection"}, k = 2, mv = {1, 8, 0}, xi = 48)
|
||
|
/* loaded from: classes.dex */
|
||
|
public final class LruCacheKt {
|
||
|
public static /* synthetic */ LruCache lruCache$default(int i, Function2 sizeOf, Function1 create, Function4 onEntryRemoved, int i2, Object obj) {
|
||
|
if ((i2 & 2) != 0) {
|
||
|
sizeOf = new Function2<K, V, Integer>() { // from class: androidx.collection.LruCacheKt$lruCache$1
|
||
|
/* JADX WARN: Can't rename method to resolve collision */
|
||
|
@Override // kotlin.jvm.functions.Function2
|
||
|
public final Integer invoke(K k, V v) {
|
||
|
Intrinsics.checkNotNullParameter(k, "<anonymous parameter 0>");
|
||
|
Intrinsics.checkNotNullParameter(v, "<anonymous parameter 1>");
|
||
|
return 1;
|
||
|
}
|
||
|
|
||
|
/* JADX WARN: Multi-variable type inference failed */
|
||
|
@Override // kotlin.jvm.functions.Function2
|
||
|
public /* bridge */ /* synthetic */ Integer invoke(Object obj2, Object obj3) {
|
||
|
return invoke((LruCacheKt$lruCache$1<K, V>) obj2, obj3);
|
||
|
}
|
||
|
};
|
||
|
}
|
||
|
if ((i2 & 4) != 0) {
|
||
|
create = new Function1<K, V>() { // from class: androidx.collection.LruCacheKt$lruCache$2
|
||
|
@Override // kotlin.jvm.functions.Function1
|
||
|
public final V invoke(K it) {
|
||
|
Intrinsics.checkNotNullParameter(it, "it");
|
||
|
return null;
|
||
|
}
|
||
|
};
|
||
|
}
|
||
|
if ((i2 & 8) != 0) {
|
||
|
onEntryRemoved = new Function4<Boolean, K, V, V, Unit>() { // from class: androidx.collection.LruCacheKt$lruCache$3
|
||
|
public final void invoke(boolean z, K k, V v, V v2) {
|
||
|
Intrinsics.checkNotNullParameter(k, "<anonymous parameter 1>");
|
||
|
Intrinsics.checkNotNullParameter(v, "<anonymous parameter 2>");
|
||
|
}
|
||
|
|
||
|
/* JADX WARN: Multi-variable type inference failed */
|
||
|
@Override // kotlin.jvm.functions.Function4
|
||
|
public /* bridge */ /* synthetic */ Unit invoke(Boolean bool, Object obj2, Object obj3, Object obj4) {
|
||
|
invoke(bool.booleanValue(), (boolean) obj2, obj3, obj4);
|
||
|
return Unit.INSTANCE;
|
||
|
}
|
||
|
};
|
||
|
}
|
||
|
Intrinsics.checkNotNullParameter(sizeOf, "sizeOf");
|
||
|
Intrinsics.checkNotNullParameter(create, "create");
|
||
|
Intrinsics.checkNotNullParameter(onEntryRemoved, "onEntryRemoved");
|
||
|
return new LruCacheKt$lruCache$4(i, sizeOf, create, onEntryRemoved);
|
||
|
}
|
||
|
|
||
|
public static final <K, V> LruCache<K, V> lruCache(int i, Function2<? super K, ? super V, Integer> sizeOf, Function1<? super K, ? extends V> create, Function4<? super Boolean, ? super K, ? super V, ? super V, Unit> onEntryRemoved) {
|
||
|
Intrinsics.checkNotNullParameter(sizeOf, "sizeOf");
|
||
|
Intrinsics.checkNotNullParameter(create, "create");
|
||
|
Intrinsics.checkNotNullParameter(onEntryRemoved, "onEntryRemoved");
|
||
|
return new LruCacheKt$lruCache$4(i, sizeOf, create, onEntryRemoved);
|
||
|
}
|
||
|
}
|