編集の要約なし |
|||
7行目: | 7行目: | ||
==Exemples== | ==Exemples== | ||
[[Object#hashCodeオーバーライドの定石]]と比較。 | |||
public class Bank { | public class Bank { | ||
return HashCodeBuilder.reflectionHashCode(this); | return HashCodeBuilder.reflectionHashCode(this); | ||
} | } |
2019年7月2日 (火) 21:14時点における最新版
commons.lang.HashCodeBuilder [1]
I enable a good hashCode method to be built for any class.
Methods
- reflectionHashCode - 完成されたハッシュ値を生成
Exemples
public class Bank { return HashCodeBuilder.reflectionHashCode(this); }