what-the-bank/sources/com/google/common/cache/Cache.java

35 lines
750 B
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package com.google.common.cache;
import com.google.common.collect.ImmutableMap;
import java.util.Map;
import java.util.concurrent.Callable;
import java.util.concurrent.ConcurrentMap;
import java.util.concurrent.ExecutionException;
/* loaded from: classes2.dex */
public interface Cache<K, V> {
ConcurrentMap<K, V> asMap();
void cleanUp();
V get(K k, Callable<? extends V> callable) throws ExecutionException;
ImmutableMap<K, V> getAllPresent(Iterable<?> iterable);
V getIfPresent(Object obj);
void invalidate(Object obj);
void invalidateAll();
void invalidateAll(Iterable<?> iterable);
void put(K k, V v);
void putAll(Map<? extends K, ? extends V> map);
long size();
CacheStats stats();
}