コード例 #1
0
 public static <K, V> ConcurrentMap<K, V> makeConcurrentMap(
     int initCapacity, int concurrencyLevel, Equivalence<K> keyEq, Equivalence<V> valueEq) {
   if (requiresEquivalent(keyEq, valueEq))
     return new EquivalentConcurrentHashMapV8<K, V>(
         initCapacity, concurrencyLevel, keyEq, valueEq);
   else return MAP_CREATOR.createConcurrentMap(initCapacity, concurrencyLevel);
 }
コード例 #2
0
 public static <K, V> ConcurrentMap<K, V> makeConcurrentMap(
     Equivalence<K> keyEq, Equivalence<V> valueEq) {
   if (requiresEquivalent(keyEq, valueEq))
     return new EquivalentConcurrentHashMapV8<K, V>(keyEq, valueEq);
   else return MAP_CREATOR.createConcurrentMap();
 }
コード例 #3
0
 public static <K, V> ConcurrentMap<K, V> makeConcurrentMap(
     int initCapacity, float loadFactor, int concurrencyLevel) {
   return MAP_CREATOR.createConcurrentMap(initCapacity, loadFactor, concurrencyLevel);
 }
コード例 #4
0
 public static <K, V> ConcurrentMap<K, V> makeConcurrentParallelMap(
     int initCapacity, int concurrencyLevel) {
   return MAP_CREATOR.createConcurrentParallelMap(initCapacity, concurrencyLevel);
 }
コード例 #5
0
 public static <K, V> ConcurrentMap<K, V> makeConcurrentMap(int initCapacity) {
   return MAP_CREATOR.createConcurrentMap(initCapacity);
 }
コード例 #6
0
 public static <K, V> ConcurrentMap<K, V> makeConcurrentMap() {
   return MAP_CREATOR.createConcurrentMap();
 }