当前位置:网站首页>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 reduce the shutdown time of InnoDB database?
- Record: Navicat premium can't connect to MySQL for the first time
- 错误: 找不到符号
- Lean product development - Lean Software Development & lean product development
- FairyGUI按钮动效的混用
- Fairygui gain buff value change display
- [算法] 剑指offer2 golang 面试题9:乘积小于k的子数组
- [algorithm] sword finger offer2 golang interview question 2: binary addition
- Special palindromes of daily practice of Blue Bridge Cup
- WSL common commands
猜你喜欢
随机推荐
平衡二叉树详解 通俗易懂
十分鐘徹底掌握緩存擊穿、緩存穿透、緩存雪崩
Novatel board oem617d configuration step record
[算法] 剑指offer2 golang 面试题5:单词长度的最大乘积
堆排序【手写小根堆】
Record: Navicat premium can't connect to MySQL for the first time
Fgui project packaging and Publishing & importing unity & the way to display the UI
[算法] 剑指offer2 golang 面试题3:前n个数字二进制形式中1的个数
基本Dos命令
Ten minutes to thoroughly master cache breakdown, cache penetration, cache avalanche
Implementation of Excel import and export functions
[算法] 劍指offer2 golang 面試題2:二進制加法
RTKLIB: demo5 b34f. 1 vs b33
Experience summary of autumn recruitment of state-owned enterprises
国企秋招经验总结
2022 National Games RE1 baby_ tree
2022国赛Re1 baby_tree
Fairygui loop list
基于rtklib源码进行片上移植的思路分享
wsl常用命令


![[算法] 剑指offer2 golang 面试题5:单词长度的最大乘积](/img/e0/cea31070d6365eb57013cdead4a175.png)





