Lines Matching defs:HashMap

32  * <tt>null</tt> values and the <tt>null</tt> key.  (The <tt>HashMap</tt>
42 * <tt>HashMap</tt> instance (the number of buckets) plus its size (the number
47 * <p>An instance of <tt>HashMap</tt> has two parameters that affect its
61 * <tt>HashMap</tt> class, including <tt>get</tt> and <tt>put</tt>). The
68 * <p>If many mappings are to be stored in a <tt>HashMap</tt> instance,
86 * Map m = Collections.synchronizedMap(new HashMap(...));</pre>
124 public class HashMap<K,V>
177 * The number of times this HashMap has been structurally modified
179 * the HashMap or otherwise modify its internal structure (e.g.,
181 * the HashMap fail-fast. (See ConcurrentModificationException).
242 * Constructs an empty <tt>HashMap</tt> with the specified initial
250 public HashMap(int initialCapacity, float loadFactor) {
266 * Constructs an empty <tt>HashMap</tt> with the specified initial
272 public HashMap(int initialCapacity) {
277 * Constructs an empty <tt>HashMap</tt> with the default initial capacity
280 public HashMap() {
285 * Constructs a new <tt>HashMap</tt> with the same mappings as the
286 * specified <tt>Map</tt>. The <tt>HashMap</tt> is created with
293 public HashMap(Map<? extends K, ? extends V> m) {
329 * after HashMap has been initialized but before any entries have
356 * critical because HashMap uses power-of-two length hash tables, that
458 * HashMap. Returns null if the HashMap contains no mapping
666 * in the HashMap. Returns null if the HashMap contains no mapping
776 * Returns a shallow copy of this <tt>HashMap</tt> instance: the keys and
782 HashMap<K,V> result = null;
784 result = (HashMap<K,V>)super.clone();
793 HashMap.MAXIMUM_CAPACITY),
861 * in the HashMap.
863 void recordAccess(HashMap<K,V> m) {
870 void recordRemoval(HashMap<K,V> m) {
896 * Subclass overrides this to alter the behavior of HashMap(Map),
947 HashMap.this.removeEntryForKey(k);
1015 return HashMap.this.removeEntryForKey(o) != null;
1018 HashMap.this.clear();
1051 HashMap.this.clear();
1098 HashMap.this.clear();
1103 * Save the state of the <tt>HashMap</tt> instance to a stream (i.e.,
1106 * @serialData The <i>capacity</i> of the HashMap (the length of the
1141 * Reconstitute the {@code HashMap} instance from a stream (i.e.,
1170 HashMap.MAXIMUM_CAPACITY);
1181 // Read the keys and values, and put the mappings in the HashMap