由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Programming版 - ft, 你们谁知道这个?
相关主题
谁在实际工作中写过c#或Java的custom attribute?JNI 诡异问题求教 (转载)
JAVA equals()和hashCode()请教。Goodbug这个人头重脚轻,嘴尖皮厚;不但学问浮夸,而且人品恶劣
Re: javadoc for C++?java是个骗人的语言
有用Eclipse的嘛?javascript最让人崩溃的一点
弱问:API stub 是指什么呀?魏老师不懂gc机制
什么程序可以把中文转换成unicode ?问一下,scala之父的那本教程怎么样?值得看么?
qeustion about separation of interface and implementation in java请问Hadoop怎样入门
java如何保护传入的参数不被函数改动?请问 Swift 有没有啥网上的教程?
相关话题的讨论汇总
话题: hashcode话题: override话题: method话题: documented话题: equals
进入Programming版参与讨论
1 (共1页)
c******n
发帖数: 4965
1
If you override equals, you should also override hashCode()
barely documented ....
http://leepoint.net/notes-java/data/expressions/22compareobjects.h/tml
g*****g
发帖数: 34805
2
Every java developer knows this.

【在 c******n 的大作中提到】
: If you override equals, you should also override hashCode()
: barely documented ....
: http://leepoint.net/notes-java/data/expressions/22compareobjects.h/tml

c******n
发帖数: 4965
3
the Ken Arnold book ("the java programming language") doesn't mention this,
javadoc doesn't mention this.
I wonder I must be missing some learning steps, where did u pick this up?

【在 g*****g 的大作中提到】
: Every java developer knows this.
g*****g
发帖数: 34805
4
http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html#equals(java.lang.Object)
"Note that it is generally necessary to override the hashCode method
whenever this method is overridden, so as to maintain the general contract
for the hashCode method, which states that equal objects must have equal
hash codes. "

【在 c******n 的大作中提到】
: the Ken Arnold book ("the java programming language") doesn't mention this,
: javadoc doesn't mention this.
: I wonder I must be missing some learning steps, where did u pick this up?

1 (共1页)
进入Programming版参与讨论
相关主题
请问 Swift 有没有啥网上的教程?弱问:API stub 是指什么呀?
问一下在flg的,你们写java代码 要求写这陀注釋 javadoc什么的(转载)什么程序可以把中文转换成unicode ?
这里 大大牛多久学会spark?qeustion about separation of interface and implementation in java
Framework的泛滥,是个坏风气java如何保护传入的参数不被函数改动?
谁在实际工作中写过c#或Java的custom attribute?JNI 诡异问题求教 (转载)
JAVA equals()和hashCode()请教。Goodbug这个人头重脚轻,嘴尖皮厚;不但学问浮夸,而且人品恶劣
Re: javadoc for C++?java是个骗人的语言
有用Eclipse的嘛?javascript最让人崩溃的一点
相关话题的讨论汇总
话题: hashcode话题: override话题: method话题: documented话题: equals