Entry < K , V > getEntry ( Object key ) { Object k = maskNull ( key ) ; int hash = hash ( k ) ; int i = indexFor ( hash , table . length ) ; Entry < K , V > e = table [ i ] ; while ( e != null && ! ( e . hash == hash && validEntry ( e ) && eq ( k , e . key ) ) ) e = e . next ; return e ; }
Returns the entry associated with the specified key in the HashMap . Returns null if the HashMap contains no mapping for this key .