2021-12-17 21:59:34 +00:00
|
|
|
package b.f.j.c;
|
2021-07-24 02:37:17 +00:00
|
|
|
|
2021-12-17 21:59:34 +00:00
|
|
|
import b.f.d.d.j;
|
2021-07-24 02:37:17 +00:00
|
|
|
import com.facebook.common.references.CloseableReference;
|
2022-03-07 09:34:54 +00:00
|
|
|
/* compiled from: InstrumentedMemoryCache.java */
|
2022-04-04 09:20:14 +00:00
|
|
|
/* loaded from: classes2.dex */
|
2021-07-24 02:37:17 +00:00
|
|
|
public class s<K, V> implements w<K, V> {
|
|
|
|
public final w<K, V> a;
|
2021-12-17 21:59:34 +00:00
|
|
|
|
|
|
|
/* renamed from: b reason: collision with root package name */
|
2022-03-28 08:10:50 +00:00
|
|
|
public final x f558b;
|
2021-07-24 02:37:17 +00:00
|
|
|
|
|
|
|
public s(w<K, V> wVar, x xVar) {
|
|
|
|
this.a = wVar;
|
2022-03-28 08:10:50 +00:00
|
|
|
this.f558b = xVar;
|
2021-07-24 02:37:17 +00:00
|
|
|
}
|
|
|
|
|
2021-12-17 21:59:34 +00:00
|
|
|
@Override // b.f.j.c.w
|
2021-07-24 02:37:17 +00:00
|
|
|
public CloseableReference<V> a(K k, CloseableReference<V> closeableReference) {
|
2022-03-28 08:10:50 +00:00
|
|
|
this.f558b.c(k);
|
2021-07-24 02:37:17 +00:00
|
|
|
return this.a.a(k, closeableReference);
|
|
|
|
}
|
|
|
|
|
2021-12-17 21:59:34 +00:00
|
|
|
@Override // b.f.j.c.w
|
2021-07-24 02:37:17 +00:00
|
|
|
public int d(j<K> jVar) {
|
|
|
|
return this.a.d(jVar);
|
|
|
|
}
|
|
|
|
|
2021-12-17 21:59:34 +00:00
|
|
|
@Override // b.f.j.c.w
|
2021-07-24 02:37:17 +00:00
|
|
|
public CloseableReference<V> get(K k) {
|
|
|
|
CloseableReference<V> closeableReference = this.a.get(k);
|
|
|
|
if (closeableReference == null) {
|
2022-03-28 08:10:50 +00:00
|
|
|
this.f558b.b(k);
|
2021-07-24 02:37:17 +00:00
|
|
|
} else {
|
2022-03-28 08:10:50 +00:00
|
|
|
this.f558b.a(k);
|
2021-07-24 02:37:17 +00:00
|
|
|
}
|
|
|
|
return closeableReference;
|
|
|
|
}
|
|
|
|
}
|