开发者

HashSet eclipse debugger variables

开发者 https://www.devze.com 2023-04-05 16:35 出处:网络
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 ref

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

精彩评论

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