/** * Constructs a new <code>WeakHashMap</code> with the same mappings as the * specified <tt>Map</tt>. The <code>WeakHashMap</code> is created with * an initial capacity of twice the number of mappings in the specified map * or 11 (whichever is greater), and a default load factor, which is * <tt>0.75</tt>. * * @param t the map whose mappings are to be placed in this map. */ public SoftValueHashMap(Map t) { this(Math.max(2 * t.size(), 11), 0.75f); putAll(t); }
/** * Constructs a new <code>WeakHashMap</code> with the same mappings as the * specified <code>Map</code>. The <code>WeakHashMap</code> is created with * an initial capacity of twice the number of mappings in the specified map * or 11 (whichever is greater), and a default load factor, which is * <code>0.75</code>. * * @param t the map whose mappings are to be placed in this map. */ public SoftValueHashMap(Map<K,V> t) { this(Math.max(2 * t.size(), 11), 0.75f); putAll(t); }
/** * Constructs a new <code>WeakHashMap</code> with the same mappings as the * specified <tt>Map</tt>. The <code>WeakHashMap</code> is created with * an initial capacity of twice the number of mappings in the specified map * or 11 (whichever is greater), and a default load factor, which is * <tt>0.75</tt>. * * @param t the map whose mappings are to be placed in this map. */ public SoftValueHashMap(Map t) { this(Math.max(2 * t.size(), 11), 0.75f); putAll(t); }
/** * Constructs a new <code>WeakHashMap</code> with the same mappings as the * specified <tt>Map</tt>. The <code>WeakHashMap</code> is created with * an initial capacity of twice the number of mappings in the specified map * or 11 (whichever is greater), and a default load factor, which is * <tt>0.75</tt>. * * @param t the map whose mappings are to be placed in this map. */ public SoftValueHashMap(Map t) { this(Math.max(2 * t.size(), 11), 0.75f); putAll(t); }
/** * Constructs a new <code>WeakHashMap</code> with the same mappings as the * specified <tt>Map</tt>. The <code>WeakHashMap</code> is created with * an initial capacity of twice the number of mappings in the specified map * or 11 (whichever is greater), and a default load factor, which is * <tt>0.75</tt>. * * @param t the map whose mappings are to be placed in this map. */ public SoftValueHashMap(Map t) { this(Math.max(2 * t.size(), 11), 0.75f); putAll(t); }
/** * Constructs a new <code>WeakHashMap</code> with the same mappings as the * specified <tt>Map</tt>. The <code>WeakHashMap</code> is created with * an initial capacity of twice the number of mappings in the specified map * or 11 (whichever is greater), and a default load factor, which is * <tt>0.75</tt>. * * @param t the map whose mappings are to be placed in this map. */ public SoftValueHashMap(Map t) { this(Math.max(2 * t.size(), 11), 0.75f); putAll(t); }
/** * Constructs a new <code>WeakHashMap</code> with the same mappings as the * specified <tt>Map</tt>. The <code>WeakHashMap</code> is created with * an initial capacity of twice the number of mappings in the specified map * or 11 (whichever is greater), and a default load factor, which is * <tt>0.75</tt>. * * @param t the map whose mappings are to be placed in this map. */ public SoftValueHashMap(Map t) { this(Math.max(2 * t.size(), 11), 0.75f); putAll(t); }