/** * Constructs a new instance of {@code Hashtable} containing the mappings * from the specified map. * * @param map * the mappings to add. */ public Hashtable(Map<? extends K, ? extends V> map) { this(capacityForInitSize(map.size())); constructorPutAll(map); }
int newCapacity = Collections.roundUpToPowerOfTwo(capacityForInitSize(numMappings)); HashtableEntry<K, V>[] oldTable = table; int oldCapacity = oldTable.length;
/** * Constructs a new instance of {@code Hashtable} containing the mappings * from the specified map. * * @param map * the mappings to add. */ public Hashtable(Map<? extends K, ? extends V> map) { this(capacityForInitSize(map.size())); constructorPutAll(map); }
/** * Constructs a new instance of {@code Hashtable} containing the mappings * from the specified map. * * @param map * the mappings to add. */ public Hashtable(Map<? extends K, ? extends V> map) { this(capacityForInitSize(map.size())); constructorPutAll(map); }
/** * Constructs a new instance of {@code Hashtable} containing the mappings * from the specified map. * * @param map * the mappings to add. */ public Hashtable(Map<? extends K, ? extends V> map) { this(capacityForInitSize(map.size())); constructorPutAll(map); }
/** * Constructs a new instance of {@code Hashtable} containing the mappings * from the specified map. * * @param map * the mappings to add. */ public Hashtable(Map<? extends K, ? extends V> map) { this(capacityForInitSize(map.size())); constructorPutAll(map); }
/** * Constructs a new instance of {@code Hashtable} containing the mappings * from the specified map. * * @param map * the mappings to add. */ public Hashtable(Map<? extends K, ? extends V> map) { this(capacityForInitSize(map.size())); constructorPutAll(map); }
/** * Constructs a new instance of {@code Hashtable} containing the mappings * from the specified map. * * @param map * the mappings to add. */ public Hashtable(Map<? extends K, ? extends V> map) { this(capacityForInitSize(map.size())); constructorPutAll(map); }
/** * Constructs a new instance of {@code Hashtable} containing the mappings * from the specified map. * * @param map * the mappings to add. */ public Hashtable(Map<? extends K, ? extends V> map) { this(capacityForInitSize(map.size())); constructorPutAll(map); }
int newCapacity = Collections.roundUpToPowerOfTwo(capacityForInitSize(numMappings)); HashtableEntry<K, V>[] oldTable = table; int oldCapacity = oldTable.length;
int newCapacity = Collections.roundUpToPowerOfTwo(capacityForInitSize(numMappings)); HashtableEntry<K, V>[] oldTable = table; int oldCapacity = oldTable.length;
int newCapacity = Collections.roundUpToPowerOfTwo(capacityForInitSize(numMappings)); HashtableEntry<K, V>[] oldTable = table; int oldCapacity = oldTable.length;
int newCapacity = Collections.roundUpToPowerOfTwo(capacityForInitSize(numMappings)); HashtableEntry<K, V>[] oldTable = table; int oldCapacity = oldTable.length;
int newCapacity = Collections.roundUpToPowerOfTwo(capacityForInitSize(numMappings)); HashtableEntry<K, V>[] oldTable = table; int oldCapacity = oldTable.length;
int newCapacity = Collections.roundUpToPowerOfTwo(capacityForInitSize(numMappings)); HashtableEntry<K, V>[] oldTable = table; int oldCapacity = oldTable.length;
int newCapacity = Collections.roundUpToPowerOfTwo(capacityForInitSize(numMappings)); HashtableEntry<K, V>[] oldTable = table; int oldCapacity = oldTable.length;