Java tutorial
//package com.java2s; //License from project: Apache License import java.util.concurrent.ConcurrentHashMap; public class Main { /** * new concurrentHashMap * * @return */ public static <K, V> ConcurrentHashMap<K, V> newConcurrentHashMap() { return new ConcurrentHashMap<K, V>(); } /** * new concurrentHashMap and initialCapacity * @param size * @return */ public static <K, V> ConcurrentHashMap<K, V> newConcurrentHashMap(int size) { return new ConcurrentHashMap<K, V>(size); } }