Java ConcurrentMap getConcurrentMap(int... size)

Here you can find the source of getConcurrentMap(int... size)

Description

get Concurrent Map

License

Open Source License

Declaration

public static <K, V> ConcurrentHashMap<K, V> getConcurrentMap(int... size) 

Method Source Code

//package com.java2s;

import java.util.concurrent.ConcurrentHashMap;

public class Main {

    public static <K, V> ConcurrentHashMap<K, V> getConcurrentMap(int... size) {
        if (size.length == 0) {
            return new ConcurrentHashMap<K, V>();
        } else {//from   w  w w  .ja v  a  2 s. c  o  m
            return new ConcurrentHashMap<K, V>(size[0]);
        }
    }
}

Related

  1. extractKeySize(String sslCipherSuite)
  2. fileReaderDecrement(ConcurrentMap readers, Long fileNum)
  3. fileReaderIncrement(ConcurrentMap readers, Long fileNum)
  4. get(Class clazz)
  5. getCache(String cacheName)
  6. getContextPath()
  7. getFilesystem(String id)
  8. getNestedSet(K1 key, ConcurrentMap> set)
  9. getNewLogFactor(String factorName)