Java-数据容器-集合-LinkedHashSet
时间:2021-01-06 09:03:05
收藏:0
阅读:30
Java-数据容器-集合-LinkedHashSet
- LinkedHashSet是Set接口的实现类
- LinkedHashSet底层存储的原理基于哈希表实现
- LinkedHashSet底层存储是按照哈希表+加链表的方式进行的
- LinkedHashSet的特点
- 有序(按照元素添加的顺序进行输出)
- 唯一
- LinkedHashSet没有特殊的其他方法,主要常用方法都继承自Set接口,详细的Set接口方法详见Java-数据容器-集合-Set
原文:https://www.cnblogs.com/shanlei/p/14238678.html
评论(0)