0 点赞 评论 收藏
分享
好好复习:1231 and 1237 are just two (sufficiently large) arbitrary prime numbers. Any other two large prime numbers would do fine. When computing hash codes for composite objects it's common to add the hash codes for the components. If too small values are used in a hash set with a large number of buckets there's a risk of ending up with an uneven distribution of objects.
0 点赞 评论 收藏
分享
bugei:十月还有一些的,虽然不多了
0 点赞 评论 收藏
分享
关注他的用户也关注了: