摘要: public int hashCode(){int h =hash;int len =count;if (h == 0&& len > 0) {int off =offset;char val[] =value;for (int i =0; i < len; i++) {h = 31*h +v... 阅读全文
posted @ 2013-11-07 11:42 刘竹青 阅读(235) 评论(0) 推荐(0) 编辑
摘要: public int hashCode(){int h =hash;int len =count;if (h == 0&& len > 0) {int off =offset;char val[] =value;for (int i =0; i < len; i++) {h = 31*h +v... 阅读全文
posted @ 2013-11-07 11:42 刘竹青 阅读(290) 评论(0) 推荐(0) 编辑
摘要: 原文地址:hashCode和equals作者:银冰冷月1.hashcode是用来查找的,如果你学过数据结构就应该知道,在查找和排序这一章有例如内存中有这样的位置0 1 2 3 4 5 6 7 而我有个类,这个类有个字段叫ID,我要把这个类存放... 阅读全文
posted @ 2013-11-07 09:41 刘竹青 阅读(111) 评论(0) 推荐(0) 编辑
摘要: 原文地址:hashCode和equals作者:银冰冷月1.hashcode是用来查找的,如果你学过数据结构就应该知道,在查找和排序这一章有例如内存中有这样的位置0 1 2 3 4 5 6 7 而我有个类,这个类有个字段叫ID,我要把这个类存放... 阅读全文
posted @ 2013-11-07 09:41 刘竹青 阅读(117) 评论(0) 推荐(0) 编辑