开发者

Recommended hash function for overwriting NSObject's hash method

What's a good hash function for o开发者_如何学JAVAverwriting NSObject's hash method in your custom classes?


Here is a good community wiki page discussing overwriting the functions Implementing -hash / -isEqual: / -isEqualTo...: for Objective-C collections.
And there is an implementation on one of the linked articles Best practices for overriding isEqual: and hash.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜