标签:serial mil ble array rabl class 概念 接口 justify
一,集合
(1)Collection
ArrayList 数组结构
LinkedList 链表结构
(2)Map
新增Entry >=2 >=8
删除Entry <=1 <=6
(3)Serializable:序列化接口
(4)Iterable<T>:迭代接口 =依赖=>Iterator<T>
Class Xxx implement Iterable<T>{
Iterator<T>iterator(){
.....
}
}
Xxx<T>xxx = new Xxx(...)
//迭代器遍历模型
Iterator<T>it = new Xxx(...).iterator();
While(it.hasNext()){
T t = it.next();
.....
}
增强型for循环遍历:底层是迭代器
for(T t : xxx){
t...
}
标签:serial mil ble array rabl class 概念 接口 justify
原文地址:https://www.cnblogs.com/zzyz/p/13205976.html