当前位置:网站首页>Common method signatures and meanings of Iterable, collection and list
Common method signatures and meanings of Iterable, collection and list
2022-07-06 13:08:00 【犇犇犇犇犇犇犇】
Let's tidy up today , We Java Big brother in the collection Collection Interface and its parent interface Iterable, A subinterface List.
Iterable What is it? ?
It can be said to be the interface at the top of the collection framework , Implement traversal of the set .
Collection What is it? ?
It is the root interface in the hierarchy inherited from Iterable, The parent interface is not used for specific implementation , It defines some public specifications for the following specific implementation interface classes .
List
list Is an ordered set, also known as sequence , Inherited Collection Interface , It's also an interface , It cannot be used to instantiate objects , So his following realization ArrayList,LinkedList,Stack Many kinds
List Official documents
ArrayList
ArrayList Realized List, It's a sequence table , It is the simplest data structure , Is a set of the same data type, that is, an array , His logical structure and physical structure are continuous .
LinkedList
LinkedList Realized List, Linked list ,Java Medium LinkedList Realized the bidirectional linked list , queue , deque , These are linear structures , Although their logical structure is continuous, they are not continuous in physical structure
Stack
Stack Realized vector,vector Realized List, therefore Stack It has also been realized. List, It's a stack , Stack in data structure , It is also a linear structure. Like queues, it is a special linked list .
The diagram
边栏推荐
- Interview Essentials: talk about the various implementations of distributed locks!
- [algorithm] sword finger offer2 golang interview question 1: integer division
- 面渣逆袭:Redis连环五十二问,三万字+八十图详解。
- 国企秋招经验总结
- 染色法判定二分图
- Music playback (toggle & playerprefs)
- 服务未正常关闭导致端口被占用
- [rtklib 2.4.3 B34] version update introduction I
- What are the advantages of using SQL in Excel VBA
- [GNSS] robust estimation (robust estimation) principle and program implementation
猜你喜欢
【无标题】
MySQL 三万字精华总结 + 面试100 问,吊打面试官绰绰有余(收藏系列
[algorithm] sword finger offer2 golang interview question 10: subarray with sum K
国企秋招经验总结
TYUT太原理工大学2022数据库题库选择题总结
[algorithm] sword finger offer2 golang interview question 4: numbers that appear only once
121道分布式面试题和答案
Code example of MATLAB reading GNSS observation value o file
图书管理系统小练习
阿里云微服务(二) 分布式服务配置中心以及Nacos的使用场景及实现介绍
随机推荐
分支语句和循环语句
All in one 1405: sum and product of prime numbers
Experience summary of autumn recruitment of state-owned enterprises
What are the advantages of using SQL in Excel VBA
Wechat applet development experience
阿里云微服务(三)Sentinel开源流控熔断降级组件
2-year experience summary, tell you how to do a good job in project management
Basic DOS commands
微信小程序开发心得
阿里云一面:并发场景下的底层细节 - 伪共享问题
[Chongqing Guangdong education] reference materials for regional analysis and planning of Pingdingshan University
String类
[算法] 剑指offer2 golang 面试题3:前n个数字二进制形式中1的个数
[rtklib] preliminary practice of using robust adaptive Kalman filter under RTK
167. Sum of two numbers II - input ordered array - Double pointers
Exception: ioexception:stream closed
继承和多态(上)
[GNSS data processing] Helmert variance component estimation analysis and code implementation
MySQL backup -- common errors in xtrabackup backup
[algorithm] sword finger offer2 golang interview question 3: the number of 1 in the binary form of the first n numbers