摘要:
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... 阅读全文
摘要:
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... 阅读全文
摘要:
原文地址:hashCode和equals作者:银冰冷月1.hashcode是用来查找的,如果你学过数据结构就应该知道,在查找和排序这一章有例如内存中有这样的位置0 1 2 3 4 5 6 7 而我有个类,这个类有个字段叫ID,我要把这个类存放... 阅读全文
摘要:
原文地址:hashCode和equals作者:银冰冷月1.hashcode是用来查找的,如果你学过数据结构就应该知道,在查找和排序这一章有例如内存中有这样的位置0 1 2 3 4 5 6 7 而我有个类,这个类有个字段叫ID,我要把这个类存放... 阅读全文