what-the-bank/sources/com/airbnb/lottie/model/LottieCompositionCache.java

40 lines
920 B
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package com.airbnb.lottie.model;
import com.airbnb.lottie.LottieComposition;
import o.pKi;
/* loaded from: classes.dex */
public class LottieCompositionCache {
private static final LottieCompositionCache INSTANCE = new LottieCompositionCache();
private final pKi<String, LottieComposition> cache = new pKi<>(20);
LottieCompositionCache() {
}
public LottieComposition get(String str) {
if (str == null) {
return null;
}
return this.cache.get(str);
}
public void put(String str, LottieComposition lottieComposition) {
if (str == null) {
return;
}
this.cache.put(str, lottieComposition);
}
public void clear() {
this.cache.evictAll();
}
public void resize(int i) {
this.cache.resize(i);
}
public static LottieCompositionCache getInstance() {
return INSTANCE;
}
}