Code example for ConcurrentHashMap

0
    public static <K, V> ConcurrentMap<K, V> newConcurrentMapWithAggressiveConcurrency() {
        return new ConcurrentHashMap<>(16, 0.75f, aggressiveConcurrencyLevel);
    } 
 
    public static <K, V> ConcurrentMap<K, V> newConcurrentMap() {
        return new ConcurrentHashMap<>();
    } 
 
    /** 
     * Creates a new CHM with an aggressive concurrency level, aimed at highly updateable long living maps. 
     */ 
    public static <V> ConcurrentMapLong<V> newConcurrentMapLongWithAggressiveConcurrency() { 
        return new ConcurrentHashMapLong<>(ConcurrentCollections.<Long, V>newConcurrentMapWithAggressiveConcurrency());
    } 
 
    public static <V> ConcurrentMapLong<V> newConcurrentMapLong() { 
        return new ConcurrentHashMapLong<>(ConcurrentCollections.<Long, V>newConcurrentMap());
    } 
 
    public static <V> Set<V> newConcurrentSet() {