会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
steeven
不以物喜 不以己悲
博客园
::
首页
::
新随笔
::
联系
::
订阅
::
管理
公告
2005年3月24日
HashCode有多大可能重复?
摘要: 今天有同事提议用String的hashcode得到int类型作为主键。其实hashcode重复的可能性超大,下面是java的缺省算法: publicinthashCode(){ inth=hash; if(h==0){ intoff=offset; charval[]=value; ...
阅读全文
posted @ 2005-03-24 00:08 steeven
阅读(14056)
评论(2)
推荐(1)
编辑