編集の要約なし
 
(同じ利用者による、間の1版が非表示)
3行目: 3行目:
I enable a good hashCode method to be built for any class.
I enable a good hashCode method to be built for any class.


==Methods==
* reflectionHashCode - 完成されたハッシュ値を生成
==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

Object#hashCodeオーバーライドの定石と比較。

public class Bank {
    return HashCodeBuilder.reflectionHashCode(this);
}