what-the-bank/sources/org/simpleframework/xml/util/ConcurrentCache.java

27 lines
741 B
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package org.simpleframework.xml.util;
import java.util.concurrent.ConcurrentHashMap;
/* loaded from: classes.dex */
public class ConcurrentCache<T> extends ConcurrentHashMap<Object, T> implements Cache<T> {
@Override // org.simpleframework.xml.util.Cache
public void cache(Object obj, T t) {
put(obj, t);
}
@Override // org.simpleframework.xml.util.Cache
public T take(Object obj) {
return remove(obj);
}
@Override // org.simpleframework.xml.util.Cache
public T fetch(Object obj) {
return get(obj);
}
@Override // java.util.concurrent.ConcurrentHashMap, org.simpleframework.xml.util.Cache
public boolean contains(Object obj) {
return containsKey(obj);
}
}