35 lines
750 B
Java
35 lines
750 B
Java
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();
|
|
}
|