海阔天空任我飞

导航

 

public int hashCode() {
        int result = this.name != null ? this.name.hashCode() : 0;
        result = 31 * result + (this.key != null ? this.key.hashCode() : 0);
       。。。每个属性的hashcode
        return result;
    }

  

posted on 2020-12-06 09:31  海阔天空任我飞  阅读(212)  评论(0编辑  收藏  举报