mirror of
https://github.com/alibaba/canal.git
synced 2026-11-04 00:30:15 +08:00
添加遗漏的 MigrateMap
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
package com.google.common.collect;
|
||||
|
||||
import com.google.common.base.Function;
|
||||
import java.util.concurrent.ConcurrentMap;
|
||||
|
||||
public class MigrateMap
|
||||
{
|
||||
public static <K, V> ConcurrentMap<K, V> makeComputingMap(MapMaker maker, Function<? super K, ? extends V> computingFunction)
|
||||
{
|
||||
return maker.makeComputingMap(computingFunction);
|
||||
}
|
||||
|
||||
public static <K, V> ConcurrentMap<K, V> makeComputingMap(Function<? super K, ? extends V> computingFunction)
|
||||
{
|
||||
return new MapMaker().makeComputingMap(computingFunction);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user