当前位置:网站首页>Common method signatures and meanings of Iterable, collection and list
Common method signatures and meanings of Iterable, collection and list
2022-07-07 07:43:00 【The mountain stream is clear and misty】
One 、Iterable
Iterbale Is an iterative function Generic Interface , Can pass for-each loop , from Iterable obtain Iterator Or by Iterable Of for each() Method
Two 、Collection
1.Collection Inherited from Iterable The generic interface of , The interface used to implement the collection .
2.Collection It does not necessarily have the characteristics of linear structure . Linear table is a kind of Collection, Nonlinear table is also a kind of Collection.
Collection Method signature :
3、 ... and 、List
1.List It's an interface , Interface cannot be instantiated , You can only refer to specific classes that implement their interfaces
2.List It's a linear table , namely n A finite sequence of elements of the same type , In this sequence, you can add, delete, check and modify variables , The elements have order ,List Have the ability to iterate , Have the ability to pack elements
List Method signature :
边栏推荐
- Why is the row of SQL_ The ranking returned by number is 1
- 按键精灵脚本学习-关于天猫抢红包
- The metauniverse of the platofarm farm continues to expand, with Dao governance as the core
- 深度学习花书+机器学习西瓜书电子版我找到了
- Talk about seven ways to realize asynchronous programming
- IO流 file
- [UTCTF2020]file header
- Leetcode-206. Reverse Linked List
- 【数学笔记】弧度
- [Stanford Jiwang cs144 project] lab3: tcpsender
猜你喜欢
随机推荐
[webrtc] m98 Screen and Window Collection
IO stream file
[semantic segmentation] - multi-scale attention
二、并发、测试笔记 青训营笔记
[Linux] process control and parent-child processes
微博发布案例
Tencent's one-day life
Six methods of flattening arrays with JS
【Liunx】进程控制和父子进程
Wechat applet full stack development practice Chapter 3 Introduction and use of APIs commonly used in wechat applet development -- 3.9 introduction to network interface (IX) extending the request3 met
【性能压测】如何做好性能压测?
[P2P] local packet capturing
Interviewer: what development models do you know?
《动手学深度学习》(四) -- 卷积神经网络 CNN
【Unity】物体做圆周运动的几个思路
What are the positions of communication equipment manufacturers?
Simple example of ros2 planning system plansys2
Wx is used in wechat applet Showtoast() for interface interaction
Weibo publishing cases
【斯坦福计网CS144项目】Lab3: TCPSender