Code example for MapMaker

0
package nallar.collections; 
 
import com.google.common.collect.MapMaker;
 
import java.util.*; 
import java.util.concurrent.*; 
 
public class ConcurrentWeakHashMap extends WeakHashMap {
	private static final MapMaker mapMaker = new MapMaker().weakKeys();
	private final ConcurrentMap map = mapMaker.makeMap();
 
	public Object putIfAbsent(final Object key, final Object value) { 
		return map.putIfAbsent(key, value);
	} 
 
	public Object replace(final Object key, final Object value) { 
		return map.replace(key, value);
	} 
 
	public boolean remove(final Object key, final Object value) { 
		return map.remove(key, value);
	}