当前位置:网站首页>Iterable、Collection、List 的常见方法签名以及含义
Iterable、Collection、List 的常见方法签名以及含义
2022-07-06 09:19:00 【犇犇犇犇犇犇】
今天整理一下,我们Java集合中的的老大哥Collection接口以及它的父接口Iterable,子接口List。
Iterable是什么?
可以说是站在集合框架最顶端的接口,实现集合的遍历。
Collection是什么?
它是层次结构中的根接口继承于Iterable,是父接口不用于具体的实现,它里面定义了下面具体实现接口类的一些公共规范。
List
list是有序集合又叫序列,继承了Collection接口,它也是一个接口,并不能用来实例化对象,所以他的下面实现了ArrayList,LinkedList,Stack多种类
List官方文档
ArrayList
ArrayList实现了List,是顺序表,是数据结构中最简单的一种结构,是一组相同数据类型的集合也就是数组,他在逻辑结构和物理结构都是连续的。
LinkedList
LinkedList实现了List,是链表,Java中的LinkedList实现了双向链表,队列,双端队列,这些都是线性结构,他们虽然逻辑结构是连续的但是在物理结构上并不连续
Stack
Stack实现了vector,vector实现了List,所以Stack也实现了List,它是栈,数据结构中的栈,也是线性结构他和队列一样都是一种特殊的链表。
关系图
边栏推荐
- How to improve the deletion speed of sequential class containers?
- Lean product development - Lean Software Development & lean product development
- 【RTKLIB 2.4.3 b34 】版本更新简介一
- 第一人称视角的角色移动
- Wechat applet development experience
- VLSM variable length subnet mask partition tips
- Special palindromes of daily practice of Blue Bridge Cup
- Role movement in the first person perspective
- How do architects draw system architecture blueprints?
- XV Function definition and call
猜你喜欢

(core focus of software engineering review) Chapter V detailed design exercises

架构师怎样绘制系统架构蓝图?

Mixed use of fairygui button dynamics
![Heap sort [handwritten small root heap]](/img/f0/6efda3c6f499a32671a935dd2f21db.png)
Heap sort [handwritten small root heap]
![[algorithm] sword finger offer2 golang interview question 4: numbers that appear only once](/img/f7/23ffc81ec8e9161c15d863c1a67916.png)
[algorithm] sword finger offer2 golang interview question 4: numbers that appear only once

How do architects draw system architecture blueprints?

FairyGUI按钮动效的混用

FGUI工程打包发布&导入Unity&将UI显示出来的方式
![[算法] 剑指offer2 golang 面试题4:只出现一次的数字](/img/f7/23ffc81ec8e9161c15d863c1a67916.png)
[算法] 剑指offer2 golang 面试题4:只出现一次的数字
![[algorithm] sword finger offer2 golang interview question 9: subarray with product less than k](/img/65/fc3fb5a217a3b44f506b695af53e2c.png)
[algorithm] sword finger offer2 golang interview question 9: subarray with product less than k
随机推荐
XV Function definition and call
《软件测试》习题答案:第一章
Rt-ppp test using rtknavi
Usage differences between isempty and isblank
微信小程序开发心得
341. Flatten nested list iterator
[algorithm] sword finger offer2 golang interview question 8: the shortest subarray with a sum greater than or equal to K
IText 7 generate PDF summary
Containers and Devops: container based Devops delivery pipeline
FairyGUI增益BUFF數值改變的顯示
服务未正常关闭导致端口被占用
基本Dos命令
Special palindromes of daily practice of Blue Bridge Cup
All in one 1405: sum and product of prime numbers
Record: newinstance() obsolete replacement method
RTKLIB: demo5 b34f. 1 vs b33
FairyGUI循环列表
The service robots that have been hyped by capital and the Winter Olympics are not just a flash in the pan
Experience summary of autumn recruitment of state-owned enterprises
Record: the solution of MySQL denial of access when CMD starts for the first time