/** * Constructs a new HashMap with the same mappings as the given * Map. The HashMap is created with a capacity of thrice the number * of entries in the given Map or 11 (whichever is greater), and a * default load factor. * * @param keyType the reference type of map keys * @param valueType the reference type of map values */ public ConcurrentReferenceHashMap(int keyType, int valueType, Map t) { this(keyType, valueType, Math.max(3 * t.size(), 11), 0.75f); putAll(t); }
/** * Constructs a new HashMap with the same mappings as the given * Map. The HashMap is created with a capacity of thrice the number * of entries in the given Map or 11 (whichever is greater), and a * default load factor. * * @param keyType the reference type of map keys * @param valueType the reference type of map values */ public ConcurrentReferenceHashMap(int keyType, int valueType, Map t) { this(keyType, valueType, Math.max(3 * t.size(), 11), 0.75f); putAll(t); }
/** * Constructs a new HashMap with the same mappings as the given * Map. The HashMap is created with a capacity of thrice the number * of entries in the given Map or 11 (whichever is greater), and a * default load factor. * * @param keyType the reference type of map keys * @param valueType the reference type of map values */ public ConcurrentReferenceHashMap(int keyType, int valueType, Map t) { this(keyType, valueType, Math.max(3 * t.size(), 11), 0.75f); putAll(t); }
/** * Constructs a new HashMap with the same mappings as the given * Map. The HashMap is created with a capacity of thrice the number * of entries in the given Map or 11 (whichever is greater), and a * default load factor. * * @param keyType the reference type of map keys * @param valueType the reference type of map values */ public ConcurrentReferenceHashMap(int keyType, int valueType, Map t) { this(keyType, valueType, Math.max(3 * t.size(), 11), 0.75f); putAll(t); }