
在边看JDK源码的同时也在用在线绘图工具processon画集合相关类图之间的关系,上面是我整理的Collection、Set、List之间的关系。Collection包含所有集合需要操作相关方法,size判断,添加或删除元素,迭代以及转换为数组的相关操作。而Set和List都是继承自Collection,Set和List的主要不同点在与Set中的元素不可以重复,而List可以。

本文标题:JDK源码阅读之Collection、Set、List
本文链接:https://www.haomeiwen.com/subject/iekrzxtx.html
网友评论