Java ConcurrentHashMap getConcurrentHashMap()

Here you can find the source of getConcurrentHashMap()

Description

get Concurrent Hash Map

License

Open Source License

Declaration

public static <K, V> Map<K, V> getConcurrentHashMap() 

Method Source Code

//package com.java2s;

import java.util.Collections;

import java.util.Map;

import java.util.concurrent.ConcurrentHashMap;

public class Main {

    public static <K, V> Map<K, V> getConcurrentHashMap() {
        return Collections.synchronizedMap(new ConcurrentHashMap<K, V>());
    }/*from ww  w  . ja v  a2 s  .c  om*/
}

Related

  1. createConcurrentHashMap()
  2. createConcurrentHashMap()
  3. getDoubleSafe(ConcurrentHashMap map, String key)
  4. getMapSafe( ConcurrentHashMap> map, String key)
  5. max(ConcurrentHashMap map)
  6. ParseKeyValString(String keyValString, ConcurrentHashMap map)