当前位置:网站首页>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,它是栈,数据结构中的栈,也是线性结构他和队列一样都是一种特殊的链表。
关系图
边栏推荐
- 错误:排序与角标越界
- 10 minutes pour maîtriser complètement la rupture du cache, la pénétration du cache, l'avalanche du cache
- [algorithm] sword finger offer2 golang interview question 5: maximum product of word length
- Fairygui joystick
- [algorithme] swordfinger offer2 golang question d'entrevue 2: addition binaire
- FairyGUI条子家族(滚动条,滑动条,进度条)
- 【无标题】
- 使用rtknavi进行RT-PPP测试
- Fairygui bar subfamily (scroll bar, slider, progress bar)
- The earth revolves around the sun
猜你喜欢

十分钟彻底掌握缓存击穿、缓存穿透、缓存雪崩
![[算法] 剑指offer2 golang 面试题12:左右两边子数组的和相等](/img/11/ee0628a68542236fc641966579a31a.png)
[算法] 剑指offer2 golang 面试题12:左右两边子数组的和相等

十分鐘徹底掌握緩存擊穿、緩存穿透、緩存雪崩

How to ensure data consistency between MySQL and redis?

Fairygui joystick

2022 National Games RE1 baby_ tree

Fairygui bar subfamily (scroll bar, slider, progress bar)

染色法判定二分图
![[algorithm] sword finger offer2 golang interview question 6: sum of two numbers in the sorting array](/img/d5/4bda133498f71ae9fd7a64c6cba8f0.png)
[algorithm] sword finger offer2 golang interview question 6: sum of two numbers in the sorting array

【干货】提升RTK模糊度固定率的建议之周跳探测
随机推荐
Fairygui character status Popup
The master of double non planning left the real estate company and became a programmer with an annual salary of 25W. There are too many life choices at the age of 25
(core focus of software engineering review) Chapter V detailed design exercises
The earth revolves around the sun
Record: newinstance() obsolete replacement method
Implementation of Excel import and export functions
The service robots that have been hyped by capital and the Winter Olympics are not just a flash in the pan
How to ensure data consistency between MySQL and redis?
Fabrication d'un sac à dos simple fairygui
基本Dos命令
Problems and solutions of robust estimation in rtklib single point location spp
FGUI工程打包发布&导入Unity&将UI显示出来的方式
记录:动态Web项目servlet访问数据库404错误之解决
FairyGUI增益BUFF数值改变的显示
MySQL shutdown is slow
Basic DOS commands
[rtklib] preliminary practice of using robust adaptive Kalman filter under RTK
XV Function definition and call
[algorithm] sword finger offer2 golang interview question 8: the shortest subarray with a sum greater than or equal to K
[algorithm] sword finger offer2 golang interview question 7: 3 numbers with 0 in the array