标签:http io os ar java for sp strong on
一个对象只有一个hashcode,多个对象的hashcode可能相同。public int hashCode() { int h = hash; if (h == 0 && value.length > 0) { char val[] = value; for (int i = 0; i < value.length; i++) { h = 31 * h + val[i]; } hash = h; } return h; }
标签:http io os ar java for sp strong on
原文地址:http://my.oschina.net/letiantian/blog/339015