io.github.jiawade.tool.collectors.Maps Maven / Gradle / Ivy
The newest version!
package io.github.jiawade.tool.collectors;
import com.google.common.collect.Lists;
import javax.annotation.CheckForNull;
import java.util.*;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.ConcurrentMap;
import java.util.stream.Collectors;
import java.util.stream.IntStream;
import static com.google.common.base.Preconditions.checkNotNull;
public class Maps {
public static HashMap hashMap() {
return new HashMap<>();
}
public static HashMap hashMap(Map extends K, ? extends V> map) {
return new HashMap<>(map);
}
public static HashMap hashMap(List