/** * Constructs a new <tt>IdentityWeakHashMap</tt> with the same mappings * as the given map. The <tt>IdentityWeakHashMap</tt> is created with a * capacity sufficient to hold the elements of the given map. * * @param m the map whose mappings are to be placed in the * <tt>IdentityWeakHashMap</tt>. */ public IdentityWeakHashMap(Map m) { this(Math.max((int)(m.size() / DEFAULT_LOAD_FACTOR) + 1, DEFAULT_INITIAL_CAPACITY), DEFAULT_LOAD_FACTOR); putAll(m); }
/** * Constructs a new <tt>IdentityWeakHashMap</tt> with the same mappings * as the given map. The <tt>IdentityWeakHashMap</tt> is created with a * capacity sufficient to hold the elements of the given map. * * @param m the map whose mappings are to be placed in the * <tt>IdentityWeakHashMap</tt>. */ public IdentityWeakHashMap(Map m) { this(Math.max((int)(m.size() / DEFAULT_LOAD_FACTOR) + 1, DEFAULT_INITIAL_CAPACITY), DEFAULT_LOAD_FACTOR); putAll(m); }
/** * Constructs a new <tt>IdentityWeakHashMap</tt> with the same mappings * as the given map. The <tt>IdentityWeakHashMap</tt> is created with a * capacity sufficient to hold the elements of the given map. * * @param m the map whose mappings are to be placed in the * <tt>IdentityWeakHashMap</tt>. */ public IdentityWeakHashMap(Map m) { this(Math.max((int)(m.size() / DEFAULT_LOAD_FACTOR) + 1, DEFAULT_INITIAL_CAPACITY), DEFAULT_LOAD_FACTOR); putAll(m); }