Bonjour,
cela fait plusieurs fois que je tombe sur ce code :
source :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 public int hashCode() { 234 int hashCode = (this.from == null ? 0 : this.from.hashCode()); 235 hashCode = 29 * hashCode + (this.replyTo == null ? 0 : this.replyTo.hashCode()); 236 for (int i = 0; this.to != null && i < this.to.length; i++) { 237 hashCode = 29 * hashCode + (this.to == null ? 0 : this.to[i].hashCode()); 238 } 239 for (int i = 0; this.cc != null && i < this.cc.length; i++) { 240 hashCode = 29 * hashCode + (this.cc == null ? 0 : this.cc[i].hashCode()); 241 } 242 for (int i = 0; this.bcc != null && i < this.bcc.length; i++) { 243 hashCode = 29 * hashCode + (this.bcc == null ? 0 : this.bcc[i].hashCode()); 244 } 245 hashCode = 29 * hashCode + (this.sentDate == null ? 0 : this.sentDate.hashCode()); 246 hashCode = 29 * hashCode + (this.subject == null ? 0 : this.subject.hashCode()); 247 hashCode = 29 * hashCode + (this.text == null ? 0 : this.text.hashCode()); 248 return hashCode; 249 }
http://www.jdocs.com/page/AjaxSourceCode?oid=61772
Quelle est la signification de ce 29 ?
Merci
Partager