Lines Matching defs:map

40  * If one thread of several threads accessing an instance modifies the map
41 * structurally, access to the map needs to be synchronized. A structural
46 * may throw a {@code ConcurrentModificationException} if the map is structurally
53 * @param <K> the type of keys maintained by this map
90 * The hash table. If this hash map contains a mapping for null, it is
101 * The number of mappings in this hash map.
137 * the initial capacity of this hash map.
169 * the initial capacity of this hash map.
192 * the specified map.
194 * @param map
197 public HashMap(Map<? extends K, ? extends V> map) {
198 this(capacityForInitSize(map.size()));
199 constructorPutAll(map);
203 * Inserts all of the elements of map into this HashMap in a manner
207 final void constructorPutAll(Map<? extends K, ? extends V> map) {
208 for (Entry<? extends K, ? extends V> e : map.entrySet()) {
226 * Returns a shallow copy of this map.
228 * @return a shallow copy of this map.
234 * the elements in the map.
267 * Returns whether this map is empty.
269 * @return {@code true} if this map has no elements, {@code false}
278 * Returns the number of elements in this map.
280 * @return the number of elements in this map.
317 * Returns whether this map contains the specified key.
321 * @return {@code true} if this map contains the specified key,
346 * Returns whether this map contains the specified value.
350 * @return {@code true} if this map contains the specified value,
502 * Copies all the mappings in the specified map to this map. These mappings
503 * will replace all mappings that this map had for any of the keys currently
504 * in the given map.
506 * @param map
507 * the map to copy mappings from.
509 @Override public void putAll(Map<? extends K, ? extends V> map) {
510 ensureCapacity(map.size());
511 super.putAll(map);
613 * Removes the mapping with the specified key from this map.
662 * Removes all mappings from this hash map, leaving it empty.
677 * Returns a set of the keys contained in this map. The set is backed by
678 * this map so changes to one are reflected by the other. The set does not
689 * Returns a collection of the values contained in this map. The collection
690 * is backed by this map so changes to one are reflected by the other. The
696 * "wrapper object" over the iterator of map's entrySet(). The {@code size}
697 * method wraps the map's size method and the {@code contains} method wraps
698 * the map's containsValue method.
707 * @return a collection of the values contained in this map.
715 * Returns a set containing all of the mappings in this map. Each mapping is
716 * an instance of {@link Map.Entry}. As the set is backed by this map,
836 * Returns true if this map contains the specified mapping.