开发者

HashSet eclipse debugger variables

In Eclipse debugger variables's view , im looking at aHashSet and it has a map element which contain开发者_运维技巧s a KeySet and a Table but what puzzles me is that this table contains many null references in it , so i want to know what does table represent and what may cause having these many null references ?

because if those are the values in my HashSet they shouldnt many null references cause its set (Sets do not contain duplicate values)

thanks for any hint .


The null references are just implementation detail. HashSets are implemented by dividing the elements of the sets into many "buckets" and the null references just represent empty buckets. No problem for you.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜